diff --git a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminServiceGrpc.java b/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminServiceGrpc.java deleted file mode 100644 index 2b025f822..000000000 --- a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminServiceGrpc.java +++ /dev/null @@ -1,2582 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.pubsublite.proto; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The service that a client application uses to manage topics and
- * subscriptions, such creating, listing, and deleting topics and subscriptions.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/pubsublite/v1/admin.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AdminServiceGrpc { - - private AdminServiceGrpc() {} - - public static final java.lang.String SERVICE_NAME = "google.cloud.pubsublite.v1.AdminService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.CreateTopicRequest, - com.google.cloud.pubsublite.proto.Topic> - getCreateTopicMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateTopic", - requestType = com.google.cloud.pubsublite.proto.CreateTopicRequest.class, - responseType = com.google.cloud.pubsublite.proto.Topic.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.CreateTopicRequest, - com.google.cloud.pubsublite.proto.Topic> - getCreateTopicMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.CreateTopicRequest, - com.google.cloud.pubsublite.proto.Topic> - getCreateTopicMethod; - if ((getCreateTopicMethod = AdminServiceGrpc.getCreateTopicMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getCreateTopicMethod = AdminServiceGrpc.getCreateTopicMethod) == null) { - AdminServiceGrpc.getCreateTopicMethod = - getCreateTopicMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTopic")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.CreateTopicRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.Topic.getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("CreateTopic")) - .build(); - } - } - } - return getCreateTopicMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.GetTopicRequest, - com.google.cloud.pubsublite.proto.Topic> - getGetTopicMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTopic", - requestType = com.google.cloud.pubsublite.proto.GetTopicRequest.class, - responseType = com.google.cloud.pubsublite.proto.Topic.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.GetTopicRequest, - com.google.cloud.pubsublite.proto.Topic> - getGetTopicMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.GetTopicRequest, - com.google.cloud.pubsublite.proto.Topic> - getGetTopicMethod; - if ((getGetTopicMethod = AdminServiceGrpc.getGetTopicMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getGetTopicMethod = AdminServiceGrpc.getGetTopicMethod) == null) { - AdminServiceGrpc.getGetTopicMethod = - getGetTopicMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTopic")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.GetTopicRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.Topic.getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("GetTopic")) - .build(); - } - } - } - return getGetTopicMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest, - com.google.cloud.pubsublite.proto.TopicPartitions> - getGetTopicPartitionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTopicPartitions", - requestType = com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.class, - responseType = com.google.cloud.pubsublite.proto.TopicPartitions.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest, - com.google.cloud.pubsublite.proto.TopicPartitions> - getGetTopicPartitionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest, - com.google.cloud.pubsublite.proto.TopicPartitions> - getGetTopicPartitionsMethod; - if ((getGetTopicPartitionsMethod = AdminServiceGrpc.getGetTopicPartitionsMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getGetTopicPartitionsMethod = AdminServiceGrpc.getGetTopicPartitionsMethod) == null) { - AdminServiceGrpc.getGetTopicPartitionsMethod = - getGetTopicPartitionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTopicPartitions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.TopicPartitions - .getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("GetTopicPartitions")) - .build(); - } - } - } - return getGetTopicPartitionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListTopicsRequest, - com.google.cloud.pubsublite.proto.ListTopicsResponse> - getListTopicsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTopics", - requestType = com.google.cloud.pubsublite.proto.ListTopicsRequest.class, - responseType = com.google.cloud.pubsublite.proto.ListTopicsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListTopicsRequest, - com.google.cloud.pubsublite.proto.ListTopicsResponse> - getListTopicsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListTopicsRequest, - com.google.cloud.pubsublite.proto.ListTopicsResponse> - getListTopicsMethod; - if ((getListTopicsMethod = AdminServiceGrpc.getListTopicsMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getListTopicsMethod = AdminServiceGrpc.getListTopicsMethod) == null) { - AdminServiceGrpc.getListTopicsMethod = - getListTopicsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTopics")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListTopicsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListTopicsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("ListTopics")) - .build(); - } - } - } - return getListTopicsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.UpdateTopicRequest, - com.google.cloud.pubsublite.proto.Topic> - getUpdateTopicMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateTopic", - requestType = com.google.cloud.pubsublite.proto.UpdateTopicRequest.class, - responseType = com.google.cloud.pubsublite.proto.Topic.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.UpdateTopicRequest, - com.google.cloud.pubsublite.proto.Topic> - getUpdateTopicMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.UpdateTopicRequest, - com.google.cloud.pubsublite.proto.Topic> - getUpdateTopicMethod; - if ((getUpdateTopicMethod = AdminServiceGrpc.getUpdateTopicMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getUpdateTopicMethod = AdminServiceGrpc.getUpdateTopicMethod) == null) { - AdminServiceGrpc.getUpdateTopicMethod = - getUpdateTopicMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateTopic")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.UpdateTopicRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.Topic.getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("UpdateTopic")) - .build(); - } - } - } - return getUpdateTopicMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.DeleteTopicRequest, com.google.protobuf.Empty> - getDeleteTopicMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteTopic", - requestType = com.google.cloud.pubsublite.proto.DeleteTopicRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.DeleteTopicRequest, com.google.protobuf.Empty> - getDeleteTopicMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.DeleteTopicRequest, com.google.protobuf.Empty> - getDeleteTopicMethod; - if ((getDeleteTopicMethod = AdminServiceGrpc.getDeleteTopicMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getDeleteTopicMethod = AdminServiceGrpc.getDeleteTopicMethod) == null) { - AdminServiceGrpc.getDeleteTopicMethod = - getDeleteTopicMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTopic")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.DeleteTopicRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("DeleteTopic")) - .build(); - } - } - } - return getDeleteTopicMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest, - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse> - getListTopicSubscriptionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTopicSubscriptions", - requestType = com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.class, - responseType = com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest, - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse> - getListTopicSubscriptionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest, - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse> - getListTopicSubscriptionsMethod; - if ((getListTopicSubscriptionsMethod = AdminServiceGrpc.getListTopicSubscriptionsMethod) - == null) { - synchronized (AdminServiceGrpc.class) { - if ((getListTopicSubscriptionsMethod = AdminServiceGrpc.getListTopicSubscriptionsMethod) - == null) { - AdminServiceGrpc.getListTopicSubscriptionsMethod = - getListTopicSubscriptionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListTopicSubscriptions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("ListTopicSubscriptions")) - .build(); - } - } - } - return getListTopicSubscriptionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription> - getCreateSubscriptionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSubscription", - requestType = com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.class, - responseType = com.google.cloud.pubsublite.proto.Subscription.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription> - getCreateSubscriptionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription> - getCreateSubscriptionMethod; - if ((getCreateSubscriptionMethod = AdminServiceGrpc.getCreateSubscriptionMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getCreateSubscriptionMethod = AdminServiceGrpc.getCreateSubscriptionMethod) == null) { - AdminServiceGrpc.getCreateSubscriptionMethod = - getCreateSubscriptionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSubscription")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("CreateSubscription")) - .build(); - } - } - } - return getCreateSubscriptionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.GetSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription> - getGetSubscriptionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSubscription", - requestType = com.google.cloud.pubsublite.proto.GetSubscriptionRequest.class, - responseType = com.google.cloud.pubsublite.proto.Subscription.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.GetSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription> - getGetSubscriptionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.GetSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription> - getGetSubscriptionMethod; - if ((getGetSubscriptionMethod = AdminServiceGrpc.getGetSubscriptionMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getGetSubscriptionMethod = AdminServiceGrpc.getGetSubscriptionMethod) == null) { - AdminServiceGrpc.getGetSubscriptionMethod = - getGetSubscriptionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSubscription")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.GetSubscriptionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("GetSubscription")) - .build(); - } - } - } - return getGetSubscriptionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest, - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse> - getListSubscriptionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSubscriptions", - requestType = com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.class, - responseType = com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest, - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse> - getListSubscriptionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest, - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse> - getListSubscriptionsMethod; - if ((getListSubscriptionsMethod = AdminServiceGrpc.getListSubscriptionsMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getListSubscriptionsMethod = AdminServiceGrpc.getListSubscriptionsMethod) == null) { - AdminServiceGrpc.getListSubscriptionsMethod = - getListSubscriptionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSubscriptions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("ListSubscriptions")) - .build(); - } - } - } - return getListSubscriptionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription> - getUpdateSubscriptionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSubscription", - requestType = com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.class, - responseType = com.google.cloud.pubsublite.proto.Subscription.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription> - getUpdateSubscriptionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription> - getUpdateSubscriptionMethod; - if ((getUpdateSubscriptionMethod = AdminServiceGrpc.getUpdateSubscriptionMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getUpdateSubscriptionMethod = AdminServiceGrpc.getUpdateSubscriptionMethod) == null) { - AdminServiceGrpc.getUpdateSubscriptionMethod = - getUpdateSubscriptionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSubscription")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("UpdateSubscription")) - .build(); - } - } - } - return getUpdateSubscriptionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest, com.google.protobuf.Empty> - getDeleteSubscriptionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSubscription", - requestType = com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest, com.google.protobuf.Empty> - getDeleteSubscriptionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest, com.google.protobuf.Empty> - getDeleteSubscriptionMethod; - if ((getDeleteSubscriptionMethod = AdminServiceGrpc.getDeleteSubscriptionMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getDeleteSubscriptionMethod = AdminServiceGrpc.getDeleteSubscriptionMethod) == null) { - AdminServiceGrpc.getDeleteSubscriptionMethod = - getDeleteSubscriptionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSubscription")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("DeleteSubscription")) - .build(); - } - } - } - return getDeleteSubscriptionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest, - com.google.longrunning.Operation> - getSeekSubscriptionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SeekSubscription", - requestType = com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest, - com.google.longrunning.Operation> - getSeekSubscriptionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest, - com.google.longrunning.Operation> - getSeekSubscriptionMethod; - if ((getSeekSubscriptionMethod = AdminServiceGrpc.getSeekSubscriptionMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getSeekSubscriptionMethod = AdminServiceGrpc.getSeekSubscriptionMethod) == null) { - AdminServiceGrpc.getSeekSubscriptionMethod = - getSeekSubscriptionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SeekSubscription")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("SeekSubscription")) - .build(); - } - } - } - return getSeekSubscriptionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.CreateReservationRequest, - com.google.cloud.pubsublite.proto.Reservation> - getCreateReservationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateReservation", - requestType = com.google.cloud.pubsublite.proto.CreateReservationRequest.class, - responseType = com.google.cloud.pubsublite.proto.Reservation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.CreateReservationRequest, - com.google.cloud.pubsublite.proto.Reservation> - getCreateReservationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.CreateReservationRequest, - com.google.cloud.pubsublite.proto.Reservation> - getCreateReservationMethod; - if ((getCreateReservationMethod = AdminServiceGrpc.getCreateReservationMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getCreateReservationMethod = AdminServiceGrpc.getCreateReservationMethod) == null) { - AdminServiceGrpc.getCreateReservationMethod = - getCreateReservationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateReservation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.CreateReservationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("CreateReservation")) - .build(); - } - } - } - return getCreateReservationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.GetReservationRequest, - com.google.cloud.pubsublite.proto.Reservation> - getGetReservationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetReservation", - requestType = com.google.cloud.pubsublite.proto.GetReservationRequest.class, - responseType = com.google.cloud.pubsublite.proto.Reservation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.GetReservationRequest, - com.google.cloud.pubsublite.proto.Reservation> - getGetReservationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.GetReservationRequest, - com.google.cloud.pubsublite.proto.Reservation> - getGetReservationMethod; - if ((getGetReservationMethod = AdminServiceGrpc.getGetReservationMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getGetReservationMethod = AdminServiceGrpc.getGetReservationMethod) == null) { - AdminServiceGrpc.getGetReservationMethod = - getGetReservationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReservation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.GetReservationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("GetReservation")) - .build(); - } - } - } - return getGetReservationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListReservationsRequest, - com.google.cloud.pubsublite.proto.ListReservationsResponse> - getListReservationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListReservations", - requestType = com.google.cloud.pubsublite.proto.ListReservationsRequest.class, - responseType = com.google.cloud.pubsublite.proto.ListReservationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListReservationsRequest, - com.google.cloud.pubsublite.proto.ListReservationsResponse> - getListReservationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListReservationsRequest, - com.google.cloud.pubsublite.proto.ListReservationsResponse> - getListReservationsMethod; - if ((getListReservationsMethod = AdminServiceGrpc.getListReservationsMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getListReservationsMethod = AdminServiceGrpc.getListReservationsMethod) == null) { - AdminServiceGrpc.getListReservationsMethod = - getListReservationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListReservations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListReservationsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListReservationsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("ListReservations")) - .build(); - } - } - } - return getListReservationsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.UpdateReservationRequest, - com.google.cloud.pubsublite.proto.Reservation> - getUpdateReservationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateReservation", - requestType = com.google.cloud.pubsublite.proto.UpdateReservationRequest.class, - responseType = com.google.cloud.pubsublite.proto.Reservation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.UpdateReservationRequest, - com.google.cloud.pubsublite.proto.Reservation> - getUpdateReservationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.UpdateReservationRequest, - com.google.cloud.pubsublite.proto.Reservation> - getUpdateReservationMethod; - if ((getUpdateReservationMethod = AdminServiceGrpc.getUpdateReservationMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getUpdateReservationMethod = AdminServiceGrpc.getUpdateReservationMethod) == null) { - AdminServiceGrpc.getUpdateReservationMethod = - getUpdateReservationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateReservation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.UpdateReservationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("UpdateReservation")) - .build(); - } - } - } - return getUpdateReservationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.DeleteReservationRequest, com.google.protobuf.Empty> - getDeleteReservationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteReservation", - requestType = com.google.cloud.pubsublite.proto.DeleteReservationRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.DeleteReservationRequest, com.google.protobuf.Empty> - getDeleteReservationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.DeleteReservationRequest, com.google.protobuf.Empty> - getDeleteReservationMethod; - if ((getDeleteReservationMethod = AdminServiceGrpc.getDeleteReservationMethod) == null) { - synchronized (AdminServiceGrpc.class) { - if ((getDeleteReservationMethod = AdminServiceGrpc.getDeleteReservationMethod) == null) { - AdminServiceGrpc.getDeleteReservationMethod = - getDeleteReservationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteReservation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.DeleteReservationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("DeleteReservation")) - .build(); - } - } - } - return getDeleteReservationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest, - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse> - getListReservationTopicsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListReservationTopics", - requestType = com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.class, - responseType = com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest, - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse> - getListReservationTopicsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest, - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse> - getListReservationTopicsMethod; - if ((getListReservationTopicsMethod = AdminServiceGrpc.getListReservationTopicsMethod) - == null) { - synchronized (AdminServiceGrpc.class) { - if ((getListReservationTopicsMethod = AdminServiceGrpc.getListReservationTopicsMethod) - == null) { - AdminServiceGrpc.getListReservationTopicsMethod = - getListReservationTopicsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListReservationTopics")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AdminServiceMethodDescriptorSupplier("ListReservationTopics")) - .build(); - } - } - } - return getListReservationTopicsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static AdminServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdminServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdminServiceStub(channel, callOptions); - } - }; - return AdminServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AdminServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdminServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdminServiceBlockingStub(channel, callOptions); - } - }; - return AdminServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AdminServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdminServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdminServiceFutureStub(channel, callOptions); - } - }; - return AdminServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The service that a client application uses to manage topics and
-   * subscriptions, such creating, listing, and deleting topics and subscriptions.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Creates a new topic.
-     * 
- */ - default void createTopic( - com.google.cloud.pubsublite.proto.CreateTopicRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateTopicMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the topic configuration.
-     * 
- */ - default void getTopic( - com.google.cloud.pubsublite.proto.GetTopicRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTopicMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the partition information for the requested topic.
-     * 
- */ - default void getTopicPartitions( - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetTopicPartitionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the list of topics for the given project.
-     * 
- */ - default void listTopics( - com.google.cloud.pubsublite.proto.ListTopicsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTopicsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates properties of the specified topic.
-     * 
- */ - default void updateTopic( - com.google.cloud.pubsublite.proto.UpdateTopicRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateTopicMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified topic.
-     * 
- */ - default void deleteTopic( - com.google.cloud.pubsublite.proto.DeleteTopicRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteTopicMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists the subscriptions attached to the specified topic.
-     * 
- */ - default void listTopicSubscriptions( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListTopicSubscriptionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new subscription.
-     * 
- */ - default void createSubscription( - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSubscriptionMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the subscription configuration.
-     * 
- */ - default void getSubscription( - com.google.cloud.pubsublite.proto.GetSubscriptionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetSubscriptionMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the list of subscriptions for the given project.
-     * 
- */ - default void listSubscriptions( - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListSubscriptionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates properties of the specified subscription.
-     * 
- */ - default void updateSubscription( - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSubscriptionMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified subscription.
-     * 
- */ - default void deleteSubscription( - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteSubscriptionMethod(), responseObserver); - } - - /** - * - * - *
-     * Performs an out-of-band seek for a subscription to a specified target,
-     * which may be timestamps or named positions within the message backlog.
-     * Seek translates these targets to cursors for each partition and
-     * orchestrates subscribers to start consuming messages from these seek
-     * cursors.
-     * If an operation is returned, the seek has been registered and subscribers
-     * will eventually receive messages from the seek cursors (i.e. eventual
-     * consistency), as long as they are using a minimum supported client library
-     * version and not a system that tracks cursors independently of Pub/Sub Lite
-     * (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for
-     * unsupported clients.
-     * If clients would like to know when subscribers react to the seek (or not),
-     * they can poll the operation. The seek operation will succeed and complete
-     * once subscribers are ready to receive messages from the seek cursors for
-     * all partitions of the topic. This means that the seek operation will not
-     * complete until all subscribers come online.
-     * If the previous seek operation has not yet completed, it will be aborted
-     * and the new invocation of seek will supersede it.
-     * 
- */ - default void seekSubscription( - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSeekSubscriptionMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new reservation.
-     * 
- */ - default void createReservation( - com.google.cloud.pubsublite.proto.CreateReservationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateReservationMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the reservation configuration.
-     * 
- */ - default void getReservation( - com.google.cloud.pubsublite.proto.GetReservationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetReservationMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the list of reservations for the given project.
-     * 
- */ - default void listReservations( - com.google.cloud.pubsublite.proto.ListReservationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListReservationsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates properties of the specified reservation.
-     * 
- */ - default void updateReservation( - com.google.cloud.pubsublite.proto.UpdateReservationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateReservationMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified reservation.
-     * 
- */ - default void deleteReservation( - com.google.cloud.pubsublite.proto.DeleteReservationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteReservationMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists the topics attached to the specified reservation.
-     * 
- */ - default void listReservationTopics( - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListReservationTopicsMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service AdminService. - * - *
-   * The service that a client application uses to manage topics and
-   * subscriptions, such creating, listing, and deleting topics and subscriptions.
-   * 
- */ - public abstract static class AdminServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return AdminServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service AdminService. - * - *
-   * The service that a client application uses to manage topics and
-   * subscriptions, such creating, listing, and deleting topics and subscriptions.
-   * 
- */ - public static final class AdminServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private AdminServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdminServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdminServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new topic.
-     * 
- */ - public void createTopic( - com.google.cloud.pubsublite.proto.CreateTopicRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateTopicMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the topic configuration.
-     * 
- */ - public void getTopic( - com.google.cloud.pubsublite.proto.GetTopicRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetTopicMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Returns the partition information for the requested topic.
-     * 
- */ - public void getTopicPartitions( - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetTopicPartitionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the list of topics for the given project.
-     * 
- */ - public void listTopics( - com.google.cloud.pubsublite.proto.ListTopicsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTopicsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Updates properties of the specified topic.
-     * 
- */ - public void updateTopic( - com.google.cloud.pubsublite.proto.UpdateTopicRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateTopicMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified topic.
-     * 
- */ - public void deleteTopic( - com.google.cloud.pubsublite.proto.DeleteTopicRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteTopicMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists the subscriptions attached to the specified topic.
-     * 
- */ - public void listTopicSubscriptions( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTopicSubscriptionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new subscription.
-     * 
- */ - public void createSubscription( - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSubscriptionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the subscription configuration.
-     * 
- */ - public void getSubscription( - com.google.cloud.pubsublite.proto.GetSubscriptionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSubscriptionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the list of subscriptions for the given project.
-     * 
- */ - public void listSubscriptions( - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSubscriptionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates properties of the specified subscription.
-     * 
- */ - public void updateSubscription( - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSubscriptionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified subscription.
-     * 
- */ - public void deleteSubscription( - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSubscriptionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Performs an out-of-band seek for a subscription to a specified target,
-     * which may be timestamps or named positions within the message backlog.
-     * Seek translates these targets to cursors for each partition and
-     * orchestrates subscribers to start consuming messages from these seek
-     * cursors.
-     * If an operation is returned, the seek has been registered and subscribers
-     * will eventually receive messages from the seek cursors (i.e. eventual
-     * consistency), as long as they are using a minimum supported client library
-     * version and not a system that tracks cursors independently of Pub/Sub Lite
-     * (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for
-     * unsupported clients.
-     * If clients would like to know when subscribers react to the seek (or not),
-     * they can poll the operation. The seek operation will succeed and complete
-     * once subscribers are ready to receive messages from the seek cursors for
-     * all partitions of the topic. This means that the seek operation will not
-     * complete until all subscribers come online.
-     * If the previous seek operation has not yet completed, it will be aborted
-     * and the new invocation of seek will supersede it.
-     * 
- */ - public void seekSubscription( - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSeekSubscriptionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new reservation.
-     * 
- */ - public void createReservation( - com.google.cloud.pubsublite.proto.CreateReservationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateReservationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the reservation configuration.
-     * 
- */ - public void getReservation( - com.google.cloud.pubsublite.proto.GetReservationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetReservationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the list of reservations for the given project.
-     * 
- */ - public void listReservations( - com.google.cloud.pubsublite.proto.ListReservationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListReservationsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates properties of the specified reservation.
-     * 
- */ - public void updateReservation( - com.google.cloud.pubsublite.proto.UpdateReservationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateReservationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified reservation.
-     * 
- */ - public void deleteReservation( - com.google.cloud.pubsublite.proto.DeleteReservationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteReservationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists the topics attached to the specified reservation.
-     * 
- */ - public void listReservationTopics( - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListReservationTopicsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service AdminService. - * - *
-   * The service that a client application uses to manage topics and
-   * subscriptions, such creating, listing, and deleting topics and subscriptions.
-   * 
- */ - public static final class AdminServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AdminServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdminServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdminServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new topic.
-     * 
- */ - public com.google.cloud.pubsublite.proto.Topic createTopic( - com.google.cloud.pubsublite.proto.CreateTopicRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateTopicMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the topic configuration.
-     * 
- */ - public com.google.cloud.pubsublite.proto.Topic getTopic( - com.google.cloud.pubsublite.proto.GetTopicRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetTopicMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the partition information for the requested topic.
-     * 
- */ - public com.google.cloud.pubsublite.proto.TopicPartitions getTopicPartitions( - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetTopicPartitionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the list of topics for the given project.
-     * 
- */ - public com.google.cloud.pubsublite.proto.ListTopicsResponse listTopics( - com.google.cloud.pubsublite.proto.ListTopicsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTopicsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates properties of the specified topic.
-     * 
- */ - public com.google.cloud.pubsublite.proto.Topic updateTopic( - com.google.cloud.pubsublite.proto.UpdateTopicRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateTopicMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified topic.
-     * 
- */ - public com.google.protobuf.Empty deleteTopic( - com.google.cloud.pubsublite.proto.DeleteTopicRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteTopicMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists the subscriptions attached to the specified topic.
-     * 
- */ - public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse listTopicSubscriptions( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTopicSubscriptionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new subscription.
-     * 
- */ - public com.google.cloud.pubsublite.proto.Subscription createSubscription( - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSubscriptionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the subscription configuration.
-     * 
- */ - public com.google.cloud.pubsublite.proto.Subscription getSubscription( - com.google.cloud.pubsublite.proto.GetSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSubscriptionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the list of subscriptions for the given project.
-     * 
- */ - public com.google.cloud.pubsublite.proto.ListSubscriptionsResponse listSubscriptions( - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSubscriptionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates properties of the specified subscription.
-     * 
- */ - public com.google.cloud.pubsublite.proto.Subscription updateSubscription( - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSubscriptionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified subscription.
-     * 
- */ - public com.google.protobuf.Empty deleteSubscription( - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSubscriptionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Performs an out-of-band seek for a subscription to a specified target,
-     * which may be timestamps or named positions within the message backlog.
-     * Seek translates these targets to cursors for each partition and
-     * orchestrates subscribers to start consuming messages from these seek
-     * cursors.
-     * If an operation is returned, the seek has been registered and subscribers
-     * will eventually receive messages from the seek cursors (i.e. eventual
-     * consistency), as long as they are using a minimum supported client library
-     * version and not a system that tracks cursors independently of Pub/Sub Lite
-     * (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for
-     * unsupported clients.
-     * If clients would like to know when subscribers react to the seek (or not),
-     * they can poll the operation. The seek operation will succeed and complete
-     * once subscribers are ready to receive messages from the seek cursors for
-     * all partitions of the topic. This means that the seek operation will not
-     * complete until all subscribers come online.
-     * If the previous seek operation has not yet completed, it will be aborted
-     * and the new invocation of seek will supersede it.
-     * 
- */ - public com.google.longrunning.Operation seekSubscription( - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSeekSubscriptionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new reservation.
-     * 
- */ - public com.google.cloud.pubsublite.proto.Reservation createReservation( - com.google.cloud.pubsublite.proto.CreateReservationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateReservationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the reservation configuration.
-     * 
- */ - public com.google.cloud.pubsublite.proto.Reservation getReservation( - com.google.cloud.pubsublite.proto.GetReservationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetReservationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the list of reservations for the given project.
-     * 
- */ - public com.google.cloud.pubsublite.proto.ListReservationsResponse listReservations( - com.google.cloud.pubsublite.proto.ListReservationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListReservationsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates properties of the specified reservation.
-     * 
- */ - public com.google.cloud.pubsublite.proto.Reservation updateReservation( - com.google.cloud.pubsublite.proto.UpdateReservationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateReservationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified reservation.
-     * 
- */ - public com.google.protobuf.Empty deleteReservation( - com.google.cloud.pubsublite.proto.DeleteReservationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteReservationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists the topics attached to the specified reservation.
-     * 
- */ - public com.google.cloud.pubsublite.proto.ListReservationTopicsResponse listReservationTopics( - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListReservationTopicsMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service AdminService. - * - *
-   * The service that a client application uses to manage topics and
-   * subscriptions, such creating, listing, and deleting topics and subscriptions.
-   * 
- */ - public static final class AdminServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AdminServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdminServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdminServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new topic.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.Topic> - createTopic(com.google.cloud.pubsublite.proto.CreateTopicRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateTopicMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the topic configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.Topic> - getTopic(com.google.cloud.pubsublite.proto.GetTopicRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetTopicMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the partition information for the requested topic.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.TopicPartitions> - getTopicPartitions(com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetTopicPartitionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the list of topics for the given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.ListTopicsResponse> - listTopics(com.google.cloud.pubsublite.proto.ListTopicsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListTopicsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates properties of the specified topic.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.Topic> - updateTopic(com.google.cloud.pubsublite.proto.UpdateTopicRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateTopicMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified topic.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteTopic(com.google.cloud.pubsublite.proto.DeleteTopicRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteTopicMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists the subscriptions attached to the specified topic.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse> - listTopicSubscriptions( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListTopicSubscriptionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new subscription.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.Subscription> - createSubscription(com.google.cloud.pubsublite.proto.CreateSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSubscriptionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the subscription configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.Subscription> - getSubscription(com.google.cloud.pubsublite.proto.GetSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSubscriptionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the list of subscriptions for the given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse> - listSubscriptions(com.google.cloud.pubsublite.proto.ListSubscriptionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSubscriptionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates properties of the specified subscription.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.Subscription> - updateSubscription(com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSubscriptionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified subscription.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteSubscription(com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSubscriptionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Performs an out-of-band seek for a subscription to a specified target,
-     * which may be timestamps or named positions within the message backlog.
-     * Seek translates these targets to cursors for each partition and
-     * orchestrates subscribers to start consuming messages from these seek
-     * cursors.
-     * If an operation is returned, the seek has been registered and subscribers
-     * will eventually receive messages from the seek cursors (i.e. eventual
-     * consistency), as long as they are using a minimum supported client library
-     * version and not a system that tracks cursors independently of Pub/Sub Lite
-     * (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for
-     * unsupported clients.
-     * If clients would like to know when subscribers react to the seek (or not),
-     * they can poll the operation. The seek operation will succeed and complete
-     * once subscribers are ready to receive messages from the seek cursors for
-     * all partitions of the topic. This means that the seek operation will not
-     * complete until all subscribers come online.
-     * If the previous seek operation has not yet completed, it will be aborted
-     * and the new invocation of seek will supersede it.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - seekSubscription(com.google.cloud.pubsublite.proto.SeekSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSeekSubscriptionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new reservation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.Reservation> - createReservation(com.google.cloud.pubsublite.proto.CreateReservationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateReservationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the reservation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.Reservation> - getReservation(com.google.cloud.pubsublite.proto.GetReservationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetReservationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the list of reservations for the given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.ListReservationsResponse> - listReservations(com.google.cloud.pubsublite.proto.ListReservationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListReservationsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates properties of the specified reservation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.Reservation> - updateReservation(com.google.cloud.pubsublite.proto.UpdateReservationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateReservationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified reservation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteReservation(com.google.cloud.pubsublite.proto.DeleteReservationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteReservationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists the topics attached to the specified reservation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse> - listReservationTopics( - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListReservationTopicsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_TOPIC = 0; - private static final int METHODID_GET_TOPIC = 1; - private static final int METHODID_GET_TOPIC_PARTITIONS = 2; - private static final int METHODID_LIST_TOPICS = 3; - private static final int METHODID_UPDATE_TOPIC = 4; - private static final int METHODID_DELETE_TOPIC = 5; - private static final int METHODID_LIST_TOPIC_SUBSCRIPTIONS = 6; - private static final int METHODID_CREATE_SUBSCRIPTION = 7; - private static final int METHODID_GET_SUBSCRIPTION = 8; - private static final int METHODID_LIST_SUBSCRIPTIONS = 9; - private static final int METHODID_UPDATE_SUBSCRIPTION = 10; - private static final int METHODID_DELETE_SUBSCRIPTION = 11; - private static final int METHODID_SEEK_SUBSCRIPTION = 12; - private static final int METHODID_CREATE_RESERVATION = 13; - private static final int METHODID_GET_RESERVATION = 14; - private static final int METHODID_LIST_RESERVATIONS = 15; - private static final int METHODID_UPDATE_RESERVATION = 16; - private static final int METHODID_DELETE_RESERVATION = 17; - private static final int METHODID_LIST_RESERVATION_TOPICS = 18; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_TOPIC: - serviceImpl.createTopic( - (com.google.cloud.pubsublite.proto.CreateTopicRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_TOPIC: - serviceImpl.getTopic( - (com.google.cloud.pubsublite.proto.GetTopicRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_TOPIC_PARTITIONS: - serviceImpl.getTopicPartitions( - (com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_TOPICS: - serviceImpl.listTopics( - (com.google.cloud.pubsublite.proto.ListTopicsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_TOPIC: - serviceImpl.updateTopic( - (com.google.cloud.pubsublite.proto.UpdateTopicRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_TOPIC: - serviceImpl.deleteTopic( - (com.google.cloud.pubsublite.proto.DeleteTopicRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_TOPIC_SUBSCRIPTIONS: - serviceImpl.listTopicSubscriptions( - (com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse>) - responseObserver); - break; - case METHODID_CREATE_SUBSCRIPTION: - serviceImpl.createSubscription( - (com.google.cloud.pubsublite.proto.CreateSubscriptionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_SUBSCRIPTION: - serviceImpl.getSubscription( - (com.google.cloud.pubsublite.proto.GetSubscriptionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_SUBSCRIPTIONS: - serviceImpl.listSubscriptions( - (com.google.cloud.pubsublite.proto.ListSubscriptionsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse>) - responseObserver); - break; - case METHODID_UPDATE_SUBSCRIPTION: - serviceImpl.updateSubscription( - (com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_SUBSCRIPTION: - serviceImpl.deleteSubscription( - (com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SEEK_SUBSCRIPTION: - serviceImpl.seekSubscription( - (com.google.cloud.pubsublite.proto.SeekSubscriptionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_RESERVATION: - serviceImpl.createReservation( - (com.google.cloud.pubsublite.proto.CreateReservationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_RESERVATION: - serviceImpl.getReservation( - (com.google.cloud.pubsublite.proto.GetReservationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_RESERVATIONS: - serviceImpl.listReservations( - (com.google.cloud.pubsublite.proto.ListReservationsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.ListReservationsResponse>) - responseObserver); - break; - case METHODID_UPDATE_RESERVATION: - serviceImpl.updateReservation( - (com.google.cloud.pubsublite.proto.UpdateReservationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_RESERVATION: - serviceImpl.deleteReservation( - (com.google.cloud.pubsublite.proto.DeleteReservationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_RESERVATION_TOPICS: - serviceImpl.listReservationTopics( - (com.google.cloud.pubsublite.proto.ListReservationTopicsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.CreateTopicRequest, - com.google.cloud.pubsublite.proto.Topic>(service, METHODID_CREATE_TOPIC))) - .addMethod( - getGetTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.GetTopicRequest, - com.google.cloud.pubsublite.proto.Topic>(service, METHODID_GET_TOPIC))) - .addMethod( - getGetTopicPartitionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest, - com.google.cloud.pubsublite.proto.TopicPartitions>( - service, METHODID_GET_TOPIC_PARTITIONS))) - .addMethod( - getListTopicsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListTopicsRequest, - com.google.cloud.pubsublite.proto.ListTopicsResponse>( - service, METHODID_LIST_TOPICS))) - .addMethod( - getUpdateTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.UpdateTopicRequest, - com.google.cloud.pubsublite.proto.Topic>(service, METHODID_UPDATE_TOPIC))) - .addMethod( - getDeleteTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.DeleteTopicRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_TOPIC))) - .addMethod( - getListTopicSubscriptionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest, - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse>( - service, METHODID_LIST_TOPIC_SUBSCRIPTIONS))) - .addMethod( - getCreateSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription>( - service, METHODID_CREATE_SUBSCRIPTION))) - .addMethod( - getGetSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.GetSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription>( - service, METHODID_GET_SUBSCRIPTION))) - .addMethod( - getListSubscriptionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest, - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse>( - service, METHODID_LIST_SUBSCRIPTIONS))) - .addMethod( - getUpdateSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest, - com.google.cloud.pubsublite.proto.Subscription>( - service, METHODID_UPDATE_SUBSCRIPTION))) - .addMethod( - getDeleteSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_SUBSCRIPTION))) - .addMethod( - getSeekSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest, - com.google.longrunning.Operation>(service, METHODID_SEEK_SUBSCRIPTION))) - .addMethod( - getCreateReservationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.CreateReservationRequest, - com.google.cloud.pubsublite.proto.Reservation>( - service, METHODID_CREATE_RESERVATION))) - .addMethod( - getGetReservationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.GetReservationRequest, - com.google.cloud.pubsublite.proto.Reservation>( - service, METHODID_GET_RESERVATION))) - .addMethod( - getListReservationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListReservationsRequest, - com.google.cloud.pubsublite.proto.ListReservationsResponse>( - service, METHODID_LIST_RESERVATIONS))) - .addMethod( - getUpdateReservationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.UpdateReservationRequest, - com.google.cloud.pubsublite.proto.Reservation>( - service, METHODID_UPDATE_RESERVATION))) - .addMethod( - getDeleteReservationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.DeleteReservationRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_RESERVATION))) - .addMethod( - getListReservationTopicsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest, - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse>( - service, METHODID_LIST_RESERVATION_TOPICS))) - .build(); - } - - private abstract static class AdminServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AdminServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AdminService"); - } - } - - private static final class AdminServiceFileDescriptorSupplier - extends AdminServiceBaseDescriptorSupplier { - AdminServiceFileDescriptorSupplier() {} - } - - private static final class AdminServiceMethodDescriptorSupplier - extends AdminServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - AdminServiceMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (AdminServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AdminServiceFileDescriptorSupplier()) - .addMethod(getCreateTopicMethod()) - .addMethod(getGetTopicMethod()) - .addMethod(getGetTopicPartitionsMethod()) - .addMethod(getListTopicsMethod()) - .addMethod(getUpdateTopicMethod()) - .addMethod(getDeleteTopicMethod()) - .addMethod(getListTopicSubscriptionsMethod()) - .addMethod(getCreateSubscriptionMethod()) - .addMethod(getGetSubscriptionMethod()) - .addMethod(getListSubscriptionsMethod()) - .addMethod(getUpdateSubscriptionMethod()) - .addMethod(getDeleteSubscriptionMethod()) - .addMethod(getSeekSubscriptionMethod()) - .addMethod(getCreateReservationMethod()) - .addMethod(getGetReservationMethod()) - .addMethod(getListReservationsMethod()) - .addMethod(getUpdateReservationMethod()) - .addMethod(getDeleteReservationMethod()) - .addMethod(getListReservationTopicsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorServiceGrpc.java b/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorServiceGrpc.java deleted file mode 100644 index ca61fa9c6..000000000 --- a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorServiceGrpc.java +++ /dev/null @@ -1,615 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.pubsublite.proto; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The service that a subscriber client application uses to manage committed
- * cursors while receiving messsages. A cursor represents a subscriber's
- * progress within a topic partition for a given subscription.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/pubsublite/v1/cursor.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class CursorServiceGrpc { - - private CursorServiceGrpc() {} - - public static final java.lang.String SERVICE_NAME = "google.cloud.pubsublite.v1.CursorService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest, - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse> - getStreamingCommitCursorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamingCommitCursor", - requestType = com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.class, - responseType = com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest, - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse> - getStreamingCommitCursorMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest, - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse> - getStreamingCommitCursorMethod; - if ((getStreamingCommitCursorMethod = CursorServiceGrpc.getStreamingCommitCursorMethod) - == null) { - synchronized (CursorServiceGrpc.class) { - if ((getStreamingCommitCursorMethod = CursorServiceGrpc.getStreamingCommitCursorMethod) - == null) { - CursorServiceGrpc.getStreamingCommitCursorMethod = - getStreamingCommitCursorMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "StreamingCommitCursor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CursorServiceMethodDescriptorSupplier("StreamingCommitCursor")) - .build(); - } - } - } - return getStreamingCommitCursorMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.CommitCursorRequest, - com.google.cloud.pubsublite.proto.CommitCursorResponse> - getCommitCursorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CommitCursor", - requestType = com.google.cloud.pubsublite.proto.CommitCursorRequest.class, - responseType = com.google.cloud.pubsublite.proto.CommitCursorResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.CommitCursorRequest, - com.google.cloud.pubsublite.proto.CommitCursorResponse> - getCommitCursorMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.CommitCursorRequest, - com.google.cloud.pubsublite.proto.CommitCursorResponse> - getCommitCursorMethod; - if ((getCommitCursorMethod = CursorServiceGrpc.getCommitCursorMethod) == null) { - synchronized (CursorServiceGrpc.class) { - if ((getCommitCursorMethod = CursorServiceGrpc.getCommitCursorMethod) == null) { - CursorServiceGrpc.getCommitCursorMethod = - getCommitCursorMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CommitCursor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.CommitCursorRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.CommitCursorResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CursorServiceMethodDescriptorSupplier("CommitCursor")) - .build(); - } - } - } - return getCommitCursorMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest, - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse> - getListPartitionCursorsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPartitionCursors", - requestType = com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.class, - responseType = com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest, - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse> - getListPartitionCursorsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest, - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse> - getListPartitionCursorsMethod; - if ((getListPartitionCursorsMethod = CursorServiceGrpc.getListPartitionCursorsMethod) == null) { - synchronized (CursorServiceGrpc.class) { - if ((getListPartitionCursorsMethod = CursorServiceGrpc.getListPartitionCursorsMethod) - == null) { - CursorServiceGrpc.getListPartitionCursorsMethod = - getListPartitionCursorsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListPartitionCursors")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CursorServiceMethodDescriptorSupplier("ListPartitionCursors")) - .build(); - } - } - } - return getListPartitionCursorsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static CursorServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CursorServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CursorServiceStub(channel, callOptions); - } - }; - return CursorServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static CursorServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CursorServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CursorServiceBlockingStub(channel, callOptions); - } - }; - return CursorServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static CursorServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CursorServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CursorServiceFutureStub(channel, callOptions); - } - }; - return CursorServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The service that a subscriber client application uses to manage committed
-   * cursors while receiving messsages. A cursor represents a subscriber's
-   * progress within a topic partition for a given subscription.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Establishes a stream with the server for managing committed cursors.
-     * 
- */ - default io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest> - streamingCommitCursor( - io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse> - responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( - getStreamingCommitCursorMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the committed cursor.
-     * 
- */ - default void commitCursor( - com.google.cloud.pubsublite.proto.CommitCursorRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCommitCursorMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns all committed cursor information for a subscription.
-     * 
- */ - default void listPartitionCursors( - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListPartitionCursorsMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service CursorService. - * - *
-   * The service that a subscriber client application uses to manage committed
-   * cursors while receiving messsages. A cursor represents a subscriber's
-   * progress within a topic partition for a given subscription.
-   * 
- */ - public abstract static class CursorServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return CursorServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service CursorService. - * - *
-   * The service that a subscriber client application uses to manage committed
-   * cursors while receiving messsages. A cursor represents a subscriber's
-   * progress within a topic partition for a given subscription.
-   * 
- */ - public static final class CursorServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private CursorServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CursorServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CursorServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Establishes a stream with the server for managing committed cursors.
-     * 
- */ - public io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest> - streamingCommitCursor( - io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse> - responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamingCommitCursorMethod(), getCallOptions()), - responseObserver); - } - - /** - * - * - *
-     * Updates the committed cursor.
-     * 
- */ - public void commitCursor( - com.google.cloud.pubsublite.proto.CommitCursorRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCommitCursorMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns all committed cursor information for a subscription.
-     * 
- */ - public void listPartitionCursors( - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPartitionCursorsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service CursorService. - * - *
-   * The service that a subscriber client application uses to manage committed
-   * cursors while receiving messsages. A cursor represents a subscriber's
-   * progress within a topic partition for a given subscription.
-   * 
- */ - public static final class CursorServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private CursorServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CursorServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CursorServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Updates the committed cursor.
-     * 
- */ - public com.google.cloud.pubsublite.proto.CommitCursorResponse commitCursor( - com.google.cloud.pubsublite.proto.CommitCursorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCommitCursorMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns all committed cursor information for a subscription.
-     * 
- */ - public com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse listPartitionCursors( - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPartitionCursorsMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service CursorService. - * - *
-   * The service that a subscriber client application uses to manage committed
-   * cursors while receiving messsages. A cursor represents a subscriber's
-   * progress within a topic partition for a given subscription.
-   * 
- */ - public static final class CursorServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private CursorServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CursorServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CursorServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Updates the committed cursor.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.CommitCursorResponse> - commitCursor(com.google.cloud.pubsublite.proto.CommitCursorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCommitCursorMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns all committed cursor information for a subscription.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse> - listPartitionCursors( - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPartitionCursorsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_COMMIT_CURSOR = 0; - private static final int METHODID_LIST_PARTITION_CURSORS = 1; - private static final int METHODID_STREAMING_COMMIT_CURSOR = 2; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_COMMIT_CURSOR: - serviceImpl.commitCursor( - (com.google.cloud.pubsublite.proto.CommitCursorRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_PARTITION_CURSORS: - serviceImpl.listPartitionCursors( - (com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_STREAMING_COMMIT_CURSOR: - return (io.grpc.stub.StreamObserver) - serviceImpl.streamingCommitCursor( - (io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse>) - responseObserver); - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getStreamingCommitCursorMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest, - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse>( - service, METHODID_STREAMING_COMMIT_CURSOR))) - .addMethod( - getCommitCursorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.CommitCursorRequest, - com.google.cloud.pubsublite.proto.CommitCursorResponse>( - service, METHODID_COMMIT_CURSOR))) - .addMethod( - getListPartitionCursorsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest, - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse>( - service, METHODID_LIST_PARTITION_CURSORS))) - .build(); - } - - private abstract static class CursorServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - CursorServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("CursorService"); - } - } - - private static final class CursorServiceFileDescriptorSupplier - extends CursorServiceBaseDescriptorSupplier { - CursorServiceFileDescriptorSupplier() {} - } - - private static final class CursorServiceMethodDescriptorSupplier - extends CursorServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - CursorServiceMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (CursorServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CursorServiceFileDescriptorSupplier()) - .addMethod(getStreamingCommitCursorMethod()) - .addMethod(getCommitCursorMethod()) - .addMethod(getListPartitionCursorsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsServiceGrpc.java b/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsServiceGrpc.java deleted file mode 100644 index b815dae9e..000000000 --- a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsServiceGrpc.java +++ /dev/null @@ -1,659 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.pubsublite.proto; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * This service allows users to get stats about messages in their topic.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/pubsublite/v1/topic_stats.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class TopicStatsServiceGrpc { - - private TopicStatsServiceGrpc() {} - - public static final java.lang.String SERVICE_NAME = - "google.cloud.pubsublite.v1.TopicStatsService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest, - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse> - getComputeMessageStatsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ComputeMessageStats", - requestType = com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.class, - responseType = com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest, - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse> - getComputeMessageStatsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest, - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse> - getComputeMessageStatsMethod; - if ((getComputeMessageStatsMethod = TopicStatsServiceGrpc.getComputeMessageStatsMethod) - == null) { - synchronized (TopicStatsServiceGrpc.class) { - if ((getComputeMessageStatsMethod = TopicStatsServiceGrpc.getComputeMessageStatsMethod) - == null) { - TopicStatsServiceGrpc.getComputeMessageStatsMethod = - getComputeMessageStatsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ComputeMessageStats")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TopicStatsServiceMethodDescriptorSupplier("ComputeMessageStats")) - .build(); - } - } - } - return getComputeMessageStatsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest, - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse> - getComputeHeadCursorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ComputeHeadCursor", - requestType = com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.class, - responseType = com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest, - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse> - getComputeHeadCursorMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest, - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse> - getComputeHeadCursorMethod; - if ((getComputeHeadCursorMethod = TopicStatsServiceGrpc.getComputeHeadCursorMethod) == null) { - synchronized (TopicStatsServiceGrpc.class) { - if ((getComputeHeadCursorMethod = TopicStatsServiceGrpc.getComputeHeadCursorMethod) - == null) { - TopicStatsServiceGrpc.getComputeHeadCursorMethod = - getComputeHeadCursorMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComputeHeadCursor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TopicStatsServiceMethodDescriptorSupplier("ComputeHeadCursor")) - .build(); - } - } - } - return getComputeHeadCursorMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest, - com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse> - getComputeTimeCursorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ComputeTimeCursor", - requestType = com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.class, - responseType = com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest, - com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse> - getComputeTimeCursorMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest, - com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse> - getComputeTimeCursorMethod; - if ((getComputeTimeCursorMethod = TopicStatsServiceGrpc.getComputeTimeCursorMethod) == null) { - synchronized (TopicStatsServiceGrpc.class) { - if ((getComputeTimeCursorMethod = TopicStatsServiceGrpc.getComputeTimeCursorMethod) - == null) { - TopicStatsServiceGrpc.getComputeTimeCursorMethod = - getComputeTimeCursorMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComputeTimeCursor")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new TopicStatsServiceMethodDescriptorSupplier("ComputeTimeCursor")) - .build(); - } - } - } - return getComputeTimeCursorMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static TopicStatsServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TopicStatsServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TopicStatsServiceStub(channel, callOptions); - } - }; - return TopicStatsServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static TopicStatsServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TopicStatsServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TopicStatsServiceBlockingStub(channel, callOptions); - } - }; - return TopicStatsServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static TopicStatsServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public TopicStatsServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TopicStatsServiceFutureStub(channel, callOptions); - } - }; - return TopicStatsServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * This service allows users to get stats about messages in their topic.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Compute statistics about a range of messages in a given topic and
-     * partition.
-     * 
- */ - default void computeMessageStats( - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getComputeMessageStatsMethod(), responseObserver); - } - - /** - * - * - *
-     * Compute the head cursor for the partition.
-     * The head cursor's offset is guaranteed to be less than or equal to all
-     * messages which have not yet been acknowledged as published, and
-     * greater than the offset of any message whose publish has already
-     * been acknowledged. It is zero if there have never been messages in the
-     * partition.
-     * 
- */ - default void computeHeadCursor( - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getComputeHeadCursorMethod(), responseObserver); - } - - /** - * - * - *
-     * Compute the corresponding cursor for a publish or event time in a topic
-     * partition.
-     * 
- */ - default void computeTimeCursor( - com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getComputeTimeCursorMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service TopicStatsService. - * - *
-   * This service allows users to get stats about messages in their topic.
-   * 
- */ - public abstract static class TopicStatsServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return TopicStatsServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service TopicStatsService. - * - *
-   * This service allows users to get stats about messages in their topic.
-   * 
- */ - public static final class TopicStatsServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private TopicStatsServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TopicStatsServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TopicStatsServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Compute statistics about a range of messages in a given topic and
-     * partition.
-     * 
- */ - public void computeMessageStats( - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getComputeMessageStatsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Compute the head cursor for the partition.
-     * The head cursor's offset is guaranteed to be less than or equal to all
-     * messages which have not yet been acknowledged as published, and
-     * greater than the offset of any message whose publish has already
-     * been acknowledged. It is zero if there have never been messages in the
-     * partition.
-     * 
- */ - public void computeHeadCursor( - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getComputeHeadCursorMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Compute the corresponding cursor for a publish or event time in a topic
-     * partition.
-     * 
- */ - public void computeTimeCursor( - com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getComputeTimeCursorMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service TopicStatsService. - * - *
-   * This service allows users to get stats about messages in their topic.
-   * 
- */ - public static final class TopicStatsServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private TopicStatsServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TopicStatsServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TopicStatsServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Compute statistics about a range of messages in a given topic and
-     * partition.
-     * 
- */ - public com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse computeMessageStats( - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getComputeMessageStatsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Compute the head cursor for the partition.
-     * The head cursor's offset is guaranteed to be less than or equal to all
-     * messages which have not yet been acknowledged as published, and
-     * greater than the offset of any message whose publish has already
-     * been acknowledged. It is zero if there have never been messages in the
-     * partition.
-     * 
- */ - public com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse computeHeadCursor( - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getComputeHeadCursorMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Compute the corresponding cursor for a publish or event time in a topic
-     * partition.
-     * 
- */ - public com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse computeTimeCursor( - com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getComputeTimeCursorMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service TopicStatsService. - * - *
-   * This service allows users to get stats about messages in their topic.
-   * 
- */ - public static final class TopicStatsServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private TopicStatsServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected TopicStatsServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new TopicStatsServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Compute statistics about a range of messages in a given topic and
-     * partition.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse> - computeMessageStats(com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getComputeMessageStatsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Compute the head cursor for the partition.
-     * The head cursor's offset is guaranteed to be less than or equal to all
-     * messages which have not yet been acknowledged as published, and
-     * greater than the offset of any message whose publish has already
-     * been acknowledged. It is zero if there have never been messages in the
-     * partition.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse> - computeHeadCursor(com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getComputeHeadCursorMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Compute the corresponding cursor for a publish or event time in a topic
-     * partition.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse> - computeTimeCursor(com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getComputeTimeCursorMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_COMPUTE_MESSAGE_STATS = 0; - private static final int METHODID_COMPUTE_HEAD_CURSOR = 1; - private static final int METHODID_COMPUTE_TIME_CURSOR = 2; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_COMPUTE_MESSAGE_STATS: - serviceImpl.computeMessageStats( - (com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse>) - responseObserver); - break; - case METHODID_COMPUTE_HEAD_CURSOR: - serviceImpl.computeHeadCursor( - (com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse>) - responseObserver); - break; - case METHODID_COMPUTE_TIME_CURSOR: - serviceImpl.computeTimeCursor( - (com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getComputeMessageStatsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest, - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse>( - service, METHODID_COMPUTE_MESSAGE_STATS))) - .addMethod( - getComputeHeadCursorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest, - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse>( - service, METHODID_COMPUTE_HEAD_CURSOR))) - .addMethod( - getComputeTimeCursorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest, - com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse>( - service, METHODID_COMPUTE_TIME_CURSOR))) - .build(); - } - - private abstract static class TopicStatsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - TopicStatsServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.pubsublite.proto.TopicStatsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("TopicStatsService"); - } - } - - private static final class TopicStatsServiceFileDescriptorSupplier - extends TopicStatsServiceBaseDescriptorSupplier { - TopicStatsServiceFileDescriptorSupplier() {} - } - - private static final class TopicStatsServiceMethodDescriptorSupplier - extends TopicStatsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - TopicStatsServiceMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (TopicStatsServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new TopicStatsServiceFileDescriptorSupplier()) - .addMethod(getComputeMessageStatsMethod()) - .addMethod(getComputeHeadCursorMethod()) - .addMethod(getComputeTimeCursorMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceClient.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceClient.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceClient.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceClient.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceSettings.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceSettings.java similarity index 99% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceSettings.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceSettings.java index bd1e58a5f..369b6fce0 100644 --- a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceSettings.java +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceSettings.java @@ -31,6 +31,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.pubsublite.proto.CreateReservationRequest; diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceClient.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceClient.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceClient.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceClient.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceSettings.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceSettings.java similarity index 99% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceSettings.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceSettings.java index 2e144837e..6d6516eb6 100644 --- a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceSettings.java +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceSettings.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.pubsublite.proto.CommitCursorRequest; diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClient.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClient.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClient.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClient.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceSettings.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceSettings.java similarity index 99% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceSettings.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceSettings.java index c704f9ede..8662ed4ea 100644 --- a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceSettings.java +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceSettings.java @@ -24,6 +24,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.pubsublite.proto.PartitionAssignment; diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceClient.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceClient.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceClient.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceClient.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceSettings.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceSettings.java similarity index 99% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceSettings.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceSettings.java index 910857dd3..b38b2ba4a 100644 --- a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceSettings.java +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceSettings.java @@ -24,6 +24,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.pubsublite.proto.PublishRequest; diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceClient.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceClient.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceClient.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceClient.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceSettings.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceSettings.java similarity index 99% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceSettings.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceSettings.java index 0cd4da4c3..1dcc94b63 100644 --- a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceSettings.java +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceSettings.java @@ -24,6 +24,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.pubsublite.proto.SubscribeRequest; diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClient.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClient.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClient.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClient.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceSettings.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceSettings.java similarity index 99% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceSettings.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceSettings.java index 9a8542826..a42504933 100644 --- a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceSettings.java +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceSettings.java @@ -23,6 +23,7 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest; diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/gapic_metadata.json similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/gapic_metadata.json diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/package-info.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/package-info.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/package-info.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStub.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStub.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStub.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStubSettings.java similarity index 99% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStubSettings.java index 11205283b..46bc230ed 100644 --- a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStubSettings.java @@ -24,7 +24,6 @@ import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; import com.google.api.gax.core.GaxProperties; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; @@ -1115,8 +1114,6 @@ public UnaryCallSettings.Builder deleteTopicSettings( } /** Returns the builder for the settings used for calls to seekSubscription. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings.Builder< SeekSubscriptionRequest, SeekSubscriptionResponse, OperationMetadata> seekSubscriptionOperationSettings() { diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStub.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStub.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStub.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStubSettings.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStubSettings.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceCallableFactory.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceCallableFactory.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceStub.java similarity index 99% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceStub.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceStub.java index ca5abf08e..e69b97b48 100644 --- a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceStub.java +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcAdminServiceStub.java @@ -66,6 +66,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceCallableFactory.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceCallableFactory.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceStub.java similarity index 99% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceStub.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceStub.java index fbbd8becf..03b7ef67c 100644 --- a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceStub.java +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcCursorServiceStub.java @@ -36,6 +36,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceCallableFactory.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceCallableFactory.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceStub.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceStub.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPartitionAssignmentServiceStub.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceCallableFactory.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceCallableFactory.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceStub.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceStub.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcPublisherServiceStub.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceCallableFactory.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceCallableFactory.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceStub.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceStub.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcSubscriberServiceStub.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceCallableFactory.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceCallableFactory.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceStub.java similarity index 99% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceStub.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceStub.java index b013386e3..bb442610c 100644 --- a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceStub.java +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/GrpcTopicStatsServiceStub.java @@ -33,6 +33,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStub.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStub.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStub.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStubSettings.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStubSettings.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStub.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStub.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStub.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStubSettings.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStubSettings.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStub.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStub.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStub.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStubSettings.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/SubscriberServiceStubSettings.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStub.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStub.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStub.java diff --git a/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStubSettings.java similarity index 100% rename from google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/TopicStatsServiceStubSettings.java diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/main/resources/META-INF/native-image/com.google.cloud.pubsublite.v1/reflect-config.json b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/resources/META-INF/native-image/com.google.cloud.pubsublite.v1/reflect-config.json new file mode 100644 index 000000000..8a90e4173 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/main/resources/META-INF/native-image/com.google.cloud.pubsublite.v1/reflect-config.json @@ -0,0 +1,2801 @@ +[ + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.AttributeValues", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.AttributeValues$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.CommitCursorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.CommitCursorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.CommitCursorResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.CommitCursorResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.CreateReservationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.CreateReservationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.CreateSubscriptionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.CreateSubscriptionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.CreateTopicRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.CreateTopicRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Cursor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Cursor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.DeleteReservationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.DeleteReservationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.DeleteTopicRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.DeleteTopicRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ExportConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ExportConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ExportConfig$PubSubConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ExportConfig$PubSubConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ExportConfig$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.FlowControlRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.FlowControlRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.GetReservationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.GetReservationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.GetSubscriptionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.GetSubscriptionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.GetTopicRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.GetTopicRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialCommitCursorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialCommitCursorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialCommitCursorResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialCommitCursorResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialPublishRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialPublishRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialPublishResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialPublishResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialSubscribeRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialSubscribeRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialSubscribeResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.InitialSubscribeResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListReservationTopicsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListReservationTopicsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListReservationTopicsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListReservationTopicsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListReservationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListReservationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListReservationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListReservationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListSubscriptionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListSubscriptionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListSubscriptionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListSubscriptionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListTopicsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListTopicsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListTopicsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.ListTopicsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.MessagePublishRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.MessagePublishRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.MessagePublishResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.MessagePublishResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.MessagePublishResponse$CursorRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.MessagePublishResponse$CursorRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.MessageResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.MessageResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.OperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.OperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PartitionAssignment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PartitionAssignment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PartitionAssignmentAck", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PartitionAssignmentAck$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PartitionAssignmentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PartitionAssignmentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PartitionCursor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PartitionCursor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PubSubMessage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PubSubMessage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PublishRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PublishRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PublishResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.PublishResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Reservation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Reservation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SeekRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SeekRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SeekRequest$NamedTarget", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SeekResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SeekResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SeekSubscriptionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SeekSubscriptionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SeekSubscriptionRequest$NamedTarget", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SeekSubscriptionResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SeekSubscriptionResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SequencedMessage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SequencedMessage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SubscribeRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SubscribeRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SubscribeResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.SubscribeResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Subscription", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Subscription$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Subscription$DeliveryConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Subscription$DeliveryConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Subscription$DeliveryConfig$DeliveryRequirement", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.TimeTarget", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.TimeTarget$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Topic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Topic$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Topic$PartitionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Topic$PartitionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Topic$PartitionConfig$Capacity", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Topic$PartitionConfig$Capacity$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Topic$ReservationConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Topic$ReservationConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Topic$RetentionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.Topic$RetentionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.TopicPartitions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.TopicPartitions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.UpdateReservationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.UpdateReservationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.UpdateTopicRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.pubsublite.proto.UpdateTopicRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$Edition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/AdminServiceClientTest.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/AdminServiceClientTest.java new file mode 100644 index 000000000..41b943385 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/AdminServiceClientTest.java @@ -0,0 +1,1545 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsublite.v1; + +import static com.google.cloud.pubsublite.v1.AdminServiceClient.ListReservationTopicsPagedResponse; +import static com.google.cloud.pubsublite.v1.AdminServiceClient.ListReservationsPagedResponse; +import static com.google.cloud.pubsublite.v1.AdminServiceClient.ListSubscriptionsPagedResponse; +import static com.google.cloud.pubsublite.v1.AdminServiceClient.ListTopicSubscriptionsPagedResponse; +import static com.google.cloud.pubsublite.v1.AdminServiceClient.ListTopicsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.pubsublite.proto.CreateReservationRequest; +import com.google.cloud.pubsublite.proto.CreateSubscriptionRequest; +import com.google.cloud.pubsublite.proto.CreateTopicRequest; +import com.google.cloud.pubsublite.proto.DeleteReservationRequest; +import com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest; +import com.google.cloud.pubsublite.proto.DeleteTopicRequest; +import com.google.cloud.pubsublite.proto.ExportConfig; +import com.google.cloud.pubsublite.proto.GetReservationRequest; +import com.google.cloud.pubsublite.proto.GetSubscriptionRequest; +import com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest; +import com.google.cloud.pubsublite.proto.GetTopicRequest; +import com.google.cloud.pubsublite.proto.ListReservationTopicsRequest; +import com.google.cloud.pubsublite.proto.ListReservationTopicsResponse; +import com.google.cloud.pubsublite.proto.ListReservationsRequest; +import com.google.cloud.pubsublite.proto.ListReservationsResponse; +import com.google.cloud.pubsublite.proto.ListSubscriptionsRequest; +import com.google.cloud.pubsublite.proto.ListSubscriptionsResponse; +import com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest; +import com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse; +import com.google.cloud.pubsublite.proto.ListTopicsRequest; +import com.google.cloud.pubsublite.proto.ListTopicsResponse; +import com.google.cloud.pubsublite.proto.LocationName; +import com.google.cloud.pubsublite.proto.Reservation; +import com.google.cloud.pubsublite.proto.ReservationName; +import com.google.cloud.pubsublite.proto.SeekSubscriptionRequest; +import com.google.cloud.pubsublite.proto.SeekSubscriptionResponse; +import com.google.cloud.pubsublite.proto.Subscription; +import com.google.cloud.pubsublite.proto.SubscriptionName; +import com.google.cloud.pubsublite.proto.Topic; +import com.google.cloud.pubsublite.proto.TopicName; +import com.google.cloud.pubsublite.proto.TopicPartitions; +import com.google.cloud.pubsublite.proto.UpdateReservationRequest; +import com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest; +import com.google.cloud.pubsublite.proto.UpdateTopicRequest; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AdminServiceClientTest { + private static MockAdminService mockAdminService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private AdminServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockAdminService = new MockAdminService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockAdminService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + AdminServiceSettings settings = + AdminServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AdminServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createTopicTest() throws Exception { + Topic expectedResponse = + Topic.newBuilder() + .setName(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setPartitionConfig(Topic.PartitionConfig.newBuilder().build()) + .setRetentionConfig(Topic.RetentionConfig.newBuilder().build()) + .setReservationConfig(Topic.ReservationConfig.newBuilder().build()) + .build(); + mockAdminService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Topic topic = Topic.newBuilder().build(); + String topicId = "topicId-1139259734"; + + Topic actualResponse = client.createTopic(parent, topic, topicId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateTopicRequest actualRequest = ((CreateTopicRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(topic, actualRequest.getTopic()); + Assert.assertEquals(topicId, actualRequest.getTopicId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createTopicExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Topic topic = Topic.newBuilder().build(); + String topicId = "topicId-1139259734"; + client.createTopic(parent, topic, topicId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTopicTest2() throws Exception { + Topic expectedResponse = + Topic.newBuilder() + .setName(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setPartitionConfig(Topic.PartitionConfig.newBuilder().build()) + .setRetentionConfig(Topic.RetentionConfig.newBuilder().build()) + .setReservationConfig(Topic.ReservationConfig.newBuilder().build()) + .build(); + mockAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Topic topic = Topic.newBuilder().build(); + String topicId = "topicId-1139259734"; + + Topic actualResponse = client.createTopic(parent, topic, topicId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateTopicRequest actualRequest = ((CreateTopicRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(topic, actualRequest.getTopic()); + Assert.assertEquals(topicId, actualRequest.getTopicId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createTopicExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + Topic topic = Topic.newBuilder().build(); + String topicId = "topicId-1139259734"; + client.createTopic(parent, topic, topicId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTopicTest() throws Exception { + Topic expectedResponse = + Topic.newBuilder() + .setName(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setPartitionConfig(Topic.PartitionConfig.newBuilder().build()) + .setRetentionConfig(Topic.RetentionConfig.newBuilder().build()) + .setReservationConfig(Topic.ReservationConfig.newBuilder().build()) + .build(); + mockAdminService.addResponse(expectedResponse); + + TopicName name = TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]"); + + Topic actualResponse = client.getTopic(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTopicRequest actualRequest = ((GetTopicRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTopicExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + TopicName name = TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]"); + client.getTopic(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTopicTest2() throws Exception { + Topic expectedResponse = + Topic.newBuilder() + .setName(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setPartitionConfig(Topic.PartitionConfig.newBuilder().build()) + .setRetentionConfig(Topic.RetentionConfig.newBuilder().build()) + .setReservationConfig(Topic.ReservationConfig.newBuilder().build()) + .build(); + mockAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + Topic actualResponse = client.getTopic(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTopicRequest actualRequest = ((GetTopicRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTopicExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getTopic(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTopicPartitionsTest() throws Exception { + TopicPartitions expectedResponse = + TopicPartitions.newBuilder().setPartitionCount(-1738969222).build(); + mockAdminService.addResponse(expectedResponse); + + TopicName name = TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]"); + + TopicPartitions actualResponse = client.getTopicPartitions(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTopicPartitionsRequest actualRequest = ((GetTopicPartitionsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTopicPartitionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + TopicName name = TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]"); + client.getTopicPartitions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTopicPartitionsTest2() throws Exception { + TopicPartitions expectedResponse = + TopicPartitions.newBuilder().setPartitionCount(-1738969222).build(); + mockAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + TopicPartitions actualResponse = client.getTopicPartitions(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTopicPartitionsRequest actualRequest = ((GetTopicPartitionsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTopicPartitionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getTopicPartitions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTopicsTest() throws Exception { + Topic responsesElement = Topic.newBuilder().build(); + ListTopicsResponse expectedResponse = + ListTopicsResponse.newBuilder() + .setNextPageToken("") + .addAllTopics(Arrays.asList(responsesElement)) + .build(); + mockAdminService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListTopicsPagedResponse pagedListResponse = client.listTopics(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTopicsList().get(0), resources.get(0)); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTopicsRequest actualRequest = ((ListTopicsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTopicsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listTopics(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTopicsTest2() throws Exception { + Topic responsesElement = Topic.newBuilder().build(); + ListTopicsResponse expectedResponse = + ListTopicsResponse.newBuilder() + .setNextPageToken("") + .addAllTopics(Arrays.asList(responsesElement)) + .build(); + mockAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListTopicsPagedResponse pagedListResponse = client.listTopics(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTopicsList().get(0), resources.get(0)); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTopicsRequest actualRequest = ((ListTopicsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTopicsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listTopics(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateTopicTest() throws Exception { + Topic expectedResponse = + Topic.newBuilder() + .setName(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setPartitionConfig(Topic.PartitionConfig.newBuilder().build()) + .setRetentionConfig(Topic.RetentionConfig.newBuilder().build()) + .setReservationConfig(Topic.ReservationConfig.newBuilder().build()) + .build(); + mockAdminService.addResponse(expectedResponse); + + Topic topic = Topic.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Topic actualResponse = client.updateTopic(topic, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateTopicRequest actualRequest = ((UpdateTopicRequest) actualRequests.get(0)); + + Assert.assertEquals(topic, actualRequest.getTopic()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateTopicExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + Topic topic = Topic.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateTopic(topic, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTopicTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAdminService.addResponse(expectedResponse); + + TopicName name = TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]"); + + client.deleteTopic(name); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTopicRequest actualRequest = ((DeleteTopicRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteTopicExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + TopicName name = TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]"); + client.deleteTopic(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTopicTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteTopic(name); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTopicRequest actualRequest = ((DeleteTopicRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteTopicExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String name = "name3373707"; + client.deleteTopic(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTopicSubscriptionsTest() throws Exception { + String responsesElement = "responsesElement-318365110"; + ListTopicSubscriptionsResponse expectedResponse = + ListTopicSubscriptionsResponse.newBuilder() + .setNextPageToken("") + .addAllSubscriptions(Arrays.asList(responsesElement)) + .build(); + mockAdminService.addResponse(expectedResponse); + + TopicName name = TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]"); + + ListTopicSubscriptionsPagedResponse pagedListResponse = client.listTopicSubscriptions(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubscriptionsList().get(0), resources.get(0)); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTopicSubscriptionsRequest actualRequest = + ((ListTopicSubscriptionsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTopicSubscriptionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + TopicName name = TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]"); + client.listTopicSubscriptions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTopicSubscriptionsTest2() throws Exception { + String responsesElement = "responsesElement-318365110"; + ListTopicSubscriptionsResponse expectedResponse = + ListTopicSubscriptionsResponse.newBuilder() + .setNextPageToken("") + .addAllSubscriptions(Arrays.asList(responsesElement)) + .build(); + mockAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + ListTopicSubscriptionsPagedResponse pagedListResponse = client.listTopicSubscriptions(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubscriptionsList().get(0), resources.get(0)); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTopicSubscriptionsRequest actualRequest = + ((ListTopicSubscriptionsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTopicSubscriptionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String name = "name3373707"; + client.listTopicSubscriptions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSubscriptionTest() throws Exception { + Subscription expectedResponse = + Subscription.newBuilder() + .setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setDeliveryConfig(Subscription.DeliveryConfig.newBuilder().build()) + .setExportConfig(ExportConfig.newBuilder().build()) + .build(); + mockAdminService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Subscription subscription = Subscription.newBuilder().build(); + String subscriptionId = "subscriptionId1478790936"; + + Subscription actualResponse = client.createSubscription(parent, subscription, subscriptionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSubscriptionRequest actualRequest = ((CreateSubscriptionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(subscription, actualRequest.getSubscription()); + Assert.assertEquals(subscriptionId, actualRequest.getSubscriptionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSubscriptionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Subscription subscription = Subscription.newBuilder().build(); + String subscriptionId = "subscriptionId1478790936"; + client.createSubscription(parent, subscription, subscriptionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSubscriptionTest2() throws Exception { + Subscription expectedResponse = + Subscription.newBuilder() + .setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setDeliveryConfig(Subscription.DeliveryConfig.newBuilder().build()) + .setExportConfig(ExportConfig.newBuilder().build()) + .build(); + mockAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Subscription subscription = Subscription.newBuilder().build(); + String subscriptionId = "subscriptionId1478790936"; + + Subscription actualResponse = client.createSubscription(parent, subscription, subscriptionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSubscriptionRequest actualRequest = ((CreateSubscriptionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(subscription, actualRequest.getSubscription()); + Assert.assertEquals(subscriptionId, actualRequest.getSubscriptionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSubscriptionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + Subscription subscription = Subscription.newBuilder().build(); + String subscriptionId = "subscriptionId1478790936"; + client.createSubscription(parent, subscription, subscriptionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSubscriptionTest() throws Exception { + Subscription expectedResponse = + Subscription.newBuilder() + .setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setDeliveryConfig(Subscription.DeliveryConfig.newBuilder().build()) + .setExportConfig(ExportConfig.newBuilder().build()) + .build(); + mockAdminService.addResponse(expectedResponse); + + SubscriptionName name = SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"); + + Subscription actualResponse = client.getSubscription(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSubscriptionRequest actualRequest = ((GetSubscriptionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSubscriptionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + SubscriptionName name = SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"); + client.getSubscription(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSubscriptionTest2() throws Exception { + Subscription expectedResponse = + Subscription.newBuilder() + .setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setDeliveryConfig(Subscription.DeliveryConfig.newBuilder().build()) + .setExportConfig(ExportConfig.newBuilder().build()) + .build(); + mockAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + Subscription actualResponse = client.getSubscription(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSubscriptionRequest actualRequest = ((GetSubscriptionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSubscriptionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getSubscription(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSubscriptionsTest() throws Exception { + Subscription responsesElement = Subscription.newBuilder().build(); + ListSubscriptionsResponse expectedResponse = + ListSubscriptionsResponse.newBuilder() + .setNextPageToken("") + .addAllSubscriptions(Arrays.asList(responsesElement)) + .build(); + mockAdminService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListSubscriptionsPagedResponse pagedListResponse = client.listSubscriptions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubscriptionsList().get(0), resources.get(0)); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSubscriptionsRequest actualRequest = ((ListSubscriptionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSubscriptionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listSubscriptions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSubscriptionsTest2() throws Exception { + Subscription responsesElement = Subscription.newBuilder().build(); + ListSubscriptionsResponse expectedResponse = + ListSubscriptionsResponse.newBuilder() + .setNextPageToken("") + .addAllSubscriptions(Arrays.asList(responsesElement)) + .build(); + mockAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListSubscriptionsPagedResponse pagedListResponse = client.listSubscriptions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubscriptionsList().get(0), resources.get(0)); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSubscriptionsRequest actualRequest = ((ListSubscriptionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSubscriptionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listSubscriptions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSubscriptionTest() throws Exception { + Subscription expectedResponse = + Subscription.newBuilder() + .setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setDeliveryConfig(Subscription.DeliveryConfig.newBuilder().build()) + .setExportConfig(ExportConfig.newBuilder().build()) + .build(); + mockAdminService.addResponse(expectedResponse); + + Subscription subscription = Subscription.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Subscription actualResponse = client.updateSubscription(subscription, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateSubscriptionRequest actualRequest = ((UpdateSubscriptionRequest) actualRequests.get(0)); + + Assert.assertEquals(subscription, actualRequest.getSubscription()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateSubscriptionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + Subscription subscription = Subscription.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSubscription(subscription, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSubscriptionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAdminService.addResponse(expectedResponse); + + SubscriptionName name = SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"); + + client.deleteSubscription(name); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSubscriptionRequest actualRequest = ((DeleteSubscriptionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSubscriptionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + SubscriptionName name = SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"); + client.deleteSubscription(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSubscriptionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteSubscription(name); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSubscriptionRequest actualRequest = ((DeleteSubscriptionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSubscriptionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String name = "name3373707"; + client.deleteSubscription(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void seekSubscriptionTest() throws Exception { + SeekSubscriptionResponse expectedResponse = SeekSubscriptionResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("seekSubscriptionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAdminService.addResponse(resultOperation); + + SeekSubscriptionRequest request = + SeekSubscriptionRequest.newBuilder() + .setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString()) + .build(); + + SeekSubscriptionResponse actualResponse = client.seekSubscriptionAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SeekSubscriptionRequest actualRequest = ((SeekSubscriptionRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getNamedTarget(), actualRequest.getNamedTarget()); + Assert.assertEquals(request.getTimeTarget(), actualRequest.getTimeTarget()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void seekSubscriptionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + SeekSubscriptionRequest request = + SeekSubscriptionRequest.newBuilder() + .setName(SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]").toString()) + .build(); + client.seekSubscriptionAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createReservationTest() throws Exception { + Reservation expectedResponse = + Reservation.newBuilder() + .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) + .setThroughputCapacity(-1174790353) + .build(); + mockAdminService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Reservation reservation = Reservation.newBuilder().build(); + String reservationId = "reservationId1116965383"; + + Reservation actualResponse = client.createReservation(parent, reservation, reservationId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateReservationRequest actualRequest = ((CreateReservationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(reservation, actualRequest.getReservation()); + Assert.assertEquals(reservationId, actualRequest.getReservationId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createReservationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Reservation reservation = Reservation.newBuilder().build(); + String reservationId = "reservationId1116965383"; + client.createReservation(parent, reservation, reservationId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createReservationTest2() throws Exception { + Reservation expectedResponse = + Reservation.newBuilder() + .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) + .setThroughputCapacity(-1174790353) + .build(); + mockAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Reservation reservation = Reservation.newBuilder().build(); + String reservationId = "reservationId1116965383"; + + Reservation actualResponse = client.createReservation(parent, reservation, reservationId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateReservationRequest actualRequest = ((CreateReservationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(reservation, actualRequest.getReservation()); + Assert.assertEquals(reservationId, actualRequest.getReservationId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createReservationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + Reservation reservation = Reservation.newBuilder().build(); + String reservationId = "reservationId1116965383"; + client.createReservation(parent, reservation, reservationId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getReservationTest() throws Exception { + Reservation expectedResponse = + Reservation.newBuilder() + .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) + .setThroughputCapacity(-1174790353) + .build(); + mockAdminService.addResponse(expectedResponse); + + ReservationName name = ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]"); + + Reservation actualResponse = client.getReservation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetReservationRequest actualRequest = ((GetReservationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getReservationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + ReservationName name = ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]"); + client.getReservation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getReservationTest2() throws Exception { + Reservation expectedResponse = + Reservation.newBuilder() + .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) + .setThroughputCapacity(-1174790353) + .build(); + mockAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + Reservation actualResponse = client.getReservation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetReservationRequest actualRequest = ((GetReservationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getReservationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getReservation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listReservationsTest() throws Exception { + Reservation responsesElement = Reservation.newBuilder().build(); + ListReservationsResponse expectedResponse = + ListReservationsResponse.newBuilder() + .setNextPageToken("") + .addAllReservations(Arrays.asList(responsesElement)) + .build(); + mockAdminService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListReservationsPagedResponse pagedListResponse = client.listReservations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getReservationsList().get(0), resources.get(0)); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListReservationsRequest actualRequest = ((ListReservationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listReservationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listReservations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listReservationsTest2() throws Exception { + Reservation responsesElement = Reservation.newBuilder().build(); + ListReservationsResponse expectedResponse = + ListReservationsResponse.newBuilder() + .setNextPageToken("") + .addAllReservations(Arrays.asList(responsesElement)) + .build(); + mockAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListReservationsPagedResponse pagedListResponse = client.listReservations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getReservationsList().get(0), resources.get(0)); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListReservationsRequest actualRequest = ((ListReservationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listReservationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listReservations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateReservationTest() throws Exception { + Reservation expectedResponse = + Reservation.newBuilder() + .setName(ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]").toString()) + .setThroughputCapacity(-1174790353) + .build(); + mockAdminService.addResponse(expectedResponse); + + Reservation reservation = Reservation.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Reservation actualResponse = client.updateReservation(reservation, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateReservationRequest actualRequest = ((UpdateReservationRequest) actualRequests.get(0)); + + Assert.assertEquals(reservation, actualRequest.getReservation()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateReservationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + Reservation reservation = Reservation.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateReservation(reservation, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteReservationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAdminService.addResponse(expectedResponse); + + ReservationName name = ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]"); + + client.deleteReservation(name); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteReservationRequest actualRequest = ((DeleteReservationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteReservationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + ReservationName name = ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]"); + client.deleteReservation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteReservationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteReservation(name); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteReservationRequest actualRequest = ((DeleteReservationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteReservationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String name = "name3373707"; + client.deleteReservation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listReservationTopicsTest() throws Exception { + String responsesElement = "responsesElement-318365110"; + ListReservationTopicsResponse expectedResponse = + ListReservationTopicsResponse.newBuilder() + .setNextPageToken("") + .addAllTopics(Arrays.asList(responsesElement)) + .build(); + mockAdminService.addResponse(expectedResponse); + + ReservationName name = ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]"); + + ListReservationTopicsPagedResponse pagedListResponse = client.listReservationTopics(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTopicsList().get(0), resources.get(0)); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListReservationTopicsRequest actualRequest = + ((ListReservationTopicsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listReservationTopicsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + ReservationName name = ReservationName.of("[PROJECT]", "[LOCATION]", "[RESERVATION]"); + client.listReservationTopics(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listReservationTopicsTest2() throws Exception { + String responsesElement = "responsesElement-318365110"; + ListReservationTopicsResponse expectedResponse = + ListReservationTopicsResponse.newBuilder() + .setNextPageToken("") + .addAllTopics(Arrays.asList(responsesElement)) + .build(); + mockAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + ListReservationTopicsPagedResponse pagedListResponse = client.listReservationTopics(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTopicsList().get(0), resources.get(0)); + + List actualRequests = mockAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListReservationTopicsRequest actualRequest = + ((ListReservationTopicsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listReservationTopicsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAdminService.addException(exception); + + try { + String name = "name3373707"; + client.listReservationTopics(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/CursorServiceClientTest.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/CursorServiceClientTest.java new file mode 100644 index 000000000..8d718bada --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/CursorServiceClientTest.java @@ -0,0 +1,278 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsublite.v1; + +import static com.google.cloud.pubsublite.v1.CursorServiceClient.ListPartitionCursorsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.grpc.testing.MockStreamObserver; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiStreamObserver; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.pubsublite.proto.CommitCursorRequest; +import com.google.cloud.pubsublite.proto.CommitCursorResponse; +import com.google.cloud.pubsublite.proto.Cursor; +import com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest; +import com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse; +import com.google.cloud.pubsublite.proto.PartitionCursor; +import com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest; +import com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse; +import com.google.cloud.pubsublite.proto.SubscriptionName; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class CursorServiceClientTest { + private static MockCursorService mockCursorService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private CursorServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockCursorService = new MockCursorService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockCursorService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + CursorServiceSettings settings = + CursorServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CursorServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void streamingCommitCursorTest() throws Exception { + StreamingCommitCursorResponse expectedResponse = + StreamingCommitCursorResponse.newBuilder().build(); + mockCursorService.addResponse(expectedResponse); + StreamingCommitCursorRequest request = StreamingCommitCursorRequest.newBuilder().build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + BidiStreamingCallable callable = + client.streamingCommitCursorCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + requestObserver.onCompleted(); + + List actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void streamingCommitCursorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCursorService.addException(exception); + StreamingCommitCursorRequest request = StreamingCommitCursorRequest.newBuilder().build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + BidiStreamingCallable callable = + client.streamingCommitCursorCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + + try { + List actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void commitCursorTest() throws Exception { + CommitCursorResponse expectedResponse = CommitCursorResponse.newBuilder().build(); + mockCursorService.addResponse(expectedResponse); + + CommitCursorRequest request = + CommitCursorRequest.newBuilder() + .setSubscription("subscription341203229") + .setPartition(-1799810326) + .setCursor(Cursor.newBuilder().build()) + .build(); + + CommitCursorResponse actualResponse = client.commitCursor(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCursorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CommitCursorRequest actualRequest = ((CommitCursorRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getSubscription(), actualRequest.getSubscription()); + Assert.assertEquals(request.getPartition(), actualRequest.getPartition()); + Assert.assertEquals(request.getCursor(), actualRequest.getCursor()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void commitCursorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCursorService.addException(exception); + + try { + CommitCursorRequest request = + CommitCursorRequest.newBuilder() + .setSubscription("subscription341203229") + .setPartition(-1799810326) + .setCursor(Cursor.newBuilder().build()) + .build(); + client.commitCursor(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPartitionCursorsTest() throws Exception { + PartitionCursor responsesElement = PartitionCursor.newBuilder().build(); + ListPartitionCursorsResponse expectedResponse = + ListPartitionCursorsResponse.newBuilder() + .setNextPageToken("") + .addAllPartitionCursors(Arrays.asList(responsesElement)) + .build(); + mockCursorService.addResponse(expectedResponse); + + SubscriptionName parent = SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"); + + ListPartitionCursorsPagedResponse pagedListResponse = client.listPartitionCursors(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPartitionCursorsList().get(0), resources.get(0)); + + List actualRequests = mockCursorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPartitionCursorsRequest actualRequest = + ((ListPartitionCursorsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPartitionCursorsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCursorService.addException(exception); + + try { + SubscriptionName parent = SubscriptionName.of("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"); + client.listPartitionCursors(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPartitionCursorsTest2() throws Exception { + PartitionCursor responsesElement = PartitionCursor.newBuilder().build(); + ListPartitionCursorsResponse expectedResponse = + ListPartitionCursorsResponse.newBuilder() + .setNextPageToken("") + .addAllPartitionCursors(Arrays.asList(responsesElement)) + .build(); + mockCursorService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListPartitionCursorsPagedResponse pagedListResponse = client.listPartitionCursors(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPartitionCursorsList().get(0), resources.get(0)); + + List actualRequests = mockCursorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPartitionCursorsRequest actualRequest = + ((ListPartitionCursorsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPartitionCursorsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCursorService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listPartitionCursors(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminService.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminService.java new file mode 100644 index 000000000..157cd721e --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsublite.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAdminService implements MockGrpcService { + private final MockAdminServiceImpl serviceImpl; + + public MockAdminService() { + serviceImpl = new MockAdminServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminServiceImpl.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminServiceImpl.java new file mode 100644 index 000000000..f457d041f --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockAdminServiceImpl.java @@ -0,0 +1,488 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsublite.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.pubsublite.proto.AdminServiceGrpc.AdminServiceImplBase; +import com.google.cloud.pubsublite.proto.CreateReservationRequest; +import com.google.cloud.pubsublite.proto.CreateSubscriptionRequest; +import com.google.cloud.pubsublite.proto.CreateTopicRequest; +import com.google.cloud.pubsublite.proto.DeleteReservationRequest; +import com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest; +import com.google.cloud.pubsublite.proto.DeleteTopicRequest; +import com.google.cloud.pubsublite.proto.GetReservationRequest; +import com.google.cloud.pubsublite.proto.GetSubscriptionRequest; +import com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest; +import com.google.cloud.pubsublite.proto.GetTopicRequest; +import com.google.cloud.pubsublite.proto.ListReservationTopicsRequest; +import com.google.cloud.pubsublite.proto.ListReservationTopicsResponse; +import com.google.cloud.pubsublite.proto.ListReservationsRequest; +import com.google.cloud.pubsublite.proto.ListReservationsResponse; +import com.google.cloud.pubsublite.proto.ListSubscriptionsRequest; +import com.google.cloud.pubsublite.proto.ListSubscriptionsResponse; +import com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest; +import com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse; +import com.google.cloud.pubsublite.proto.ListTopicsRequest; +import com.google.cloud.pubsublite.proto.ListTopicsResponse; +import com.google.cloud.pubsublite.proto.Reservation; +import com.google.cloud.pubsublite.proto.SeekSubscriptionRequest; +import com.google.cloud.pubsublite.proto.Subscription; +import com.google.cloud.pubsublite.proto.Topic; +import com.google.cloud.pubsublite.proto.TopicPartitions; +import com.google.cloud.pubsublite.proto.UpdateReservationRequest; +import com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest; +import com.google.cloud.pubsublite.proto.UpdateTopicRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAdminServiceImpl extends AdminServiceImplBase { + private List requests; + private Queue responses; + + public MockAdminServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createTopic(CreateTopicRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Topic) { + requests.add(request); + responseObserver.onNext(((Topic) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateTopic, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Topic.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getTopic(GetTopicRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Topic) { + requests.add(request); + responseObserver.onNext(((Topic) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetTopic, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Topic.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getTopicPartitions( + GetTopicPartitionsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TopicPartitions) { + requests.add(request); + responseObserver.onNext(((TopicPartitions) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetTopicPartitions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TopicPartitions.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listTopics( + ListTopicsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListTopicsResponse) { + requests.add(request); + responseObserver.onNext(((ListTopicsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListTopics, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListTopicsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateTopic(UpdateTopicRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Topic) { + requests.add(request); + responseObserver.onNext(((Topic) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateTopic, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Topic.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteTopic(DeleteTopicRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteTopic, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listTopicSubscriptions( + ListTopicSubscriptionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListTopicSubscriptionsResponse) { + requests.add(request); + responseObserver.onNext(((ListTopicSubscriptionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListTopicSubscriptions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListTopicSubscriptionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createSubscription( + CreateSubscriptionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Subscription) { + requests.add(request); + responseObserver.onNext(((Subscription) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateSubscription, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Subscription.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getSubscription( + GetSubscriptionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Subscription) { + requests.add(request); + responseObserver.onNext(((Subscription) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetSubscription, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Subscription.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listSubscriptions( + ListSubscriptionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSubscriptionsResponse) { + requests.add(request); + responseObserver.onNext(((ListSubscriptionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListSubscriptions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSubscriptionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateSubscription( + UpdateSubscriptionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Subscription) { + requests.add(request); + responseObserver.onNext(((Subscription) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateSubscription, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Subscription.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteSubscription( + DeleteSubscriptionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteSubscription, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void seekSubscription( + SeekSubscriptionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SeekSubscription, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createReservation( + CreateReservationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Reservation) { + requests.add(request); + responseObserver.onNext(((Reservation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateReservation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Reservation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getReservation( + GetReservationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Reservation) { + requests.add(request); + responseObserver.onNext(((Reservation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetReservation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Reservation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listReservations( + ListReservationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListReservationsResponse) { + requests.add(request); + responseObserver.onNext(((ListReservationsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListReservations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListReservationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateReservation( + UpdateReservationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Reservation) { + requests.add(request); + responseObserver.onNext(((Reservation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateReservation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Reservation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteReservation( + DeleteReservationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteReservation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listReservationTopics( + ListReservationTopicsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListReservationTopicsResponse) { + requests.add(request); + responseObserver.onNext(((ListReservationTopicsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListReservationTopics, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListReservationTopicsResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorService.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorService.java new file mode 100644 index 000000000..98d09b1d0 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsublite.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockCursorService implements MockGrpcService { + private final MockCursorServiceImpl serviceImpl; + + public MockCursorService() { + serviceImpl = new MockCursorServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorServiceImpl.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorServiceImpl.java new file mode 100644 index 000000000..01ac92b09 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockCursorServiceImpl.java @@ -0,0 +1,146 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsublite.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.pubsublite.proto.CommitCursorRequest; +import com.google.cloud.pubsublite.proto.CommitCursorResponse; +import com.google.cloud.pubsublite.proto.CursorServiceGrpc.CursorServiceImplBase; +import com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest; +import com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse; +import com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest; +import com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockCursorServiceImpl extends CursorServiceImplBase { + private List requests; + private Queue responses; + + public MockCursorServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public StreamObserver streamingCommitCursor( + final StreamObserver responseObserver) { + StreamObserver requestObserver = + new StreamObserver() { + @Override + public void onNext(StreamingCommitCursorRequest value) { + requests.add(value); + final Object response = responses.remove(); + if (response instanceof StreamingCommitCursorResponse) { + responseObserver.onNext(((StreamingCommitCursorResponse) response)); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method StreamingCommitCursor, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + StreamingCommitCursorResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void onError(Throwable t) { + responseObserver.onError(t); + } + + @Override + public void onCompleted() { + responseObserver.onCompleted(); + } + }; + return requestObserver; + } + + @Override + public void commitCursor( + CommitCursorRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CommitCursorResponse) { + requests.add(request); + responseObserver.onNext(((CommitCursorResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CommitCursor, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CommitCursorResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listPartitionCursors( + ListPartitionCursorsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListPartitionCursorsResponse) { + requests.add(request); + responseObserver.onNext(((ListPartitionCursorsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListPartitionCursors, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListPartitionCursorsResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentService.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentService.java new file mode 100644 index 000000000..027bcb54e --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsublite.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockPartitionAssignmentService implements MockGrpcService { + private final MockPartitionAssignmentServiceImpl serviceImpl; + + public MockPartitionAssignmentService() { + serviceImpl = new MockPartitionAssignmentServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentServiceImpl.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentServiceImpl.java new file mode 100644 index 000000000..3d57a7b93 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPartitionAssignmentServiceImpl.java @@ -0,0 +1,99 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsublite.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.pubsublite.proto.PartitionAssignment; +import com.google.cloud.pubsublite.proto.PartitionAssignmentRequest; +import com.google.cloud.pubsublite.proto.PartitionAssignmentServiceGrpc.PartitionAssignmentServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockPartitionAssignmentServiceImpl extends PartitionAssignmentServiceImplBase { + private List requests; + private Queue responses; + + public MockPartitionAssignmentServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public StreamObserver assignPartitions( + final StreamObserver responseObserver) { + StreamObserver requestObserver = + new StreamObserver() { + @Override + public void onNext(PartitionAssignmentRequest value) { + requests.add(value); + final Object response = responses.remove(); + if (response instanceof PartitionAssignment) { + responseObserver.onNext(((PartitionAssignment) response)); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method AssignPartitions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + PartitionAssignment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void onError(Throwable t) { + responseObserver.onError(t); + } + + @Override + public void onCompleted() { + responseObserver.onCompleted(); + } + }; + return requestObserver; + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherService.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherService.java new file mode 100644 index 000000000..e5797d937 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsublite.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockPublisherService implements MockGrpcService { + private final MockPublisherServiceImpl serviceImpl; + + public MockPublisherService() { + serviceImpl = new MockPublisherServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherServiceImpl.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherServiceImpl.java new file mode 100644 index 000000000..57d9ca3bc --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockPublisherServiceImpl.java @@ -0,0 +1,99 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsublite.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.pubsublite.proto.PublishRequest; +import com.google.cloud.pubsublite.proto.PublishResponse; +import com.google.cloud.pubsublite.proto.PublisherServiceGrpc.PublisherServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockPublisherServiceImpl extends PublisherServiceImplBase { + private List requests; + private Queue responses; + + public MockPublisherServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public StreamObserver publish( + final StreamObserver responseObserver) { + StreamObserver requestObserver = + new StreamObserver() { + @Override + public void onNext(PublishRequest value) { + requests.add(value); + final Object response = responses.remove(); + if (response instanceof PublishResponse) { + responseObserver.onNext(((PublishResponse) response)); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method Publish, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + PublishResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void onError(Throwable t) { + responseObserver.onError(t); + } + + @Override + public void onCompleted() { + responseObserver.onCompleted(); + } + }; + return requestObserver; + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberService.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberService.java new file mode 100644 index 000000000..e83e2e2f4 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsublite.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSubscriberService implements MockGrpcService { + private final MockSubscriberServiceImpl serviceImpl; + + public MockSubscriberService() { + serviceImpl = new MockSubscriberServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberServiceImpl.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberServiceImpl.java new file mode 100644 index 000000000..a9f542e46 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockSubscriberServiceImpl.java @@ -0,0 +1,99 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsublite.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.pubsublite.proto.SubscribeRequest; +import com.google.cloud.pubsublite.proto.SubscribeResponse; +import com.google.cloud.pubsublite.proto.SubscriberServiceGrpc.SubscriberServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSubscriberServiceImpl extends SubscriberServiceImplBase { + private List requests; + private Queue responses; + + public MockSubscriberServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public StreamObserver subscribe( + final StreamObserver responseObserver) { + StreamObserver requestObserver = + new StreamObserver() { + @Override + public void onNext(SubscribeRequest value) { + requests.add(value); + final Object response = responses.remove(); + if (response instanceof SubscribeResponse) { + responseObserver.onNext(((SubscribeResponse) response)); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method Subscribe, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SubscribeResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void onError(Throwable t) { + responseObserver.onError(t); + } + + @Override + public void onCompleted() { + responseObserver.onCompleted(); + } + }; + return requestObserver; + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsService.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsService.java new file mode 100644 index 000000000..f8f8b04cb --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsublite.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTopicStatsService implements MockGrpcService { + private final MockTopicStatsServiceImpl serviceImpl; + + public MockTopicStatsService() { + serviceImpl = new MockTopicStatsServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsServiceImpl.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsServiceImpl.java new file mode 100644 index 000000000..91f0fb818 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/MockTopicStatsServiceImpl.java @@ -0,0 +1,132 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsublite.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest; +import com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse; +import com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest; +import com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse; +import com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest; +import com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse; +import com.google.cloud.pubsublite.proto.TopicStatsServiceGrpc.TopicStatsServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTopicStatsServiceImpl extends TopicStatsServiceImplBase { + private List requests; + private Queue responses; + + public MockTopicStatsServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void computeMessageStats( + ComputeMessageStatsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ComputeMessageStatsResponse) { + requests.add(request); + responseObserver.onNext(((ComputeMessageStatsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ComputeMessageStats, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ComputeMessageStatsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void computeHeadCursor( + ComputeHeadCursorRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ComputeHeadCursorResponse) { + requests.add(request); + responseObserver.onNext(((ComputeHeadCursorResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ComputeHeadCursor, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ComputeHeadCursorResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void computeTimeCursor( + ComputeTimeCursorRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ComputeTimeCursorResponse) { + requests.add(request); + responseObserver.onNext(((ComputeTimeCursorResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ComputeTimeCursor, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ComputeTimeCursorResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClientTest.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClientTest.java new file mode 100644 index 000000000..860e833d2 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClientTest.java @@ -0,0 +1,130 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsublite.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.grpc.testing.MockStreamObserver; +import com.google.api.gax.rpc.ApiStreamObserver; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.pubsublite.proto.PartitionAssignment; +import com.google.cloud.pubsublite.proto.PartitionAssignmentRequest; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class PartitionAssignmentServiceClientTest { + private static MockPartitionAssignmentService mockPartitionAssignmentService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private PartitionAssignmentServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockPartitionAssignmentService = new MockPartitionAssignmentService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockPartitionAssignmentService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + PartitionAssignmentServiceSettings settings = + PartitionAssignmentServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = PartitionAssignmentServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void assignPartitionsTest() throws Exception { + PartitionAssignment expectedResponse = + PartitionAssignment.newBuilder().addAllPartitions(new ArrayList()).build(); + mockPartitionAssignmentService.addResponse(expectedResponse); + PartitionAssignmentRequest request = PartitionAssignmentRequest.newBuilder().build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + BidiStreamingCallable callable = + client.assignPartitionsCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + requestObserver.onCompleted(); + + List actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void assignPartitionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPartitionAssignmentService.addException(exception); + PartitionAssignmentRequest request = PartitionAssignmentRequest.newBuilder().build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + BidiStreamingCallable callable = + client.assignPartitionsCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + + try { + List actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PublisherServiceClientTest.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PublisherServiceClientTest.java new file mode 100644 index 000000000..7d004ee99 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/PublisherServiceClientTest.java @@ -0,0 +1,125 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsublite.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.grpc.testing.MockStreamObserver; +import com.google.api.gax.rpc.ApiStreamObserver; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.pubsublite.proto.PublishRequest; +import com.google.cloud.pubsublite.proto.PublishResponse; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class PublisherServiceClientTest { + private static MockPublisherService mockPublisherService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private PublisherServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockPublisherService = new MockPublisherService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockPublisherService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + PublisherServiceSettings settings = + PublisherServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = PublisherServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void publishTest() throws Exception { + PublishResponse expectedResponse = PublishResponse.newBuilder().build(); + mockPublisherService.addResponse(expectedResponse); + PublishRequest request = PublishRequest.newBuilder().build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + BidiStreamingCallable callable = client.publishCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + requestObserver.onCompleted(); + + List actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void publishExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPublisherService.addException(exception); + PublishRequest request = PublishRequest.newBuilder().build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + BidiStreamingCallable callable = client.publishCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + + try { + List actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/SubscriberServiceClientTest.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/SubscriberServiceClientTest.java new file mode 100644 index 000000000..b42273693 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/SubscriberServiceClientTest.java @@ -0,0 +1,127 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsublite.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.grpc.testing.MockStreamObserver; +import com.google.api.gax.rpc.ApiStreamObserver; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.pubsublite.proto.SubscribeRequest; +import com.google.cloud.pubsublite.proto.SubscribeResponse; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SubscriberServiceClientTest { + private static MockServiceHelper mockServiceHelper; + private static MockSubscriberService mockSubscriberService; + private LocalChannelProvider channelProvider; + private SubscriberServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockSubscriberService = new MockSubscriberService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockSubscriberService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + SubscriberServiceSettings settings = + SubscriberServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SubscriberServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void subscribeTest() throws Exception { + SubscribeResponse expectedResponse = SubscribeResponse.newBuilder().build(); + mockSubscriberService.addResponse(expectedResponse); + SubscribeRequest request = SubscribeRequest.newBuilder().build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + BidiStreamingCallable callable = + client.subscribeCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + requestObserver.onCompleted(); + + List actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void subscribeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSubscriberService.addException(exception); + SubscribeRequest request = SubscribeRequest.newBuilder().build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + BidiStreamingCallable callable = + client.subscribeCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + + try { + List actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClientTest.java b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClientTest.java new file mode 100644 index 000000000..5c0c39bb5 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClientTest.java @@ -0,0 +1,236 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsublite.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest; +import com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse; +import com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest; +import com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse; +import com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest; +import com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse; +import com.google.cloud.pubsublite.proto.Cursor; +import com.google.cloud.pubsublite.proto.TimeTarget; +import com.google.cloud.pubsublite.proto.TopicName; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TopicStatsServiceClientTest { + private static MockServiceHelper mockServiceHelper; + private static MockTopicStatsService mockTopicStatsService; + private LocalChannelProvider channelProvider; + private TopicStatsServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockTopicStatsService = new MockTopicStatsService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockTopicStatsService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + TopicStatsServiceSettings settings = + TopicStatsServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TopicStatsServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void computeMessageStatsTest() throws Exception { + ComputeMessageStatsResponse expectedResponse = + ComputeMessageStatsResponse.newBuilder() + .setMessageCount(-1229303081) + .setMessageBytes(-1229929933) + .setMinimumPublishTime(Timestamp.newBuilder().build()) + .setMinimumEventTime(Timestamp.newBuilder().build()) + .build(); + mockTopicStatsService.addResponse(expectedResponse); + + ComputeMessageStatsRequest request = + ComputeMessageStatsRequest.newBuilder() + .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setPartition(-1799810326) + .setStartCursor(Cursor.newBuilder().build()) + .setEndCursor(Cursor.newBuilder().build()) + .build(); + + ComputeMessageStatsResponse actualResponse = client.computeMessageStats(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTopicStatsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ComputeMessageStatsRequest actualRequest = ((ComputeMessageStatsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getTopic(), actualRequest.getTopic()); + Assert.assertEquals(request.getPartition(), actualRequest.getPartition()); + Assert.assertEquals(request.getStartCursor(), actualRequest.getStartCursor()); + Assert.assertEquals(request.getEndCursor(), actualRequest.getEndCursor()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void computeMessageStatsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTopicStatsService.addException(exception); + + try { + ComputeMessageStatsRequest request = + ComputeMessageStatsRequest.newBuilder() + .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setPartition(-1799810326) + .setStartCursor(Cursor.newBuilder().build()) + .setEndCursor(Cursor.newBuilder().build()) + .build(); + client.computeMessageStats(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void computeHeadCursorTest() throws Exception { + ComputeHeadCursorResponse expectedResponse = + ComputeHeadCursorResponse.newBuilder().setHeadCursor(Cursor.newBuilder().build()).build(); + mockTopicStatsService.addResponse(expectedResponse); + + ComputeHeadCursorRequest request = + ComputeHeadCursorRequest.newBuilder() + .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setPartition(-1799810326) + .build(); + + ComputeHeadCursorResponse actualResponse = client.computeHeadCursor(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTopicStatsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ComputeHeadCursorRequest actualRequest = ((ComputeHeadCursorRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getTopic(), actualRequest.getTopic()); + Assert.assertEquals(request.getPartition(), actualRequest.getPartition()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void computeHeadCursorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTopicStatsService.addException(exception); + + try { + ComputeHeadCursorRequest request = + ComputeHeadCursorRequest.newBuilder() + .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setPartition(-1799810326) + .build(); + client.computeHeadCursor(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void computeTimeCursorTest() throws Exception { + ComputeTimeCursorResponse expectedResponse = + ComputeTimeCursorResponse.newBuilder().setCursor(Cursor.newBuilder().build()).build(); + mockTopicStatsService.addResponse(expectedResponse); + + ComputeTimeCursorRequest request = + ComputeTimeCursorRequest.newBuilder() + .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setPartition(-1799810326) + .setTarget(TimeTarget.newBuilder().build()) + .build(); + + ComputeTimeCursorResponse actualResponse = client.computeTimeCursor(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTopicStatsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ComputeTimeCursorRequest actualRequest = ((ComputeTimeCursorRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getTopic(), actualRequest.getTopic()); + Assert.assertEquals(request.getPartition(), actualRequest.getPartition()); + Assert.assertEquals(request.getTarget(), actualRequest.getTarget()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void computeTimeCursorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTopicStatsService.addException(exception); + + try { + ComputeTimeCursorRequest request = + ComputeTimeCursorRequest.newBuilder() + .setTopic(TopicName.of("[PROJECT]", "[LOCATION]", "[TOPIC]").toString()) + .setPartition(-1799810326) + .setTarget(TimeTarget.newBuilder().build()) + .build(); + client.computeTimeCursor(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminServiceGrpc.java new file mode 100644 index 000000000..d10d1b5a4 --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminServiceGrpc.java @@ -0,0 +1,1945 @@ +package com.google.cloud.pubsublite.proto; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * The service that a client application uses to manage topics and
+ * subscriptions, such creating, listing, and deleting topics and subscriptions.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/pubsublite/v1/admin.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AdminServiceGrpc { + + private AdminServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.pubsublite.v1.AdminService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateTopicMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateTopic", + requestType = com.google.cloud.pubsublite.proto.CreateTopicRequest.class, + responseType = com.google.cloud.pubsublite.proto.Topic.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateTopicMethod() { + io.grpc.MethodDescriptor getCreateTopicMethod; + if ((getCreateTopicMethod = AdminServiceGrpc.getCreateTopicMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getCreateTopicMethod = AdminServiceGrpc.getCreateTopicMethod) == null) { + AdminServiceGrpc.getCreateTopicMethod = getCreateTopicMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTopic")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.CreateTopicRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.Topic.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("CreateTopic")) + .build(); + } + } + } + return getCreateTopicMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetTopicMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTopic", + requestType = com.google.cloud.pubsublite.proto.GetTopicRequest.class, + responseType = com.google.cloud.pubsublite.proto.Topic.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetTopicMethod() { + io.grpc.MethodDescriptor getGetTopicMethod; + if ((getGetTopicMethod = AdminServiceGrpc.getGetTopicMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getGetTopicMethod = AdminServiceGrpc.getGetTopicMethod) == null) { + AdminServiceGrpc.getGetTopicMethod = getGetTopicMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTopic")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.GetTopicRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.Topic.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("GetTopic")) + .build(); + } + } + } + return getGetTopicMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetTopicPartitionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTopicPartitions", + requestType = com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.class, + responseType = com.google.cloud.pubsublite.proto.TopicPartitions.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetTopicPartitionsMethod() { + io.grpc.MethodDescriptor getGetTopicPartitionsMethod; + if ((getGetTopicPartitionsMethod = AdminServiceGrpc.getGetTopicPartitionsMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getGetTopicPartitionsMethod = AdminServiceGrpc.getGetTopicPartitionsMethod) == null) { + AdminServiceGrpc.getGetTopicPartitionsMethod = getGetTopicPartitionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTopicPartitions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.TopicPartitions.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("GetTopicPartitions")) + .build(); + } + } + } + return getGetTopicPartitionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListTopicsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTopics", + requestType = com.google.cloud.pubsublite.proto.ListTopicsRequest.class, + responseType = com.google.cloud.pubsublite.proto.ListTopicsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListTopicsMethod() { + io.grpc.MethodDescriptor getListTopicsMethod; + if ((getListTopicsMethod = AdminServiceGrpc.getListTopicsMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getListTopicsMethod = AdminServiceGrpc.getListTopicsMethod) == null) { + AdminServiceGrpc.getListTopicsMethod = getListTopicsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTopics")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListTopicsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListTopicsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("ListTopics")) + .build(); + } + } + } + return getListTopicsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateTopicMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateTopic", + requestType = com.google.cloud.pubsublite.proto.UpdateTopicRequest.class, + responseType = com.google.cloud.pubsublite.proto.Topic.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateTopicMethod() { + io.grpc.MethodDescriptor getUpdateTopicMethod; + if ((getUpdateTopicMethod = AdminServiceGrpc.getUpdateTopicMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getUpdateTopicMethod = AdminServiceGrpc.getUpdateTopicMethod) == null) { + AdminServiceGrpc.getUpdateTopicMethod = getUpdateTopicMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateTopic")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.UpdateTopicRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.Topic.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("UpdateTopic")) + .build(); + } + } + } + return getUpdateTopicMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteTopicMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteTopic", + requestType = com.google.cloud.pubsublite.proto.DeleteTopicRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteTopicMethod() { + io.grpc.MethodDescriptor getDeleteTopicMethod; + if ((getDeleteTopicMethod = AdminServiceGrpc.getDeleteTopicMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getDeleteTopicMethod = AdminServiceGrpc.getDeleteTopicMethod) == null) { + AdminServiceGrpc.getDeleteTopicMethod = getDeleteTopicMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTopic")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.DeleteTopicRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("DeleteTopic")) + .build(); + } + } + } + return getDeleteTopicMethod; + } + + private static volatile io.grpc.MethodDescriptor getListTopicSubscriptionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTopicSubscriptions", + requestType = com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.class, + responseType = com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListTopicSubscriptionsMethod() { + io.grpc.MethodDescriptor getListTopicSubscriptionsMethod; + if ((getListTopicSubscriptionsMethod = AdminServiceGrpc.getListTopicSubscriptionsMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getListTopicSubscriptionsMethod = AdminServiceGrpc.getListTopicSubscriptionsMethod) == null) { + AdminServiceGrpc.getListTopicSubscriptionsMethod = getListTopicSubscriptionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTopicSubscriptions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("ListTopicSubscriptions")) + .build(); + } + } + } + return getListTopicSubscriptionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateSubscriptionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSubscription", + requestType = com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.class, + responseType = com.google.cloud.pubsublite.proto.Subscription.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateSubscriptionMethod() { + io.grpc.MethodDescriptor getCreateSubscriptionMethod; + if ((getCreateSubscriptionMethod = AdminServiceGrpc.getCreateSubscriptionMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getCreateSubscriptionMethod = AdminServiceGrpc.getCreateSubscriptionMethod) == null) { + AdminServiceGrpc.getCreateSubscriptionMethod = getCreateSubscriptionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSubscription")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("CreateSubscription")) + .build(); + } + } + } + return getCreateSubscriptionMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSubscriptionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSubscription", + requestType = com.google.cloud.pubsublite.proto.GetSubscriptionRequest.class, + responseType = com.google.cloud.pubsublite.proto.Subscription.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSubscriptionMethod() { + io.grpc.MethodDescriptor getGetSubscriptionMethod; + if ((getGetSubscriptionMethod = AdminServiceGrpc.getGetSubscriptionMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getGetSubscriptionMethod = AdminServiceGrpc.getGetSubscriptionMethod) == null) { + AdminServiceGrpc.getGetSubscriptionMethod = getGetSubscriptionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSubscription")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.GetSubscriptionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("GetSubscription")) + .build(); + } + } + } + return getGetSubscriptionMethod; + } + + private static volatile io.grpc.MethodDescriptor getListSubscriptionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSubscriptions", + requestType = com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.class, + responseType = com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListSubscriptionsMethod() { + io.grpc.MethodDescriptor getListSubscriptionsMethod; + if ((getListSubscriptionsMethod = AdminServiceGrpc.getListSubscriptionsMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getListSubscriptionsMethod = AdminServiceGrpc.getListSubscriptionsMethod) == null) { + AdminServiceGrpc.getListSubscriptionsMethod = getListSubscriptionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSubscriptions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("ListSubscriptions")) + .build(); + } + } + } + return getListSubscriptionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateSubscriptionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSubscription", + requestType = com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.class, + responseType = com.google.cloud.pubsublite.proto.Subscription.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateSubscriptionMethod() { + io.grpc.MethodDescriptor getUpdateSubscriptionMethod; + if ((getUpdateSubscriptionMethod = AdminServiceGrpc.getUpdateSubscriptionMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getUpdateSubscriptionMethod = AdminServiceGrpc.getUpdateSubscriptionMethod) == null) { + AdminServiceGrpc.getUpdateSubscriptionMethod = getUpdateSubscriptionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSubscription")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("UpdateSubscription")) + .build(); + } + } + } + return getUpdateSubscriptionMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteSubscriptionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSubscription", + requestType = com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteSubscriptionMethod() { + io.grpc.MethodDescriptor getDeleteSubscriptionMethod; + if ((getDeleteSubscriptionMethod = AdminServiceGrpc.getDeleteSubscriptionMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getDeleteSubscriptionMethod = AdminServiceGrpc.getDeleteSubscriptionMethod) == null) { + AdminServiceGrpc.getDeleteSubscriptionMethod = getDeleteSubscriptionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSubscription")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("DeleteSubscription")) + .build(); + } + } + } + return getDeleteSubscriptionMethod; + } + + private static volatile io.grpc.MethodDescriptor getSeekSubscriptionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SeekSubscription", + requestType = com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSeekSubscriptionMethod() { + io.grpc.MethodDescriptor getSeekSubscriptionMethod; + if ((getSeekSubscriptionMethod = AdminServiceGrpc.getSeekSubscriptionMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getSeekSubscriptionMethod = AdminServiceGrpc.getSeekSubscriptionMethod) == null) { + AdminServiceGrpc.getSeekSubscriptionMethod = getSeekSubscriptionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SeekSubscription")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("SeekSubscription")) + .build(); + } + } + } + return getSeekSubscriptionMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateReservationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateReservation", + requestType = com.google.cloud.pubsublite.proto.CreateReservationRequest.class, + responseType = com.google.cloud.pubsublite.proto.Reservation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateReservationMethod() { + io.grpc.MethodDescriptor getCreateReservationMethod; + if ((getCreateReservationMethod = AdminServiceGrpc.getCreateReservationMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getCreateReservationMethod = AdminServiceGrpc.getCreateReservationMethod) == null) { + AdminServiceGrpc.getCreateReservationMethod = getCreateReservationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateReservation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.CreateReservationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("CreateReservation")) + .build(); + } + } + } + return getCreateReservationMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetReservationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetReservation", + requestType = com.google.cloud.pubsublite.proto.GetReservationRequest.class, + responseType = com.google.cloud.pubsublite.proto.Reservation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetReservationMethod() { + io.grpc.MethodDescriptor getGetReservationMethod; + if ((getGetReservationMethod = AdminServiceGrpc.getGetReservationMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getGetReservationMethod = AdminServiceGrpc.getGetReservationMethod) == null) { + AdminServiceGrpc.getGetReservationMethod = getGetReservationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReservation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.GetReservationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("GetReservation")) + .build(); + } + } + } + return getGetReservationMethod; + } + + private static volatile io.grpc.MethodDescriptor getListReservationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListReservations", + requestType = com.google.cloud.pubsublite.proto.ListReservationsRequest.class, + responseType = com.google.cloud.pubsublite.proto.ListReservationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListReservationsMethod() { + io.grpc.MethodDescriptor getListReservationsMethod; + if ((getListReservationsMethod = AdminServiceGrpc.getListReservationsMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getListReservationsMethod = AdminServiceGrpc.getListReservationsMethod) == null) { + AdminServiceGrpc.getListReservationsMethod = getListReservationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListReservations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListReservationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListReservationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("ListReservations")) + .build(); + } + } + } + return getListReservationsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateReservationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateReservation", + requestType = com.google.cloud.pubsublite.proto.UpdateReservationRequest.class, + responseType = com.google.cloud.pubsublite.proto.Reservation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateReservationMethod() { + io.grpc.MethodDescriptor getUpdateReservationMethod; + if ((getUpdateReservationMethod = AdminServiceGrpc.getUpdateReservationMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getUpdateReservationMethod = AdminServiceGrpc.getUpdateReservationMethod) == null) { + AdminServiceGrpc.getUpdateReservationMethod = getUpdateReservationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateReservation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.UpdateReservationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("UpdateReservation")) + .build(); + } + } + } + return getUpdateReservationMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteReservationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteReservation", + requestType = com.google.cloud.pubsublite.proto.DeleteReservationRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteReservationMethod() { + io.grpc.MethodDescriptor getDeleteReservationMethod; + if ((getDeleteReservationMethod = AdminServiceGrpc.getDeleteReservationMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getDeleteReservationMethod = AdminServiceGrpc.getDeleteReservationMethod) == null) { + AdminServiceGrpc.getDeleteReservationMethod = getDeleteReservationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteReservation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.DeleteReservationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("DeleteReservation")) + .build(); + } + } + } + return getDeleteReservationMethod; + } + + private static volatile io.grpc.MethodDescriptor getListReservationTopicsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListReservationTopics", + requestType = com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.class, + responseType = com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListReservationTopicsMethod() { + io.grpc.MethodDescriptor getListReservationTopicsMethod; + if ((getListReservationTopicsMethod = AdminServiceGrpc.getListReservationTopicsMethod) == null) { + synchronized (AdminServiceGrpc.class) { + if ((getListReservationTopicsMethod = AdminServiceGrpc.getListReservationTopicsMethod) == null) { + AdminServiceGrpc.getListReservationTopicsMethod = getListReservationTopicsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListReservationTopics")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("ListReservationTopics")) + .build(); + } + } + } + return getListReservationTopicsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static AdminServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdminServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdminServiceStub(channel, callOptions); + } + }; + return AdminServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AdminServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdminServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdminServiceBlockingStub(channel, callOptions); + } + }; + return AdminServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static AdminServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdminServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdminServiceFutureStub(channel, callOptions); + } + }; + return AdminServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * The service that a client application uses to manage topics and
+   * subscriptions, such creating, listing, and deleting topics and subscriptions.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Creates a new topic.
+     * 
+ */ + default void createTopic(com.google.cloud.pubsublite.proto.CreateTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateTopicMethod(), responseObserver); + } + + /** + *
+     * Returns the topic configuration.
+     * 
+ */ + default void getTopic(com.google.cloud.pubsublite.proto.GetTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTopicMethod(), responseObserver); + } + + /** + *
+     * Returns the partition information for the requested topic.
+     * 
+ */ + default void getTopicPartitions(com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTopicPartitionsMethod(), responseObserver); + } + + /** + *
+     * Returns the list of topics for the given project.
+     * 
+ */ + default void listTopics(com.google.cloud.pubsublite.proto.ListTopicsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTopicsMethod(), responseObserver); + } + + /** + *
+     * Updates properties of the specified topic.
+     * 
+ */ + default void updateTopic(com.google.cloud.pubsublite.proto.UpdateTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateTopicMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified topic.
+     * 
+ */ + default void deleteTopic(com.google.cloud.pubsublite.proto.DeleteTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteTopicMethod(), responseObserver); + } + + /** + *
+     * Lists the subscriptions attached to the specified topic.
+     * 
+ */ + default void listTopicSubscriptions(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTopicSubscriptionsMethod(), responseObserver); + } + + /** + *
+     * Creates a new subscription.
+     * 
+ */ + default void createSubscription(com.google.cloud.pubsublite.proto.CreateSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSubscriptionMethod(), responseObserver); + } + + /** + *
+     * Returns the subscription configuration.
+     * 
+ */ + default void getSubscription(com.google.cloud.pubsublite.proto.GetSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSubscriptionMethod(), responseObserver); + } + + /** + *
+     * Returns the list of subscriptions for the given project.
+     * 
+ */ + default void listSubscriptions(com.google.cloud.pubsublite.proto.ListSubscriptionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSubscriptionsMethod(), responseObserver); + } + + /** + *
+     * Updates properties of the specified subscription.
+     * 
+ */ + default void updateSubscription(com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSubscriptionMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified subscription.
+     * 
+ */ + default void deleteSubscription(com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSubscriptionMethod(), responseObserver); + } + + /** + *
+     * Performs an out-of-band seek for a subscription to a specified target,
+     * which may be timestamps or named positions within the message backlog.
+     * Seek translates these targets to cursors for each partition and
+     * orchestrates subscribers to start consuming messages from these seek
+     * cursors.
+     * If an operation is returned, the seek has been registered and subscribers
+     * will eventually receive messages from the seek cursors (i.e. eventual
+     * consistency), as long as they are using a minimum supported client library
+     * version and not a system that tracks cursors independently of Pub/Sub Lite
+     * (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for
+     * unsupported clients.
+     * If clients would like to know when subscribers react to the seek (or not),
+     * they can poll the operation. The seek operation will succeed and complete
+     * once subscribers are ready to receive messages from the seek cursors for
+     * all partitions of the topic. This means that the seek operation will not
+     * complete until all subscribers come online.
+     * If the previous seek operation has not yet completed, it will be aborted
+     * and the new invocation of seek will supersede it.
+     * 
+ */ + default void seekSubscription(com.google.cloud.pubsublite.proto.SeekSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSeekSubscriptionMethod(), responseObserver); + } + + /** + *
+     * Creates a new reservation.
+     * 
+ */ + default void createReservation(com.google.cloud.pubsublite.proto.CreateReservationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateReservationMethod(), responseObserver); + } + + /** + *
+     * Returns the reservation configuration.
+     * 
+ */ + default void getReservation(com.google.cloud.pubsublite.proto.GetReservationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetReservationMethod(), responseObserver); + } + + /** + *
+     * Returns the list of reservations for the given project.
+     * 
+ */ + default void listReservations(com.google.cloud.pubsublite.proto.ListReservationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListReservationsMethod(), responseObserver); + } + + /** + *
+     * Updates properties of the specified reservation.
+     * 
+ */ + default void updateReservation(com.google.cloud.pubsublite.proto.UpdateReservationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateReservationMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified reservation.
+     * 
+ */ + default void deleteReservation(com.google.cloud.pubsublite.proto.DeleteReservationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteReservationMethod(), responseObserver); + } + + /** + *
+     * Lists the topics attached to the specified reservation.
+     * 
+ */ + default void listReservationTopics(com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListReservationTopicsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service AdminService. + *
+   * The service that a client application uses to manage topics and
+   * subscriptions, such creating, listing, and deleting topics and subscriptions.
+   * 
+ */ + public static abstract class AdminServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return AdminServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service AdminService. + *
+   * The service that a client application uses to manage topics and
+   * subscriptions, such creating, listing, and deleting topics and subscriptions.
+   * 
+ */ + public static final class AdminServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AdminServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdminServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdminServiceStub(channel, callOptions); + } + + /** + *
+     * Creates a new topic.
+     * 
+ */ + public void createTopic(com.google.cloud.pubsublite.proto.CreateTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateTopicMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the topic configuration.
+     * 
+ */ + public void getTopic(com.google.cloud.pubsublite.proto.GetTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTopicMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the partition information for the requested topic.
+     * 
+ */ + public void getTopicPartitions(com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTopicPartitionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the list of topics for the given project.
+     * 
+ */ + public void listTopics(com.google.cloud.pubsublite.proto.ListTopicsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTopicsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates properties of the specified topic.
+     * 
+ */ + public void updateTopic(com.google.cloud.pubsublite.proto.UpdateTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateTopicMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified topic.
+     * 
+ */ + public void deleteTopic(com.google.cloud.pubsublite.proto.DeleteTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteTopicMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists the subscriptions attached to the specified topic.
+     * 
+ */ + public void listTopicSubscriptions(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTopicSubscriptionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new subscription.
+     * 
+ */ + public void createSubscription(com.google.cloud.pubsublite.proto.CreateSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSubscriptionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the subscription configuration.
+     * 
+ */ + public void getSubscription(com.google.cloud.pubsublite.proto.GetSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSubscriptionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the list of subscriptions for the given project.
+     * 
+ */ + public void listSubscriptions(com.google.cloud.pubsublite.proto.ListSubscriptionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSubscriptionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates properties of the specified subscription.
+     * 
+ */ + public void updateSubscription(com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSubscriptionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified subscription.
+     * 
+ */ + public void deleteSubscription(com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSubscriptionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Performs an out-of-band seek for a subscription to a specified target,
+     * which may be timestamps or named positions within the message backlog.
+     * Seek translates these targets to cursors for each partition and
+     * orchestrates subscribers to start consuming messages from these seek
+     * cursors.
+     * If an operation is returned, the seek has been registered and subscribers
+     * will eventually receive messages from the seek cursors (i.e. eventual
+     * consistency), as long as they are using a minimum supported client library
+     * version and not a system that tracks cursors independently of Pub/Sub Lite
+     * (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for
+     * unsupported clients.
+     * If clients would like to know when subscribers react to the seek (or not),
+     * they can poll the operation. The seek operation will succeed and complete
+     * once subscribers are ready to receive messages from the seek cursors for
+     * all partitions of the topic. This means that the seek operation will not
+     * complete until all subscribers come online.
+     * If the previous seek operation has not yet completed, it will be aborted
+     * and the new invocation of seek will supersede it.
+     * 
+ */ + public void seekSubscription(com.google.cloud.pubsublite.proto.SeekSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSeekSubscriptionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new reservation.
+     * 
+ */ + public void createReservation(com.google.cloud.pubsublite.proto.CreateReservationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateReservationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the reservation configuration.
+     * 
+ */ + public void getReservation(com.google.cloud.pubsublite.proto.GetReservationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetReservationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the list of reservations for the given project.
+     * 
+ */ + public void listReservations(com.google.cloud.pubsublite.proto.ListReservationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListReservationsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates properties of the specified reservation.
+     * 
+ */ + public void updateReservation(com.google.cloud.pubsublite.proto.UpdateReservationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateReservationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified reservation.
+     * 
+ */ + public void deleteReservation(com.google.cloud.pubsublite.proto.DeleteReservationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteReservationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists the topics attached to the specified reservation.
+     * 
+ */ + public void listReservationTopics(com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListReservationTopicsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service AdminService. + *
+   * The service that a client application uses to manage topics and
+   * subscriptions, such creating, listing, and deleting topics and subscriptions.
+   * 
+ */ + public static final class AdminServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AdminServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdminServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdminServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a new topic.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.Topic createTopic(com.google.cloud.pubsublite.proto.CreateTopicRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTopicMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the topic configuration.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.Topic getTopic(com.google.cloud.pubsublite.proto.GetTopicRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTopicMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the partition information for the requested topic.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.TopicPartitions getTopicPartitions(com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTopicPartitionsMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the list of topics for the given project.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.ListTopicsResponse listTopics(com.google.cloud.pubsublite.proto.ListTopicsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTopicsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates properties of the specified topic.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.Topic updateTopic(com.google.cloud.pubsublite.proto.UpdateTopicRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateTopicMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified topic.
+     * 
+ */ + public com.google.protobuf.Empty deleteTopic(com.google.cloud.pubsublite.proto.DeleteTopicRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTopicMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists the subscriptions attached to the specified topic.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse listTopicSubscriptions(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTopicSubscriptionsMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new subscription.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.Subscription createSubscription(com.google.cloud.pubsublite.proto.CreateSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSubscriptionMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the subscription configuration.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.Subscription getSubscription(com.google.cloud.pubsublite.proto.GetSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSubscriptionMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the list of subscriptions for the given project.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.ListSubscriptionsResponse listSubscriptions(com.google.cloud.pubsublite.proto.ListSubscriptionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSubscriptionsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates properties of the specified subscription.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.Subscription updateSubscription(com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSubscriptionMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified subscription.
+     * 
+ */ + public com.google.protobuf.Empty deleteSubscription(com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSubscriptionMethod(), getCallOptions(), request); + } + + /** + *
+     * Performs an out-of-band seek for a subscription to a specified target,
+     * which may be timestamps or named positions within the message backlog.
+     * Seek translates these targets to cursors for each partition and
+     * orchestrates subscribers to start consuming messages from these seek
+     * cursors.
+     * If an operation is returned, the seek has been registered and subscribers
+     * will eventually receive messages from the seek cursors (i.e. eventual
+     * consistency), as long as they are using a minimum supported client library
+     * version and not a system that tracks cursors independently of Pub/Sub Lite
+     * (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for
+     * unsupported clients.
+     * If clients would like to know when subscribers react to the seek (or not),
+     * they can poll the operation. The seek operation will succeed and complete
+     * once subscribers are ready to receive messages from the seek cursors for
+     * all partitions of the topic. This means that the seek operation will not
+     * complete until all subscribers come online.
+     * If the previous seek operation has not yet completed, it will be aborted
+     * and the new invocation of seek will supersede it.
+     * 
+ */ + public com.google.longrunning.Operation seekSubscription(com.google.cloud.pubsublite.proto.SeekSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSeekSubscriptionMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new reservation.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.Reservation createReservation(com.google.cloud.pubsublite.proto.CreateReservationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateReservationMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the reservation configuration.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.Reservation getReservation(com.google.cloud.pubsublite.proto.GetReservationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetReservationMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the list of reservations for the given project.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.ListReservationsResponse listReservations(com.google.cloud.pubsublite.proto.ListReservationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListReservationsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates properties of the specified reservation.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.Reservation updateReservation(com.google.cloud.pubsublite.proto.UpdateReservationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateReservationMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified reservation.
+     * 
+ */ + public com.google.protobuf.Empty deleteReservation(com.google.cloud.pubsublite.proto.DeleteReservationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteReservationMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists the topics attached to the specified reservation.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.ListReservationTopicsResponse listReservationTopics(com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListReservationTopicsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service AdminService. + *
+   * The service that a client application uses to manage topics and
+   * subscriptions, such creating, listing, and deleting topics and subscriptions.
+   * 
+ */ + public static final class AdminServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AdminServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdminServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdminServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a new topic.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createTopic( + com.google.cloud.pubsublite.proto.CreateTopicRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateTopicMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the topic configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getTopic( + com.google.cloud.pubsublite.proto.GetTopicRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTopicMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the partition information for the requested topic.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getTopicPartitions( + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTopicPartitionsMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the list of topics for the given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listTopics( + com.google.cloud.pubsublite.proto.ListTopicsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTopicsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates properties of the specified topic.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateTopic( + com.google.cloud.pubsublite.proto.UpdateTopicRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateTopicMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified topic.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteTopic( + com.google.cloud.pubsublite.proto.DeleteTopicRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteTopicMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists the subscriptions attached to the specified topic.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listTopicSubscriptions( + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTopicSubscriptionsMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new subscription.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createSubscription( + com.google.cloud.pubsublite.proto.CreateSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSubscriptionMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the subscription configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSubscription( + com.google.cloud.pubsublite.proto.GetSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSubscriptionMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the list of subscriptions for the given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listSubscriptions( + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSubscriptionsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates properties of the specified subscription.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateSubscription( + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSubscriptionMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified subscription.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteSubscription( + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSubscriptionMethod(), getCallOptions()), request); + } + + /** + *
+     * Performs an out-of-band seek for a subscription to a specified target,
+     * which may be timestamps or named positions within the message backlog.
+     * Seek translates these targets to cursors for each partition and
+     * orchestrates subscribers to start consuming messages from these seek
+     * cursors.
+     * If an operation is returned, the seek has been registered and subscribers
+     * will eventually receive messages from the seek cursors (i.e. eventual
+     * consistency), as long as they are using a minimum supported client library
+     * version and not a system that tracks cursors independently of Pub/Sub Lite
+     * (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for
+     * unsupported clients.
+     * If clients would like to know when subscribers react to the seek (or not),
+     * they can poll the operation. The seek operation will succeed and complete
+     * once subscribers are ready to receive messages from the seek cursors for
+     * all partitions of the topic. This means that the seek operation will not
+     * complete until all subscribers come online.
+     * If the previous seek operation has not yet completed, it will be aborted
+     * and the new invocation of seek will supersede it.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture seekSubscription( + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSeekSubscriptionMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new reservation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createReservation( + com.google.cloud.pubsublite.proto.CreateReservationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateReservationMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the reservation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getReservation( + com.google.cloud.pubsublite.proto.GetReservationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetReservationMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the list of reservations for the given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listReservations( + com.google.cloud.pubsublite.proto.ListReservationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListReservationsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates properties of the specified reservation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateReservation( + com.google.cloud.pubsublite.proto.UpdateReservationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateReservationMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified reservation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteReservation( + com.google.cloud.pubsublite.proto.DeleteReservationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteReservationMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists the topics attached to the specified reservation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listReservationTopics( + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListReservationTopicsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_TOPIC = 0; + private static final int METHODID_GET_TOPIC = 1; + private static final int METHODID_GET_TOPIC_PARTITIONS = 2; + private static final int METHODID_LIST_TOPICS = 3; + private static final int METHODID_UPDATE_TOPIC = 4; + private static final int METHODID_DELETE_TOPIC = 5; + private static final int METHODID_LIST_TOPIC_SUBSCRIPTIONS = 6; + private static final int METHODID_CREATE_SUBSCRIPTION = 7; + private static final int METHODID_GET_SUBSCRIPTION = 8; + private static final int METHODID_LIST_SUBSCRIPTIONS = 9; + private static final int METHODID_UPDATE_SUBSCRIPTION = 10; + private static final int METHODID_DELETE_SUBSCRIPTION = 11; + private static final int METHODID_SEEK_SUBSCRIPTION = 12; + private static final int METHODID_CREATE_RESERVATION = 13; + private static final int METHODID_GET_RESERVATION = 14; + private static final int METHODID_LIST_RESERVATIONS = 15; + private static final int METHODID_UPDATE_RESERVATION = 16; + private static final int METHODID_DELETE_RESERVATION = 17; + private static final int METHODID_LIST_RESERVATION_TOPICS = 18; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_TOPIC: + serviceImpl.createTopic((com.google.cloud.pubsublite.proto.CreateTopicRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_TOPIC: + serviceImpl.getTopic((com.google.cloud.pubsublite.proto.GetTopicRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_TOPIC_PARTITIONS: + serviceImpl.getTopicPartitions((com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_TOPICS: + serviceImpl.listTopics((com.google.cloud.pubsublite.proto.ListTopicsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_TOPIC: + serviceImpl.updateTopic((com.google.cloud.pubsublite.proto.UpdateTopicRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_TOPIC: + serviceImpl.deleteTopic((com.google.cloud.pubsublite.proto.DeleteTopicRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_TOPIC_SUBSCRIPTIONS: + serviceImpl.listTopicSubscriptions((com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SUBSCRIPTION: + serviceImpl.createSubscription((com.google.cloud.pubsublite.proto.CreateSubscriptionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SUBSCRIPTION: + serviceImpl.getSubscription((com.google.cloud.pubsublite.proto.GetSubscriptionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SUBSCRIPTIONS: + serviceImpl.listSubscriptions((com.google.cloud.pubsublite.proto.ListSubscriptionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SUBSCRIPTION: + serviceImpl.updateSubscription((com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SUBSCRIPTION: + serviceImpl.deleteSubscription((com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SEEK_SUBSCRIPTION: + serviceImpl.seekSubscription((com.google.cloud.pubsublite.proto.SeekSubscriptionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_RESERVATION: + serviceImpl.createReservation((com.google.cloud.pubsublite.proto.CreateReservationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_RESERVATION: + serviceImpl.getReservation((com.google.cloud.pubsublite.proto.GetReservationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_RESERVATIONS: + serviceImpl.listReservations((com.google.cloud.pubsublite.proto.ListReservationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_RESERVATION: + serviceImpl.updateReservation((com.google.cloud.pubsublite.proto.UpdateReservationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_RESERVATION: + serviceImpl.deleteReservation((com.google.cloud.pubsublite.proto.DeleteReservationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_RESERVATION_TOPICS: + serviceImpl.listReservationTopics((com.google.cloud.pubsublite.proto.ListReservationTopicsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.CreateTopicRequest, + com.google.cloud.pubsublite.proto.Topic>( + service, METHODID_CREATE_TOPIC))) + .addMethod( + getGetTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.GetTopicRequest, + com.google.cloud.pubsublite.proto.Topic>( + service, METHODID_GET_TOPIC))) + .addMethod( + getGetTopicPartitionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest, + com.google.cloud.pubsublite.proto.TopicPartitions>( + service, METHODID_GET_TOPIC_PARTITIONS))) + .addMethod( + getListTopicsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListTopicsRequest, + com.google.cloud.pubsublite.proto.ListTopicsResponse>( + service, METHODID_LIST_TOPICS))) + .addMethod( + getUpdateTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.UpdateTopicRequest, + com.google.cloud.pubsublite.proto.Topic>( + service, METHODID_UPDATE_TOPIC))) + .addMethod( + getDeleteTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.DeleteTopicRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_TOPIC))) + .addMethod( + getListTopicSubscriptionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest, + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse>( + service, METHODID_LIST_TOPIC_SUBSCRIPTIONS))) + .addMethod( + getCreateSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.CreateSubscriptionRequest, + com.google.cloud.pubsublite.proto.Subscription>( + service, METHODID_CREATE_SUBSCRIPTION))) + .addMethod( + getGetSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.GetSubscriptionRequest, + com.google.cloud.pubsublite.proto.Subscription>( + service, METHODID_GET_SUBSCRIPTION))) + .addMethod( + getListSubscriptionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest, + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse>( + service, METHODID_LIST_SUBSCRIPTIONS))) + .addMethod( + getUpdateSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest, + com.google.cloud.pubsublite.proto.Subscription>( + service, METHODID_UPDATE_SUBSCRIPTION))) + .addMethod( + getDeleteSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_SUBSCRIPTION))) + .addMethod( + getSeekSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest, + com.google.longrunning.Operation>( + service, METHODID_SEEK_SUBSCRIPTION))) + .addMethod( + getCreateReservationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.CreateReservationRequest, + com.google.cloud.pubsublite.proto.Reservation>( + service, METHODID_CREATE_RESERVATION))) + .addMethod( + getGetReservationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.GetReservationRequest, + com.google.cloud.pubsublite.proto.Reservation>( + service, METHODID_GET_RESERVATION))) + .addMethod( + getListReservationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListReservationsRequest, + com.google.cloud.pubsublite.proto.ListReservationsResponse>( + service, METHODID_LIST_RESERVATIONS))) + .addMethod( + getUpdateReservationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.UpdateReservationRequest, + com.google.cloud.pubsublite.proto.Reservation>( + service, METHODID_UPDATE_RESERVATION))) + .addMethod( + getDeleteReservationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.DeleteReservationRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_RESERVATION))) + .addMethod( + getListReservationTopicsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest, + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse>( + service, METHODID_LIST_RESERVATION_TOPICS))) + .build(); + } + + private static abstract class AdminServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AdminServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AdminService"); + } + } + + private static final class AdminServiceFileDescriptorSupplier + extends AdminServiceBaseDescriptorSupplier { + AdminServiceFileDescriptorSupplier() {} + } + + private static final class AdminServiceMethodDescriptorSupplier + extends AdminServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + AdminServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AdminServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AdminServiceFileDescriptorSupplier()) + .addMethod(getCreateTopicMethod()) + .addMethod(getGetTopicMethod()) + .addMethod(getGetTopicPartitionsMethod()) + .addMethod(getListTopicsMethod()) + .addMethod(getUpdateTopicMethod()) + .addMethod(getDeleteTopicMethod()) + .addMethod(getListTopicSubscriptionsMethod()) + .addMethod(getCreateSubscriptionMethod()) + .addMethod(getGetSubscriptionMethod()) + .addMethod(getListSubscriptionsMethod()) + .addMethod(getUpdateSubscriptionMethod()) + .addMethod(getDeleteSubscriptionMethod()) + .addMethod(getSeekSubscriptionMethod()) + .addMethod(getCreateReservationMethod()) + .addMethod(getGetReservationMethod()) + .addMethod(getListReservationsMethod()) + .addMethod(getUpdateReservationMethod()) + .addMethod(getDeleteReservationMethod()) + .addMethod(getListReservationTopicsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorServiceGrpc.java new file mode 100644 index 000000000..ce5f37c13 --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorServiceGrpc.java @@ -0,0 +1,485 @@ +package com.google.cloud.pubsublite.proto; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * The service that a subscriber client application uses to manage committed
+ * cursors while receiving messsages. A cursor represents a subscriber's
+ * progress within a topic partition for a given subscription.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/pubsublite/v1/cursor.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class CursorServiceGrpc { + + private CursorServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.pubsublite.v1.CursorService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getStreamingCommitCursorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamingCommitCursor", + requestType = com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.class, + responseType = com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor getStreamingCommitCursorMethod() { + io.grpc.MethodDescriptor getStreamingCommitCursorMethod; + if ((getStreamingCommitCursorMethod = CursorServiceGrpc.getStreamingCommitCursorMethod) == null) { + synchronized (CursorServiceGrpc.class) { + if ((getStreamingCommitCursorMethod = CursorServiceGrpc.getStreamingCommitCursorMethod) == null) { + CursorServiceGrpc.getStreamingCommitCursorMethod = getStreamingCommitCursorMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingCommitCursor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.getDefaultInstance())) + .setSchemaDescriptor(new CursorServiceMethodDescriptorSupplier("StreamingCommitCursor")) + .build(); + } + } + } + return getStreamingCommitCursorMethod; + } + + private static volatile io.grpc.MethodDescriptor getCommitCursorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CommitCursor", + requestType = com.google.cloud.pubsublite.proto.CommitCursorRequest.class, + responseType = com.google.cloud.pubsublite.proto.CommitCursorResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCommitCursorMethod() { + io.grpc.MethodDescriptor getCommitCursorMethod; + if ((getCommitCursorMethod = CursorServiceGrpc.getCommitCursorMethod) == null) { + synchronized (CursorServiceGrpc.class) { + if ((getCommitCursorMethod = CursorServiceGrpc.getCommitCursorMethod) == null) { + CursorServiceGrpc.getCommitCursorMethod = getCommitCursorMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CommitCursor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.CommitCursorRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.CommitCursorResponse.getDefaultInstance())) + .setSchemaDescriptor(new CursorServiceMethodDescriptorSupplier("CommitCursor")) + .build(); + } + } + } + return getCommitCursorMethod; + } + + private static volatile io.grpc.MethodDescriptor getListPartitionCursorsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPartitionCursors", + requestType = com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.class, + responseType = com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListPartitionCursorsMethod() { + io.grpc.MethodDescriptor getListPartitionCursorsMethod; + if ((getListPartitionCursorsMethod = CursorServiceGrpc.getListPartitionCursorsMethod) == null) { + synchronized (CursorServiceGrpc.class) { + if ((getListPartitionCursorsMethod = CursorServiceGrpc.getListPartitionCursorsMethod) == null) { + CursorServiceGrpc.getListPartitionCursorsMethod = getListPartitionCursorsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPartitionCursors")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CursorServiceMethodDescriptorSupplier("ListPartitionCursors")) + .build(); + } + } + } + return getListPartitionCursorsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static CursorServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CursorServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CursorServiceStub(channel, callOptions); + } + }; + return CursorServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CursorServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CursorServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CursorServiceBlockingStub(channel, callOptions); + } + }; + return CursorServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static CursorServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CursorServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CursorServiceFutureStub(channel, callOptions); + } + }; + return CursorServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * The service that a subscriber client application uses to manage committed
+   * cursors while receiving messsages. A cursor represents a subscriber's
+   * progress within a topic partition for a given subscription.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Establishes a stream with the server for managing committed cursors.
+     * 
+ */ + default io.grpc.stub.StreamObserver streamingCommitCursor( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamingCommitCursorMethod(), responseObserver); + } + + /** + *
+     * Updates the committed cursor.
+     * 
+ */ + default void commitCursor(com.google.cloud.pubsublite.proto.CommitCursorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCommitCursorMethod(), responseObserver); + } + + /** + *
+     * Returns all committed cursor information for a subscription.
+     * 
+ */ + default void listPartitionCursors(com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPartitionCursorsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service CursorService. + *
+   * The service that a subscriber client application uses to manage committed
+   * cursors while receiving messsages. A cursor represents a subscriber's
+   * progress within a topic partition for a given subscription.
+   * 
+ */ + public static abstract class CursorServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return CursorServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service CursorService. + *
+   * The service that a subscriber client application uses to manage committed
+   * cursors while receiving messsages. A cursor represents a subscriber's
+   * progress within a topic partition for a given subscription.
+   * 
+ */ + public static final class CursorServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private CursorServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CursorServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CursorServiceStub(channel, callOptions); + } + + /** + *
+     * Establishes a stream with the server for managing committed cursors.
+     * 
+ */ + public io.grpc.stub.StreamObserver streamingCommitCursor( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getStreamingCommitCursorMethod(), getCallOptions()), responseObserver); + } + + /** + *
+     * Updates the committed cursor.
+     * 
+ */ + public void commitCursor(com.google.cloud.pubsublite.proto.CommitCursorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCommitCursorMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns all committed cursor information for a subscription.
+     * 
+ */ + public void listPartitionCursors(com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPartitionCursorsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service CursorService. + *
+   * The service that a subscriber client application uses to manage committed
+   * cursors while receiving messsages. A cursor represents a subscriber's
+   * progress within a topic partition for a given subscription.
+   * 
+ */ + public static final class CursorServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private CursorServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CursorServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CursorServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Updates the committed cursor.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.CommitCursorResponse commitCursor(com.google.cloud.pubsublite.proto.CommitCursorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCommitCursorMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns all committed cursor information for a subscription.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse listPartitionCursors(com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPartitionCursorsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service CursorService. + *
+   * The service that a subscriber client application uses to manage committed
+   * cursors while receiving messsages. A cursor represents a subscriber's
+   * progress within a topic partition for a given subscription.
+   * 
+ */ + public static final class CursorServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private CursorServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CursorServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CursorServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Updates the committed cursor.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture commitCursor( + com.google.cloud.pubsublite.proto.CommitCursorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCommitCursorMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns all committed cursor information for a subscription.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listPartitionCursors( + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPartitionCursorsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_COMMIT_CURSOR = 0; + private static final int METHODID_LIST_PARTITION_CURSORS = 1; + private static final int METHODID_STREAMING_COMMIT_CURSOR = 2; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_COMMIT_CURSOR: + serviceImpl.commitCursor((com.google.cloud.pubsublite.proto.CommitCursorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_PARTITION_CURSORS: + serviceImpl.listPartitionCursors((com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_STREAMING_COMMIT_CURSOR: + return (io.grpc.stub.StreamObserver) serviceImpl.streamingCommitCursor( + (io.grpc.stub.StreamObserver) responseObserver); + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getStreamingCommitCursorMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest, + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse>( + service, METHODID_STREAMING_COMMIT_CURSOR))) + .addMethod( + getCommitCursorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.CommitCursorRequest, + com.google.cloud.pubsublite.proto.CommitCursorResponse>( + service, METHODID_COMMIT_CURSOR))) + .addMethod( + getListPartitionCursorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest, + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse>( + service, METHODID_LIST_PARTITION_CURSORS))) + .build(); + } + + private static abstract class CursorServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CursorServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CursorService"); + } + } + + private static final class CursorServiceFileDescriptorSupplier + extends CursorServiceBaseDescriptorSupplier { + CursorServiceFileDescriptorSupplier() {} + } + + private static final class CursorServiceMethodDescriptorSupplier + extends CursorServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + CursorServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (CursorServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CursorServiceFileDescriptorSupplier()) + .addMethod(getStreamingCommitCursorMethod()) + .addMethod(getCommitCursorMethod()) + .addMethod(getListPartitionCursorsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentServiceGrpc.java similarity index 58% rename from grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentServiceGrpc.java rename to owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentServiceGrpc.java index 48700bb5b..126cd48ed 100644 --- a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentServiceGrpc.java +++ b/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentServiceGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.pubsublite.proto; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * The service that a subscriber client application uses to determine which
  * partitions it should connect to.
@@ -33,104 +16,85 @@ public final class PartitionAssignmentServiceGrpc {
 
   private PartitionAssignmentServiceGrpc() {}
 
-  public static final java.lang.String SERVICE_NAME =
-      "google.cloud.pubsublite.v1.PartitionAssignmentService";
+  public static final java.lang.String SERVICE_NAME = "google.cloud.pubsublite.v1.PartitionAssignmentService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.pubsublite.proto.PartitionAssignmentRequest,
-          com.google.cloud.pubsublite.proto.PartitionAssignment>
-      getAssignPartitionsMethod;
+  private static volatile io.grpc.MethodDescriptor getAssignPartitionsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "AssignPartitions",
       requestType = com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.class,
       responseType = com.google.cloud.pubsublite.proto.PartitionAssignment.class,
       methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.pubsublite.proto.PartitionAssignmentRequest,
-          com.google.cloud.pubsublite.proto.PartitionAssignment>
-      getAssignPartitionsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.pubsublite.proto.PartitionAssignmentRequest,
-            com.google.cloud.pubsublite.proto.PartitionAssignment>
-        getAssignPartitionsMethod;
-    if ((getAssignPartitionsMethod = PartitionAssignmentServiceGrpc.getAssignPartitionsMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getAssignPartitionsMethod() {
+    io.grpc.MethodDescriptor getAssignPartitionsMethod;
+    if ((getAssignPartitionsMethod = PartitionAssignmentServiceGrpc.getAssignPartitionsMethod) == null) {
       synchronized (PartitionAssignmentServiceGrpc.class) {
-        if ((getAssignPartitionsMethod = PartitionAssignmentServiceGrpc.getAssignPartitionsMethod)
-            == null) {
-          PartitionAssignmentServiceGrpc.getAssignPartitionsMethod =
-              getAssignPartitionsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AssignPartitions"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.pubsublite.proto.PartitionAssignmentRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.pubsublite.proto.PartitionAssignment
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new PartitionAssignmentServiceMethodDescriptorSupplier(
-                              "AssignPartitions"))
-                      .build();
+        if ((getAssignPartitionsMethod = PartitionAssignmentServiceGrpc.getAssignPartitionsMethod) == null) {
+          PartitionAssignmentServiceGrpc.getAssignPartitionsMethod = getAssignPartitionsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AssignPartitions"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.pubsublite.proto.PartitionAssignment.getDefaultInstance()))
+              .setSchemaDescriptor(new PartitionAssignmentServiceMethodDescriptorSupplier("AssignPartitions"))
+              .build();
         }
       }
     }
     return getAssignPartitionsMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static PartitionAssignmentServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public PartitionAssignmentServiceStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new PartitionAssignmentServiceStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public PartitionAssignmentServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new PartitionAssignmentServiceStub(channel, callOptions);
+        }
+      };
     return PartitionAssignmentServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static PartitionAssignmentServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static PartitionAssignmentServiceBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public PartitionAssignmentServiceBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new PartitionAssignmentServiceBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public PartitionAssignmentServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new PartitionAssignmentServiceBlockingStub(channel, callOptions);
+        }
+      };
     return PartitionAssignmentServiceBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static PartitionAssignmentServiceFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static PartitionAssignmentServiceFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public PartitionAssignmentServiceFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new PartitionAssignmentServiceFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public PartitionAssignmentServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new PartitionAssignmentServiceFutureStub(channel, callOptions);
+        }
+      };
     return PartitionAssignmentServiceFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * The service that a subscriber client application uses to determine which
    * partitions it should connect to.
@@ -139,8 +103,6 @@ public PartitionAssignmentServiceFutureStub newStub(
   public interface AsyncService {
 
     /**
-     *
-     *
      * 
      * Assign partitions for this client to handle for the specified subscription.
      * The client must send an InitialPartitionAssignmentRequest first.
@@ -150,36 +112,29 @@ public interface AsyncService {
      * partitions it is connected to to reflect the new assignment.
      * 
*/ - default io.grpc.stub.StreamObserver< - com.google.cloud.pubsublite.proto.PartitionAssignmentRequest> - assignPartitions( - io.grpc.stub.StreamObserver - responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( - getAssignPartitionsMethod(), responseObserver); + default io.grpc.stub.StreamObserver assignPartitions( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getAssignPartitionsMethod(), responseObserver); } } /** * Base class for the server implementation of the service PartitionAssignmentService. - * *
    * The service that a subscriber client application uses to determine which
    * partitions it should connect to.
    * 
*/ - public abstract static class PartitionAssignmentServiceImplBase + public static abstract class PartitionAssignmentServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return PartitionAssignmentServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service PartitionAssignmentService. - * *
    * The service that a subscriber client application uses to determine which
    * partitions it should connect to.
@@ -199,8 +154,6 @@ protected PartitionAssignmentServiceStub build(
     }
 
     /**
-     *
-     *
      * 
      * Assign partitions for this client to handle for the specified subscription.
      * The client must send an InitialPartitionAssignmentRequest first.
@@ -210,10 +163,8 @@ protected PartitionAssignmentServiceStub build(
      * partitions it is connected to to reflect the new assignment.
      * 
*/ - public io.grpc.stub.StreamObserver - assignPartitions( - io.grpc.stub.StreamObserver - responseObserver) { + public io.grpc.stub.StreamObserver assignPartitions( + io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getAssignPartitionsMethod(), getCallOptions()), responseObserver); } @@ -221,7 +172,6 @@ protected PartitionAssignmentServiceStub build( /** * A stub to allow clients to do synchronous rpc calls to service PartitionAssignmentService. - * *
    * The service that a subscriber client application uses to determine which
    * partitions it should connect to.
@@ -242,9 +192,7 @@ protected PartitionAssignmentServiceBlockingStub build(
   }
 
   /**
-   * A stub to allow clients to do ListenableFuture-style rpc calls to service
-   * PartitionAssignmentService.
-   *
+   * A stub to allow clients to do ListenableFuture-style rpc calls to service PartitionAssignmentService.
    * 
    * The service that a subscriber client application uses to determine which
    * partitions it should connect to.
@@ -266,11 +214,11 @@ protected PartitionAssignmentServiceFutureStub build(
 
   private static final int METHODID_ASSIGN_PARTITIONS = 0;
 
-  private static final class MethodHandlers
-      implements io.grpc.stub.ServerCalls.UnaryMethod,
-          io.grpc.stub.ServerCalls.ServerStreamingMethod,
-          io.grpc.stub.ServerCalls.ClientStreamingMethod,
-          io.grpc.stub.ServerCalls.BidiStreamingMethod {
+  private static final class MethodHandlers implements
+      io.grpc.stub.ServerCalls.UnaryMethod,
+      io.grpc.stub.ServerCalls.ServerStreamingMethod,
+      io.grpc.stub.ServerCalls.ClientStreamingMethod,
+      io.grpc.stub.ServerCalls.BidiStreamingMethod {
     private final AsyncService serviceImpl;
     private final int methodId;
 
@@ -294,11 +242,8 @@ public io.grpc.stub.StreamObserver invoke(
         io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_ASSIGN_PARTITIONS:
-          return (io.grpc.stub.StreamObserver)
-              serviceImpl.assignPartitions(
-                  (io.grpc.stub.StreamObserver<
-                          com.google.cloud.pubsublite.proto.PartitionAssignment>)
-                      responseObserver);
+          return (io.grpc.stub.StreamObserver) serviceImpl.assignPartitions(
+              (io.grpc.stub.StreamObserver) responseObserver);
         default:
           throw new AssertionError();
       }
@@ -308,18 +253,17 @@ public io.grpc.stub.StreamObserver invoke(
   public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
     return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
         .addMethod(
-            getAssignPartitionsMethod(),
-            io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
-                new MethodHandlers<
-                    com.google.cloud.pubsublite.proto.PartitionAssignmentRequest,
-                    com.google.cloud.pubsublite.proto.PartitionAssignment>(
-                    service, METHODID_ASSIGN_PARTITIONS)))
+          getAssignPartitionsMethod(),
+          io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
+            new MethodHandlers<
+              com.google.cloud.pubsublite.proto.PartitionAssignmentRequest,
+              com.google.cloud.pubsublite.proto.PartitionAssignment>(
+                service, METHODID_ASSIGN_PARTITIONS)))
         .build();
   }
 
-  private abstract static class PartitionAssignmentServiceBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
-          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private static abstract class PartitionAssignmentServiceBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     PartitionAssignmentServiceBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -361,12 +305,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
       synchronized (PartitionAssignmentServiceGrpc.class) {
         result = serviceDescriptor;
         if (result == null) {
-          serviceDescriptor =
-              result =
-                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
-                      .setSchemaDescriptor(new PartitionAssignmentServiceFileDescriptorSupplier())
-                      .addMethod(getAssignPartitionsMethod())
-                      .build();
+          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+              .setSchemaDescriptor(new PartitionAssignmentServiceFileDescriptorSupplier())
+              .addMethod(getAssignPartitionsMethod())
+              .build();
         }
       }
     }
diff --git a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherServiceGrpc.java
similarity index 62%
rename from grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherServiceGrpc.java
rename to owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherServiceGrpc.java
index 3ffb3e872..b272320ca 100644
--- a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherServiceGrpc.java
+++ b/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherServiceGrpc.java
@@ -1,25 +1,8 @@
-/*
- * Copyright 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
@@ -38,96 +21,82 @@ private PublisherServiceGrpc() {}
   public static final java.lang.String SERVICE_NAME = "google.cloud.pubsublite.v1.PublisherService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.pubsublite.proto.PublishRequest,
-          com.google.cloud.pubsublite.proto.PublishResponse>
-      getPublishMethod;
+  private static volatile io.grpc.MethodDescriptor getPublishMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Publish",
       requestType = com.google.cloud.pubsublite.proto.PublishRequest.class,
       responseType = com.google.cloud.pubsublite.proto.PublishResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.pubsublite.proto.PublishRequest,
-          com.google.cloud.pubsublite.proto.PublishResponse>
-      getPublishMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.pubsublite.proto.PublishRequest,
-            com.google.cloud.pubsublite.proto.PublishResponse>
-        getPublishMethod;
+  public static io.grpc.MethodDescriptor getPublishMethod() {
+    io.grpc.MethodDescriptor getPublishMethod;
     if ((getPublishMethod = PublisherServiceGrpc.getPublishMethod) == null) {
       synchronized (PublisherServiceGrpc.class) {
         if ((getPublishMethod = PublisherServiceGrpc.getPublishMethod) == null) {
-          PublisherServiceGrpc.getPublishMethod =
-              getPublishMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Publish"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.pubsublite.proto.PublishRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.pubsublite.proto.PublishResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(new PublisherServiceMethodDescriptorSupplier("Publish"))
-                      .build();
+          PublisherServiceGrpc.getPublishMethod = getPublishMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Publish"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.pubsublite.proto.PublishRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.pubsublite.proto.PublishResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new PublisherServiceMethodDescriptorSupplier("Publish"))
+              .build();
         }
       }
     }
     return getPublishMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static PublisherServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public PublisherServiceStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new PublisherServiceStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public PublisherServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new PublisherServiceStub(channel, callOptions);
+        }
+      };
     return PublisherServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static PublisherServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static PublisherServiceBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public PublisherServiceBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new PublisherServiceBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public PublisherServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new PublisherServiceBlockingStub(channel, callOptions);
+        }
+      };
     return PublisherServiceBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static PublisherServiceFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static PublisherServiceFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public PublisherServiceFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new PublisherServiceFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public PublisherServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new PublisherServiceFutureStub(channel, callOptions);
+        }
+      };
     return PublisherServiceFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * The service that a publisher client application uses to publish messages to
    * topics. Published messages are retained by the service for the duration of
@@ -138,8 +107,6 @@ public PublisherServiceFutureStub newStub(
   public interface AsyncService {
 
     /**
-     *
-     *
      * 
      * Establishes a stream with the server for publishing messages. Once the
      * stream is initialized, the client publishes messages by sending publish
@@ -151,16 +118,13 @@ public interface AsyncService {
      * 
*/ default io.grpc.stub.StreamObserver publish( - io.grpc.stub.StreamObserver - responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( - getPublishMethod(), responseObserver); + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getPublishMethod(), responseObserver); } } /** * Base class for the server implementation of the service PublisherService. - * *
    * The service that a publisher client application uses to publish messages to
    * topics. Published messages are retained by the service for the duration of
@@ -168,18 +132,16 @@ default io.grpc.stub.StreamObserver
    */
-  public abstract static class PublisherServiceImplBase
+  public static abstract class PublisherServiceImplBase
       implements io.grpc.BindableService, AsyncService {
 
-    @java.lang.Override
-    public final io.grpc.ServerServiceDefinition bindService() {
+    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
       return PublisherServiceGrpc.bindService(this);
     }
   }
 
   /**
    * A stub to allow clients to do asynchronous rpc calls to service PublisherService.
-   *
    * 
    * The service that a publisher client application uses to publish messages to
    * topics. Published messages are retained by the service for the duration of
@@ -189,18 +151,18 @@ public final io.grpc.ServerServiceDefinition bindService() {
    */
   public static final class PublisherServiceStub
       extends io.grpc.stub.AbstractAsyncStub {
-    private PublisherServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private PublisherServiceStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected PublisherServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected PublisherServiceStub build(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new PublisherServiceStub(channel, callOptions);
     }
 
     /**
-     *
-     *
      * 
      * Establishes a stream with the server for publishing messages. Once the
      * stream is initialized, the client publishes messages by sending publish
@@ -212,8 +174,7 @@ protected PublisherServiceStub build(io.grpc.Channel channel, io.grpc.CallOption
      * 
*/ public io.grpc.stub.StreamObserver publish( - io.grpc.stub.StreamObserver - responseObserver) { + io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getPublishMethod(), getCallOptions()), responseObserver); } @@ -221,7 +182,6 @@ public io.grpc.stub.StreamObserver * The service that a publisher client application uses to publish messages to * topics. Published messages are retained by the service for the duration of @@ -231,7 +191,8 @@ public io.grpc.stub.StreamObserver { - private PublisherServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private PublisherServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -244,7 +205,6 @@ protected PublisherServiceBlockingStub build( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service PublisherService. - * *
    * The service that a publisher client application uses to publish messages to
    * topics. Published messages are retained by the service for the duration of
@@ -254,7 +214,8 @@ protected PublisherServiceBlockingStub build(
    */
   public static final class PublisherServiceFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private PublisherServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private PublisherServiceFutureStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -267,11 +228,11 @@ protected PublisherServiceFutureStub build(
 
   private static final int METHODID_PUBLISH = 0;
 
-  private static final class MethodHandlers
-      implements io.grpc.stub.ServerCalls.UnaryMethod,
-          io.grpc.stub.ServerCalls.ServerStreamingMethod,
-          io.grpc.stub.ServerCalls.ClientStreamingMethod,
-          io.grpc.stub.ServerCalls.BidiStreamingMethod {
+  private static final class MethodHandlers implements
+      io.grpc.stub.ServerCalls.UnaryMethod,
+      io.grpc.stub.ServerCalls.ServerStreamingMethod,
+      io.grpc.stub.ServerCalls.ClientStreamingMethod,
+      io.grpc.stub.ServerCalls.BidiStreamingMethod {
     private final AsyncService serviceImpl;
     private final int methodId;
 
@@ -295,10 +256,8 @@ public io.grpc.stub.StreamObserver invoke(
         io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_PUBLISH:
-          return (io.grpc.stub.StreamObserver)
-              serviceImpl.publish(
-                  (io.grpc.stub.StreamObserver)
-                      responseObserver);
+          return (io.grpc.stub.StreamObserver) serviceImpl.publish(
+              (io.grpc.stub.StreamObserver) responseObserver);
         default:
           throw new AssertionError();
       }
@@ -308,17 +267,17 @@ public io.grpc.stub.StreamObserver invoke(
   public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
     return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
         .addMethod(
-            getPublishMethod(),
-            io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
-                new MethodHandlers<
-                    com.google.cloud.pubsublite.proto.PublishRequest,
-                    com.google.cloud.pubsublite.proto.PublishResponse>(service, METHODID_PUBLISH)))
+          getPublishMethod(),
+          io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
+            new MethodHandlers<
+              com.google.cloud.pubsublite.proto.PublishRequest,
+              com.google.cloud.pubsublite.proto.PublishResponse>(
+                service, METHODID_PUBLISH)))
         .build();
   }
 
-  private abstract static class PublisherServiceBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
-          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private static abstract class PublisherServiceBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     PublisherServiceBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -360,12 +319,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
       synchronized (PublisherServiceGrpc.class) {
         result = serviceDescriptor;
         if (result == null) {
-          serviceDescriptor =
-              result =
-                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
-                      .setSchemaDescriptor(new PublisherServiceFileDescriptorSupplier())
-                      .addMethod(getPublishMethod())
-                      .build();
+          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+              .setSchemaDescriptor(new PublisherServiceFileDescriptorSupplier())
+              .addMethod(getPublishMethod())
+              .build();
         }
       }
     }
diff --git a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberServiceGrpc.java
similarity index 55%
rename from grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberServiceGrpc.java
rename to owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberServiceGrpc.java
index f4fe804a3..7e9b83b02 100644
--- a/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberServiceGrpc.java
+++ b/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberServiceGrpc.java
@@ -1,25 +1,8 @@
-/*
- * Copyright 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.
@@ -33,101 +16,85 @@ public final class SubscriberServiceGrpc {
 
   private SubscriberServiceGrpc() {}
 
-  public static final java.lang.String SERVICE_NAME =
-      "google.cloud.pubsublite.v1.SubscriberService";
+  public static final java.lang.String SERVICE_NAME = "google.cloud.pubsublite.v1.SubscriberService";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.pubsublite.proto.SubscribeRequest,
-          com.google.cloud.pubsublite.proto.SubscribeResponse>
-      getSubscribeMethod;
+  private static volatile io.grpc.MethodDescriptor getSubscribeMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Subscribe",
       requestType = com.google.cloud.pubsublite.proto.SubscribeRequest.class,
       responseType = com.google.cloud.pubsublite.proto.SubscribeResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.pubsublite.proto.SubscribeRequest,
-          com.google.cloud.pubsublite.proto.SubscribeResponse>
-      getSubscribeMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.pubsublite.proto.SubscribeRequest,
-            com.google.cloud.pubsublite.proto.SubscribeResponse>
-        getSubscribeMethod;
+  public static io.grpc.MethodDescriptor getSubscribeMethod() {
+    io.grpc.MethodDescriptor getSubscribeMethod;
     if ((getSubscribeMethod = SubscriberServiceGrpc.getSubscribeMethod) == null) {
       synchronized (SubscriberServiceGrpc.class) {
         if ((getSubscribeMethod = SubscriberServiceGrpc.getSubscribeMethod) == null) {
-          SubscriberServiceGrpc.getSubscribeMethod =
-              getSubscribeMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Subscribe"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.pubsublite.proto.SubscribeRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.pubsublite.proto.SubscribeResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new SubscriberServiceMethodDescriptorSupplier("Subscribe"))
-                      .build();
+          SubscriberServiceGrpc.getSubscribeMethod = getSubscribeMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Subscribe"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.pubsublite.proto.SubscribeRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.pubsublite.proto.SubscribeResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new SubscriberServiceMethodDescriptorSupplier("Subscribe"))
+              .build();
         }
       }
     }
     return getSubscribeMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static SubscriberServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public SubscriberServiceStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new SubscriberServiceStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public SubscriberServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new SubscriberServiceStub(channel, callOptions);
+        }
+      };
     return SubscriberServiceStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static SubscriberServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static SubscriberServiceBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public SubscriberServiceBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new SubscriberServiceBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public SubscriberServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new SubscriberServiceBlockingStub(channel, callOptions);
+        }
+      };
     return SubscriberServiceBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static SubscriberServiceFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static SubscriberServiceFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public SubscriberServiceFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new SubscriberServiceFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public SubscriberServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new SubscriberServiceFutureStub(channel, callOptions);
+        }
+      };
     return SubscriberServiceFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * The service that a subscriber client application uses to receive messages
    * from subscriptions.
@@ -136,41 +103,33 @@ public SubscriberServiceFutureStub newStub(
   public interface AsyncService {
 
     /**
-     *
-     *
      * 
      * Establishes a stream with the server for receiving messages.
      * 
*/ - default io.grpc.stub.StreamObserver - subscribe( - io.grpc.stub.StreamObserver - responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( - getSubscribeMethod(), responseObserver); + default io.grpc.stub.StreamObserver subscribe( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getSubscribeMethod(), responseObserver); } } /** * Base class for the server implementation of the service SubscriberService. - * *
    * The service that a subscriber client application uses to receive messages
    * from subscriptions.
    * 
*/ - public abstract static class SubscriberServiceImplBase + public static abstract class SubscriberServiceImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return SubscriberServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service SubscriberService. - * *
    * The service that a subscriber client application uses to receive messages
    * from subscriptions.
@@ -178,7 +137,8 @@ public final io.grpc.ServerServiceDefinition bindService() {
    */
   public static final class SubscriberServiceStub
       extends io.grpc.stub.AbstractAsyncStub {
-    private SubscriberServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private SubscriberServiceStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -189,16 +149,12 @@ protected SubscriberServiceStub build(
     }
 
     /**
-     *
-     *
      * 
      * Establishes a stream with the server for receiving messages.
      * 
*/ - public io.grpc.stub.StreamObserver - subscribe( - io.grpc.stub.StreamObserver - responseObserver) { + public io.grpc.stub.StreamObserver subscribe( + io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getSubscribeMethod(), getCallOptions()), responseObserver); } @@ -206,7 +162,6 @@ protected SubscriberServiceStub build( /** * A stub to allow clients to do synchronous rpc calls to service SubscriberService. - * *
    * The service that a subscriber client application uses to receive messages
    * from subscriptions.
@@ -228,7 +183,6 @@ protected SubscriberServiceBlockingStub build(
 
   /**
    * A stub to allow clients to do ListenableFuture-style rpc calls to service SubscriberService.
-   *
    * 
    * The service that a subscriber client application uses to receive messages
    * from subscriptions.
@@ -236,7 +190,8 @@ protected SubscriberServiceBlockingStub build(
    */
   public static final class SubscriberServiceFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private SubscriberServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private SubscriberServiceFutureStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -249,11 +204,11 @@ protected SubscriberServiceFutureStub build(
 
   private static final int METHODID_SUBSCRIBE = 0;
 
-  private static final class MethodHandlers
-      implements io.grpc.stub.ServerCalls.UnaryMethod,
-          io.grpc.stub.ServerCalls.ServerStreamingMethod,
-          io.grpc.stub.ServerCalls.ClientStreamingMethod,
-          io.grpc.stub.ServerCalls.BidiStreamingMethod {
+  private static final class MethodHandlers implements
+      io.grpc.stub.ServerCalls.UnaryMethod,
+      io.grpc.stub.ServerCalls.ServerStreamingMethod,
+      io.grpc.stub.ServerCalls.ClientStreamingMethod,
+      io.grpc.stub.ServerCalls.BidiStreamingMethod {
     private final AsyncService serviceImpl;
     private final int methodId;
 
@@ -277,10 +232,8 @@ public io.grpc.stub.StreamObserver invoke(
         io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_SUBSCRIBE:
-          return (io.grpc.stub.StreamObserver)
-              serviceImpl.subscribe(
-                  (io.grpc.stub.StreamObserver)
-                      responseObserver);
+          return (io.grpc.stub.StreamObserver) serviceImpl.subscribe(
+              (io.grpc.stub.StreamObserver) responseObserver);
         default:
           throw new AssertionError();
       }
@@ -290,18 +243,17 @@ public io.grpc.stub.StreamObserver invoke(
   public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
     return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
         .addMethod(
-            getSubscribeMethod(),
-            io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
-                new MethodHandlers<
-                    com.google.cloud.pubsublite.proto.SubscribeRequest,
-                    com.google.cloud.pubsublite.proto.SubscribeResponse>(
-                    service, METHODID_SUBSCRIBE)))
+          getSubscribeMethod(),
+          io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
+            new MethodHandlers<
+              com.google.cloud.pubsublite.proto.SubscribeRequest,
+              com.google.cloud.pubsublite.proto.SubscribeResponse>(
+                service, METHODID_SUBSCRIBE)))
         .build();
   }
 
-  private abstract static class SubscriberServiceBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
-          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private static abstract class SubscriberServiceBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     SubscriberServiceBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -343,12 +295,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
       synchronized (SubscriberServiceGrpc.class) {
         result = serviceDescriptor;
         if (result == null) {
-          serviceDescriptor =
-              result =
-                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
-                      .setSchemaDescriptor(new SubscriberServiceFileDescriptorSupplier())
-                      .addMethod(getSubscribeMethod())
-                      .build();
+          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+              .setSchemaDescriptor(new SubscriberServiceFileDescriptorSupplier())
+              .addMethod(getSubscribeMethod())
+              .build();
         }
       }
     }
diff --git a/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsServiceGrpc.java
new file mode 100644
index 000000000..7b36d6c03
--- /dev/null
+++ b/owl-bot-staging/v1/grpc-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsServiceGrpc.java
@@ -0,0 +1,523 @@
+package com.google.cloud.pubsublite.proto;
+
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+
+/**
+ * 
+ * This service allows users to get stats about messages in their topic.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/pubsublite/v1/topic_stats.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class TopicStatsServiceGrpc { + + private TopicStatsServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.pubsublite.v1.TopicStatsService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getComputeMessageStatsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ComputeMessageStats", + requestType = com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.class, + responseType = com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getComputeMessageStatsMethod() { + io.grpc.MethodDescriptor getComputeMessageStatsMethod; + if ((getComputeMessageStatsMethod = TopicStatsServiceGrpc.getComputeMessageStatsMethod) == null) { + synchronized (TopicStatsServiceGrpc.class) { + if ((getComputeMessageStatsMethod = TopicStatsServiceGrpc.getComputeMessageStatsMethod) == null) { + TopicStatsServiceGrpc.getComputeMessageStatsMethod = getComputeMessageStatsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComputeMessageStats")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.getDefaultInstance())) + .setSchemaDescriptor(new TopicStatsServiceMethodDescriptorSupplier("ComputeMessageStats")) + .build(); + } + } + } + return getComputeMessageStatsMethod; + } + + private static volatile io.grpc.MethodDescriptor getComputeHeadCursorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ComputeHeadCursor", + requestType = com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.class, + responseType = com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getComputeHeadCursorMethod() { + io.grpc.MethodDescriptor getComputeHeadCursorMethod; + if ((getComputeHeadCursorMethod = TopicStatsServiceGrpc.getComputeHeadCursorMethod) == null) { + synchronized (TopicStatsServiceGrpc.class) { + if ((getComputeHeadCursorMethod = TopicStatsServiceGrpc.getComputeHeadCursorMethod) == null) { + TopicStatsServiceGrpc.getComputeHeadCursorMethod = getComputeHeadCursorMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComputeHeadCursor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.getDefaultInstance())) + .setSchemaDescriptor(new TopicStatsServiceMethodDescriptorSupplier("ComputeHeadCursor")) + .build(); + } + } + } + return getComputeHeadCursorMethod; + } + + private static volatile io.grpc.MethodDescriptor getComputeTimeCursorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ComputeTimeCursor", + requestType = com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.class, + responseType = com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getComputeTimeCursorMethod() { + io.grpc.MethodDescriptor getComputeTimeCursorMethod; + if ((getComputeTimeCursorMethod = TopicStatsServiceGrpc.getComputeTimeCursorMethod) == null) { + synchronized (TopicStatsServiceGrpc.class) { + if ((getComputeTimeCursorMethod = TopicStatsServiceGrpc.getComputeTimeCursorMethod) == null) { + TopicStatsServiceGrpc.getComputeTimeCursorMethod = getComputeTimeCursorMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComputeTimeCursor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.getDefaultInstance())) + .setSchemaDescriptor(new TopicStatsServiceMethodDescriptorSupplier("ComputeTimeCursor")) + .build(); + } + } + } + return getComputeTimeCursorMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static TopicStatsServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TopicStatsServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TopicStatsServiceStub(channel, callOptions); + } + }; + return TopicStatsServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static TopicStatsServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TopicStatsServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TopicStatsServiceBlockingStub(channel, callOptions); + } + }; + return TopicStatsServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static TopicStatsServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public TopicStatsServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TopicStatsServiceFutureStub(channel, callOptions); + } + }; + return TopicStatsServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * This service allows users to get stats about messages in their topic.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Compute statistics about a range of messages in a given topic and
+     * partition.
+     * 
+ */ + default void computeMessageStats(com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getComputeMessageStatsMethod(), responseObserver); + } + + /** + *
+     * Compute the head cursor for the partition.
+     * The head cursor's offset is guaranteed to be less than or equal to all
+     * messages which have not yet been acknowledged as published, and
+     * greater than the offset of any message whose publish has already
+     * been acknowledged. It is zero if there have never been messages in the
+     * partition.
+     * 
+ */ + default void computeHeadCursor(com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getComputeHeadCursorMethod(), responseObserver); + } + + /** + *
+     * Compute the corresponding cursor for a publish or event time in a topic
+     * partition.
+     * 
+ */ + default void computeTimeCursor(com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getComputeTimeCursorMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service TopicStatsService. + *
+   * This service allows users to get stats about messages in their topic.
+   * 
+ */ + public static abstract class TopicStatsServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return TopicStatsServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service TopicStatsService. + *
+   * This service allows users to get stats about messages in their topic.
+   * 
+ */ + public static final class TopicStatsServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private TopicStatsServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TopicStatsServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TopicStatsServiceStub(channel, callOptions); + } + + /** + *
+     * Compute statistics about a range of messages in a given topic and
+     * partition.
+     * 
+ */ + public void computeMessageStats(com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getComputeMessageStatsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Compute the head cursor for the partition.
+     * The head cursor's offset is guaranteed to be less than or equal to all
+     * messages which have not yet been acknowledged as published, and
+     * greater than the offset of any message whose publish has already
+     * been acknowledged. It is zero if there have never been messages in the
+     * partition.
+     * 
+ */ + public void computeHeadCursor(com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getComputeHeadCursorMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Compute the corresponding cursor for a publish or event time in a topic
+     * partition.
+     * 
+ */ + public void computeTimeCursor(com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getComputeTimeCursorMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service TopicStatsService. + *
+   * This service allows users to get stats about messages in their topic.
+   * 
+ */ + public static final class TopicStatsServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private TopicStatsServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TopicStatsServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TopicStatsServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Compute statistics about a range of messages in a given topic and
+     * partition.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse computeMessageStats(com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getComputeMessageStatsMethod(), getCallOptions(), request); + } + + /** + *
+     * Compute the head cursor for the partition.
+     * The head cursor's offset is guaranteed to be less than or equal to all
+     * messages which have not yet been acknowledged as published, and
+     * greater than the offset of any message whose publish has already
+     * been acknowledged. It is zero if there have never been messages in the
+     * partition.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse computeHeadCursor(com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getComputeHeadCursorMethod(), getCallOptions(), request); + } + + /** + *
+     * Compute the corresponding cursor for a publish or event time in a topic
+     * partition.
+     * 
+ */ + public com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse computeTimeCursor(com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getComputeTimeCursorMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service TopicStatsService. + *
+   * This service allows users to get stats about messages in their topic.
+   * 
+ */ + public static final class TopicStatsServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private TopicStatsServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected TopicStatsServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new TopicStatsServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Compute statistics about a range of messages in a given topic and
+     * partition.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture computeMessageStats( + com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getComputeMessageStatsMethod(), getCallOptions()), request); + } + + /** + *
+     * Compute the head cursor for the partition.
+     * The head cursor's offset is guaranteed to be less than or equal to all
+     * messages which have not yet been acknowledged as published, and
+     * greater than the offset of any message whose publish has already
+     * been acknowledged. It is zero if there have never been messages in the
+     * partition.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture computeHeadCursor( + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getComputeHeadCursorMethod(), getCallOptions()), request); + } + + /** + *
+     * Compute the corresponding cursor for a publish or event time in a topic
+     * partition.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture computeTimeCursor( + com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getComputeTimeCursorMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_COMPUTE_MESSAGE_STATS = 0; + private static final int METHODID_COMPUTE_HEAD_CURSOR = 1; + private static final int METHODID_COMPUTE_TIME_CURSOR = 2; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_COMPUTE_MESSAGE_STATS: + serviceImpl.computeMessageStats((com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_COMPUTE_HEAD_CURSOR: + serviceImpl.computeHeadCursor((com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_COMPUTE_TIME_CURSOR: + serviceImpl.computeTimeCursor((com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getComputeMessageStatsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest, + com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse>( + service, METHODID_COMPUTE_MESSAGE_STATS))) + .addMethod( + getComputeHeadCursorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest, + com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse>( + service, METHODID_COMPUTE_HEAD_CURSOR))) + .addMethod( + getComputeTimeCursorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest, + com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse>( + service, METHODID_COMPUTE_TIME_CURSOR))) + .build(); + } + + private static abstract class TopicStatsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + TopicStatsServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.pubsublite.proto.TopicStatsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("TopicStatsService"); + } + } + + private static final class TopicStatsServiceFileDescriptorSupplier + extends TopicStatsServiceBaseDescriptorSupplier { + TopicStatsServiceFileDescriptorSupplier() {} + } + + private static final class TopicStatsServiceMethodDescriptorSupplier + extends TopicStatsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + TopicStatsServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (TopicStatsServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TopicStatsServiceFileDescriptorSupplier()) + .addMethod(getComputeMessageStatsMethod()) + .addMethod(getComputeHeadCursorMethod()) + .addMethod(getComputeTimeCursorMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java new file mode 100644 index 000000000..b42c98ddb --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java @@ -0,0 +1,554 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.pubsublite.proto; + +public final class AdminProto { + private AdminProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n&google/cloud/pubsublite/v1/admin.proto" + + "\022\032google.cloud.pubsublite.v1\032\034google/api" + + "/annotations.proto\032\027google/api/client.pr" + + "oto\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\032\'google/cloud/pu" + + "bsublite/v1/common.proto\032#google/longrun" + + "ning/operations.proto\032\033google/protobuf/e" + + "mpty.proto\032 google/protobuf/field_mask.p" + + "roto\032\037google/protobuf/timestamp.proto\"\235\001" + + "\n\022CreateTopicRequest\0229\n\006parent\030\001 \001(\tB)\340A" + + "\002\372A#\n!locations.googleapis.com/Location\022" + + "5\n\005topic\030\002 \001(\0132!.google.cloud.pubsublite" + + ".v1.TopicB\003\340A\002\022\025\n\010topic_id\030\003 \001(\tB\003\340A\002\"H\n" + + "\017GetTopicRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037" + + "pubsublite.googleapis.com/Topic\"R\n\031GetTo" + + "picPartitionsRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372" + + "A!\n\037pubsublite.googleapis.com/Topic\"*\n\017T" + + "opicPartitions\022\027\n\017partition_count\030\001 \001(\003\"" + + "u\n\021ListTopicsRequest\0229\n\006parent\030\001 \001(\tB)\340A" + + "\002\372A#\n!locations.googleapis.com/Location\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"`" + + "\n\022ListTopicsResponse\0221\n\006topics\030\001 \003(\0132!.g" + + "oogle.cloud.pubsublite.v1.Topic\022\027\n\017next_" + + "page_token\030\002 \001(\t\"\201\001\n\022UpdateTopicRequest\022" + + "5\n\005topic\030\001 \001(\0132!.google.cloud.pubsublite" + + ".v1.TopicB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.go" + + "ogle.protobuf.FieldMaskB\003\340A\002\"K\n\022DeleteTo" + + "picRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037pubsub" + + "lite.googleapis.com/Topic\"}\n\035ListTopicSu" + + "bscriptionsRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!" + + "\n\037pubsublite.googleapis.com/Topic\022\021\n\tpag" + + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"P\n\036List" + + "TopicSubscriptionsResponse\022\025\n\rsubscripti" + + "ons\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"\317\001\n\031C" + + "reateSubscriptionRequest\0229\n\006parent\030\001 \001(\t" + + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + + "ion\022C\n\014subscription\030\002 \001(\0132(.google.cloud" + + ".pubsublite.v1.SubscriptionB\003\340A\002\022\034\n\017subs" + + "cription_id\030\003 \001(\tB\003\340A\002\022\024\n\014skip_backlog\030\004" + + " \001(\010\"V\n\026GetSubscriptionRequest\022<\n\004name\030\001" + + " \001(\tB.\340A\002\372A(\n&pubsublite.googleapis.com/" + + "Subscription\"|\n\030ListSubscriptionsRequest" + + "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goog" + + "leapis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022" + + "\n\npage_token\030\003 \001(\t\"u\n\031ListSubscriptionsR" + + "esponse\022?\n\rsubscriptions\030\001 \003(\0132(.google." + + "cloud.pubsublite.v1.Subscription\022\027\n\017next" + + "_page_token\030\002 \001(\t\"\226\001\n\031UpdateSubscription" + + "Request\022C\n\014subscription\030\001 \001(\0132(.google.c" + + "loud.pubsublite.v1.SubscriptionB\003\340A\002\0224\n\013" + + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" + + "dMaskB\003\340A\002\"Y\n\031DeleteSubscriptionRequest\022" + + "<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&pubsublite.google" + + "apis.com/Subscription\"\272\002\n\027SeekSubscripti" + + "onRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&pubsubl" + + "ite.googleapis.com/Subscription\022W\n\014named" + + "_target\030\002 \001(\0162?.google.cloud.pubsublite." + + "v1.SeekSubscriptionRequest.NamedTargetH\000" + + "\022=\n\013time_target\030\003 \001(\0132&.google.cloud.pub" + + "sublite.v1.TimeTargetH\000\"?\n\013NamedTarget\022\034" + + "\n\030NAMED_TARGET_UNSPECIFIED\020\000\022\010\n\004TAIL\020\001\022\010" + + "\n\004HEAD\020\002B\010\n\006target\"\032\n\030SeekSubscriptionRe" + + "sponse\"\220\001\n\021OperationMetadata\022/\n\013create_t" + + "ime\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n" + + "\010end_time\030\002 \001(\0132\032.google.protobuf.Timest" + + "amp\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t\"\265\001\n\030Cr" + + "eateReservationRequest\0229\n\006parent\030\001 \001(\tB)" + + "\340A\002\372A#\n!locations.googleapis.com/Locatio" + + "n\022A\n\013reservation\030\002 \001(\0132\'.google.cloud.pu" + + "bsublite.v1.ReservationB\003\340A\002\022\033\n\016reservat" + + "ion_id\030\003 \001(\tB\003\340A\002\"T\n\025GetReservationReque" + + "st\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%pubsublite.goo" + + "gleapis.com/Reservation\"{\n\027ListReservati" + + "onsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loca" + + "tions.googleapis.com/Location\022\021\n\tpage_si" + + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"r\n\030ListRese" + + "rvationsResponse\022=\n\014reservations\030\001 \003(\0132\'" + + ".google.cloud.pubsublite.v1.Reservation\022" + + "\027\n\017next_page_token\030\002 \001(\t\"\223\001\n\030UpdateReser" + + "vationRequest\022A\n\013reservation\030\001 \001(\0132\'.goo" + + "gle.cloud.pubsublite.v1.ReservationB\003\340A\002" + + "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." + + "FieldMaskB\003\340A\002\"W\n\030DeleteReservationReque" + + "st\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%pubsublite.goo" + + "gleapis.com/Reservation\"\202\001\n\034ListReservat" + + "ionTopicsRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%" + + "pubsublite.googleapis.com/Reservation\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"H\n\035" + + "ListReservationTopicsResponse\022\016\n\006topics\030" + + "\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t2\257\036\n\014Admin" + + "Service\022\271\001\n\013CreateTopic\022..google.cloud.p" + + "ubsublite.v1.CreateTopicRequest\032!.google" + + ".cloud.pubsublite.v1.Topic\"W\332A\025parent,to" + + "pic,topic_id\202\323\344\223\0029\"0/v1/admin/{parent=pr" + + "ojects/*/locations/*}/topics:\005topic\022\233\001\n\010" + + "GetTopic\022+.google.cloud.pubsublite.v1.Ge" + + "tTopicRequest\032!.google.cloud.pubsublite." + + "v1.Topic\"?\332A\004name\202\323\344\223\0022\0220/v1/admin/{name" + + "=projects/*/locations/*/topics/*}\022\304\001\n\022Ge" + + "tTopicPartitions\0225.google.cloud.pubsubli" + + "te.v1.GetTopicPartitionsRequest\032+.google" + + ".cloud.pubsublite.v1.TopicPartitions\"J\332A" + + "\004name\202\323\344\223\002=\022;/v1/admin/{name=projects/*/" + + "locations/*/topics/*}/partitions\022\256\001\n\nLis" + + "tTopics\022-.google.cloud.pubsublite.v1.Lis" + + "tTopicsRequest\032..google.cloud.pubsublite" + + ".v1.ListTopicsResponse\"A\332A\006parent\202\323\344\223\0022\022" + + "0/v1/admin/{parent=projects/*/locations/" + + "*}/topics\022\273\001\n\013UpdateTopic\022..google.cloud" + + ".pubsublite.v1.UpdateTopicRequest\032!.goog" + + "le.cloud.pubsublite.v1.Topic\"Y\332A\021topic,u" + + "pdate_mask\202\323\344\223\002?26/v1/admin/{topic.name=" + + "projects/*/locations/*/topics/*}:\005topic\022" + + "\226\001\n\013DeleteTopic\022..google.cloud.pubsublit" + + "e.v1.DeleteTopicRequest\032\026.google.protobu" + + "f.Empty\"?\332A\004name\202\323\344\223\0022*0/v1/admin/{name=" + + "projects/*/locations/*/topics/*}\022\336\001\n\026Lis" + + "tTopicSubscriptions\0229.google.cloud.pubsu" + + "blite.v1.ListTopicSubscriptionsRequest\032:" + + ".google.cloud.pubsublite.v1.ListTopicSub" + + "scriptionsResponse\"M\332A\004name\202\323\344\223\002@\022>/v1/a" + + "dmin/{name=projects/*/locations/*/topics" + + "/*}/subscriptions\022\352\001\n\022CreateSubscription" + + "\0225.google.cloud.pubsublite.v1.CreateSubs" + + "criptionRequest\032(.google.cloud.pubsublit" + + "e.v1.Subscription\"s\332A#parent,subscriptio" + + "n,subscription_id\202\323\344\223\002G\"7/v1/admin/{pare" + + "nt=projects/*/locations/*}/subscriptions" + + ":\014subscription\022\267\001\n\017GetSubscription\0222.goo" + + "gle.cloud.pubsublite.v1.GetSubscriptionR" + + "equest\032(.google.cloud.pubsublite.v1.Subs" + + "cription\"F\332A\004name\202\323\344\223\0029\0227/v1/admin/{name" + + "=projects/*/locations/*/subscriptions/*}" + + "\022\312\001\n\021ListSubscriptions\0224.google.cloud.pu" + + "bsublite.v1.ListSubscriptionsRequest\0325.g" + + "oogle.cloud.pubsublite.v1.ListSubscripti" + + "onsResponse\"H\332A\006parent\202\323\344\223\0029\0227/v1/admin/" + + "{parent=projects/*/locations/*}/subscrip" + + "tions\022\354\001\n\022UpdateSubscription\0225.google.cl" + + "oud.pubsublite.v1.UpdateSubscriptionRequ" + + "est\032(.google.cloud.pubsublite.v1.Subscri" + + "ption\"u\332A\030subscription,update_mask\202\323\344\223\002T" + + "2D/v1/admin/{subscription.name=projects/" + + "*/locations/*/subscriptions/*}:\014subscrip" + + "tion\022\253\001\n\022DeleteSubscription\0225.google.clo" + + "ud.pubsublite.v1.DeleteSubscriptionReque" + + "st\032\026.google.protobuf.Empty\"F\332A\004name\202\323\344\223\002" + + "9*7/v1/admin/{name=projects/*/locations/" + + "*/subscriptions/*}\022\337\001\n\020SeekSubscription\022" + + "3.google.cloud.pubsublite.v1.SeekSubscri" + + "ptionRequest\032\035.google.longrunning.Operat" + + "ion\"w\312A-\n\030SeekSubscriptionResponse\022\021Oper" + + "ationMetadata\202\323\344\223\002A\"cloud.google.com/go/pubsub" + + "lite/apiv1/pubsublitepb;pubsublitepb\252\002\032G" + + "oogle.Cloud.PubSubLite.V1\312\002\032Google\\Cloud" + + "\\PubSubLite\\V1\352\002\035Google::Cloud::PubSubLi" + + "te::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor, + new java.lang.String[] { "Parent", "Topic", "TopicId", }); + internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor, + new java.lang.String[] { "PartitionCount", }); + internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor, + new java.lang.String[] { "Topics", "NextPageToken", }); + internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor, + new java.lang.String[] { "Topic", "UpdateMask", }); + internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor, + new java.lang.String[] { "Name", "PageSize", "PageToken", }); + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor, + new java.lang.String[] { "Subscriptions", "NextPageToken", }); + internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor, + new java.lang.String[] { "Parent", "Subscription", "SubscriptionId", "SkipBacklog", }); + internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor, + new java.lang.String[] { "Subscriptions", "NextPageToken", }); + internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor, + new java.lang.String[] { "Subscription", "UpdateMask", }); + internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor, + new java.lang.String[] { "Name", "NamedTarget", "TimeTarget", "Target", }); + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", }); + internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor, + new java.lang.String[] { "Parent", "Reservation", "ReservationId", }); + internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor, + new java.lang.String[] { "Reservations", "NextPageToken", }); + internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor, + new java.lang.String[] { "Reservation", "UpdateMask", }); + internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor, + new java.lang.String[] { "Name", "PageSize", "PageToken", }); + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor, + new java.lang.String[] { "Topics", "NextPageToken", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValues.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValues.java similarity index 67% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValues.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValues.java index fb1fecc24..1e382d433 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValues.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValues.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/common.proto @@ -20,92 +5,79 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * The values associated with a key of an attribute.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.AttributeValues} */ -public final class AttributeValues extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AttributeValues extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.AttributeValues) AttributeValuesOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AttributeValues.newBuilder() to construct. private AttributeValues(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AttributeValues() { values_ = emptyList(com.google.protobuf.ByteString.class); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AttributeValues(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.AttributeValues.class, - com.google.cloud.pubsublite.proto.AttributeValues.Builder.class); + com.google.cloud.pubsublite.proto.AttributeValues.class, com.google.cloud.pubsublite.proto.AttributeValues.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.Internal.ProtobufList values_ = emptyList(com.google.protobuf.ByteString.class); /** - * - * *
    * The list of values associated with a key.
    * 
* * repeated bytes values = 1; - * * @return A list containing the values. */ @java.lang.Override - public java.util.List getValuesList() { + public java.util.List + getValuesList() { return values_; } /** - * - * *
    * The list of values associated with a key.
    * 
* * repeated bytes values = 1; - * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** - * - * *
    * The list of values associated with a key.
    * 
* * repeated bytes values = 1; - * * @param index The index of the element to return. * @return The values at the given index. */ @@ -114,7 +86,6 @@ public com.google.protobuf.ByteString getValues(int index) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -126,7 +97,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < values_.size(); i++) { output.writeBytes(1, values_.get(i)); } @@ -142,7 +114,8 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < values_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(values_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(values_.get(i)); } size += dataSize; size += 1 * getValuesList().size(); @@ -155,15 +128,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.AttributeValues)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.AttributeValues other = - (com.google.cloud.pubsublite.proto.AttributeValues) obj; + com.google.cloud.pubsublite.proto.AttributeValues other = (com.google.cloud.pubsublite.proto.AttributeValues) obj; - if (!getValuesList().equals(other.getValuesList())) return false; + if (!getValuesList() + .equals(other.getValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -185,135 +158,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.AttributeValues parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.AttributeValues parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.AttributeValues parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.AttributeValues parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.AttributeValues parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.AttributeValues parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.AttributeValues parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.AttributeValues parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.AttributeValues parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.AttributeValues parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.AttributeValues parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.AttributeValues parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.AttributeValues parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.AttributeValues parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.pubsublite.proto.AttributeValues prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The values associated with a key of an attribute.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.AttributeValues} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.AttributeValues) com.google.cloud.pubsublite.proto.AttributeValuesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.AttributeValues.class, - com.google.cloud.pubsublite.proto.AttributeValues.Builder.class); + com.google.cloud.pubsublite.proto.AttributeValues.class, com.google.cloud.pubsublite.proto.AttributeValues.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.AttributeValues.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor; } @java.lang.Override @@ -344,11 +313,8 @@ public com.google.cloud.pubsublite.proto.AttributeValues build() { @java.lang.Override public com.google.cloud.pubsublite.proto.AttributeValues buildPartial() { - com.google.cloud.pubsublite.proto.AttributeValues result = - new com.google.cloud.pubsublite.proto.AttributeValues(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.AttributeValues result = new com.google.cloud.pubsublite.proto.AttributeValues(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -365,39 +331,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.AttributeValues res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.AttributeValues) { - return mergeFrom((com.google.cloud.pubsublite.proto.AttributeValues) other); + return mergeFrom((com.google.cloud.pubsublite.proto.AttributeValues)other); } else { super.mergeFrom(other); return this; @@ -405,8 +370,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.AttributeValues other) { - if (other == com.google.cloud.pubsublite.proto.AttributeValues.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.AttributeValues.getDefaultInstance()) return this; if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; @@ -444,20 +408,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.protobuf.ByteString v = input.readBytes(); - ensureValuesIsMutable(); - values_.add(v); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.protobuf.ByteString v = input.readBytes(); + ensureValuesIsMutable(); + values_.add(v); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -467,12 +429,9 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.Internal.ProtobufList values_ = - emptyList(com.google.protobuf.ByteString.class); - + private com.google.protobuf.Internal.ProtobufList values_ = emptyList(com.google.protobuf.ByteString.class); private void ensureValuesIsMutable() { if (!values_.isModifiable()) { values_ = makeMutableCopy(values_); @@ -480,43 +439,35 @@ private void ensureValuesIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
      * The list of values associated with a key.
      * 
* * repeated bytes values = 1; - * * @return A list containing the values. */ - public java.util.List getValuesList() { + public java.util.List + getValuesList() { values_.makeImmutable(); return values_; } /** - * - * *
      * The list of values associated with a key.
      * 
* * repeated bytes values = 1; - * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** - * - * *
      * The list of values associated with a key.
      * 
* * repeated bytes values = 1; - * * @param index The index of the element to return. * @return The values at the given index. */ @@ -524,22 +475,18 @@ public com.google.protobuf.ByteString getValues(int index) { return values_.get(index); } /** - * - * *
      * The list of values associated with a key.
      * 
* * repeated bytes values = 1; - * * @param index The index to set the value at. * @param value The values to set. * @return This builder for chaining. */ - public Builder setValues(int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValues( + int index, com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.set(index, value); bitField0_ |= 0x00000001; @@ -547,21 +494,16 @@ public Builder setValues(int index, com.google.protobuf.ByteString value) { return this; } /** - * - * *
      * The list of values associated with a key.
      * 
* * repeated bytes values = 1; - * * @param value The values to add. * @return This builder for chaining. */ public Builder addValues(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); bitField0_ |= 0x00000001; @@ -569,34 +511,29 @@ public Builder addValues(com.google.protobuf.ByteString value) { return this; } /** - * - * *
      * The list of values associated with a key.
      * 
* * repeated bytes values = 1; - * * @param values The values to add. * @return This builder for chaining. */ public Builder addAllValues( java.lang.Iterable values) { ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The list of values associated with a key.
      * 
* * repeated bytes values = 1; - * * @return This builder for chaining. */ public Builder clearValues() { @@ -605,9 +542,9 @@ public Builder clearValues() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -617,12 +554,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.AttributeValues) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.AttributeValues) private static final com.google.cloud.pubsublite.proto.AttributeValues DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.AttributeValues(); } @@ -631,27 +568,27 @@ public static com.google.cloud.pubsublite.proto.AttributeValues getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AttributeValues parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AttributeValues parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -666,4 +603,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.AttributeValues getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValuesOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValuesOrBuilder.java similarity index 60% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValuesOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValuesOrBuilder.java index b82863e13..876d7c274 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValuesOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AttributeValuesOrBuilder.java @@ -1,62 +1,37 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/common.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface AttributeValuesOrBuilder - extends +public interface AttributeValuesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.AttributeValues) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of values associated with a key.
    * 
* * repeated bytes values = 1; - * * @return A list containing the values. */ java.util.List getValuesList(); /** - * - * *
    * The list of values associated with a key.
    * 
* * repeated bytes values = 1; - * * @return The count of values. */ int getValuesCount(); /** - * - * *
    * The list of values associated with a key.
    * 
* * repeated bytes values = 1; - * * @param index The index of the element to return. * @return The values at the given index. */ diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequest.java similarity index 68% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequest.java index 0014bd579..e19d5a1b5 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto @@ -20,63 +5,55 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for CommitCursor.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CommitCursorRequest} */ -public final class CommitCursorRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CommitCursorRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.CommitCursorRequest) CommitCursorRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CommitCursorRequest.newBuilder() to construct. private CommitCursorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CommitCursorRequest() { subscription_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CommitCursorRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CommitCursorRequest.class, - com.google.cloud.pubsublite.proto.CommitCursorRequest.Builder.class); + com.google.cloud.pubsublite.proto.CommitCursorRequest.class, com.google.cloud.pubsublite.proto.CommitCursorRequest.Builder.class); } private int bitField0_; public static final int SUBSCRIPTION_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; /** - * - * *
    * The subscription for which to update the cursor.
    * 
* * string subscription = 1; - * * @return The subscription. */ @java.lang.Override @@ -85,29 +62,29 @@ public java.lang.String getSubscription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; } } /** - * - * *
    * The subscription for which to update the cursor.
    * 
* * string subscription = 1; - * * @return The bytes for subscription. */ @java.lang.Override - public com.google.protobuf.ByteString getSubscriptionBytes() { + public com.google.protobuf.ByteString + getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subscription_ = b; return b; } else { @@ -118,15 +95,12 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public static final int PARTITION_FIELD_NUMBER = 2; private long partition_ = 0L; /** - * - * *
    * The partition for which to update the cursor. Partitions are zero indexed,
    * so `partition` must be in the range [0, topic.num_partitions).
    * 
* * int64 partition = 2; - * * @return The partition. */ @java.lang.Override @@ -137,14 +111,11 @@ public long getPartition() { public static final int CURSOR_FIELD_NUMBER = 3; private com.google.cloud.pubsublite.proto.Cursor cursor_; /** - * - * *
    * The new value for the committed cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 3; - * * @return Whether the cursor field is set. */ @java.lang.Override @@ -152,25 +123,18 @@ public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The new value for the committed cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 3; - * * @return The cursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getCursor() { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } /** - * - * *
    * The new value for the committed cursor.
    * 
@@ -179,13 +143,10 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() { */ @java.lang.Override public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -197,7 +158,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); } @@ -220,10 +182,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } if (partition_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, partition_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, partition_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCursor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCursor()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -233,19 +197,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.CommitCursorRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.CommitCursorRequest other = - (com.google.cloud.pubsublite.proto.CommitCursorRequest) obj; + com.google.cloud.pubsublite.proto.CommitCursorRequest other = (com.google.cloud.pubsublite.proto.CommitCursorRequest) obj; - if (!getSubscription().equals(other.getSubscription())) return false; - if (getPartition() != other.getPartition()) return false; + if (!getSubscription() + .equals(other.getSubscription())) return false; + if (getPartition() + != other.getPartition()) return false; if (hasCursor() != other.hasCursor()) return false; if (hasCursor()) { - if (!getCursor().equals(other.getCursor())) return false; + if (!getCursor() + .equals(other.getCursor())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -261,7 +227,8 @@ public int hashCode() { hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getSubscription().hashCode(); hash = (37 * hash) + PARTITION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartition()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPartition()); if (hasCursor()) { hash = (37 * hash) + CURSOR_FIELD_NUMBER; hash = (53 * hash) + getCursor().hashCode(); @@ -272,127 +239,119 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.CommitCursorRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.CommitCursorRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.CommitCursorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.CommitCursorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.CommitCursorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.CommitCursorRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.CommitCursorRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.CommitCursorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.CommitCursorRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.CommitCursorRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.CommitCursorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.CommitCursorRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.CommitCursorRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.CommitCursorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.CommitCursorRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.CommitCursorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for CommitCursor.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CommitCursorRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.CommitCursorRequest) com.google.cloud.pubsublite.proto.CommitCursorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CommitCursorRequest.class, - com.google.cloud.pubsublite.proto.CommitCursorRequest.Builder.class); + com.google.cloud.pubsublite.proto.CommitCursorRequest.class, com.google.cloud.pubsublite.proto.CommitCursorRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.CommitCursorRequest.newBuilder() @@ -400,17 +359,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCursorFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -426,9 +385,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor; } @java.lang.Override @@ -447,11 +406,8 @@ public com.google.cloud.pubsublite.proto.CommitCursorRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.CommitCursorRequest buildPartial() { - com.google.cloud.pubsublite.proto.CommitCursorRequest result = - new com.google.cloud.pubsublite.proto.CommitCursorRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.CommitCursorRequest result = new com.google.cloud.pubsublite.proto.CommitCursorRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -466,7 +422,9 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CommitCursorRequest } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build(); + result.cursor_ = cursorBuilder_ == null + ? cursor_ + : cursorBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -476,39 +434,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CommitCursorRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.CommitCursorRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.CommitCursorRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.CommitCursorRequest)other); } else { super.mergeFrom(other); return this; @@ -516,8 +473,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.CommitCursorRequest other) { - if (other == com.google.cloud.pubsublite.proto.CommitCursorRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.CommitCursorRequest.getDefaultInstance()) return this; if (!other.getSubscription().isEmpty()) { subscription_ = other.subscription_; bitField0_ |= 0x00000001; @@ -555,31 +511,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - subscription_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - partition_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - input.readMessage(getCursorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + subscription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + partition_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getCursorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -589,25 +543,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object subscription_ = ""; /** - * - * *
      * The subscription for which to update the cursor.
      * 
* * string subscription = 1; - * * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; @@ -616,21 +567,20 @@ public java.lang.String getSubscription() { } } /** - * - * *
      * The subscription for which to update the cursor.
      * 
* * string subscription = 1; - * * @return The bytes for subscription. */ - public com.google.protobuf.ByteString getSubscriptionBytes() { + public com.google.protobuf.ByteString + getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subscription_ = b; return b; } else { @@ -638,35 +588,28 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * The subscription for which to update the cursor.
      * 
* * string subscription = 1; - * * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubscription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } subscription_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The subscription for which to update the cursor.
      * 
* * string subscription = 1; - * * @return This builder for chaining. */ public Builder clearSubscription() { @@ -676,21 +619,17 @@ public Builder clearSubscription() { return this; } /** - * - * *
      * The subscription for which to update the cursor.
      * 
* * string subscription = 1; - * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subscription_ = value; bitField0_ |= 0x00000001; @@ -698,17 +637,14 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { return this; } - private long partition_; + private long partition_ ; /** - * - * *
      * The partition for which to update the cursor. Partitions are zero indexed,
      * so `partition` must be in the range [0, topic.num_partitions).
      * 
* * int64 partition = 2; - * * @return The partition. */ @java.lang.Override @@ -716,15 +652,12 @@ public long getPartition() { return partition_; } /** - * - * *
      * The partition for which to update the cursor. Partitions are zero indexed,
      * so `partition` must be in the range [0, topic.num_partitions).
      * 
* * int64 partition = 2; - * * @param value The partition to set. * @return This builder for chaining. */ @@ -736,15 +669,12 @@ public Builder setPartition(long value) { return this; } /** - * - * *
      * The partition for which to update the cursor. Partitions are zero indexed,
      * so `partition` must be in the range [0, topic.num_partitions).
      * 
* * int64 partition = 2; - * * @return This builder for chaining. */ public Builder clearPartition() { @@ -756,47 +686,34 @@ public Builder clearPartition() { private com.google.cloud.pubsublite.proto.Cursor cursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> - cursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> cursorBuilder_; /** - * - * *
      * The new value for the committed cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 3; - * * @return Whether the cursor field is set. */ public boolean hasCursor() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The new value for the committed cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 3; - * * @return The cursor. */ public com.google.cloud.pubsublite.proto.Cursor getCursor() { if (cursorBuilder_ == null) { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } else { return cursorBuilder_.getMessage(); } } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -817,15 +734,14 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The new value for the committed cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 3; */ - public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { + public Builder setCursor( + com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { if (cursorBuilder_ == null) { cursor_ = builderForValue.build(); } else { @@ -836,8 +752,6 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde return this; } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -846,9 +760,9 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde */ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { if (cursorBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && cursor_ != null - && cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + cursor_ != null && + cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { getCursorBuilder().mergeFrom(value); } else { cursor_ = value; @@ -863,8 +777,6 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -882,8 +794,6 @@ public Builder clearCursor() { return this; } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -896,8 +806,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() { return getCursorFieldBuilder().getBuilder(); } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -908,14 +816,11 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { if (cursorBuilder_ != null) { return cursorBuilder_.getMessageOrBuilder(); } else { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? + com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -923,24 +828,21 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { * .google.cloud.pubsublite.v1.Cursor cursor = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> getCursorFieldBuilder() { if (cursorBuilder_ == null) { - cursorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder>( - getCursor(), getParentForChildren(), isClean()); + cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>( + getCursor(), + getParentForChildren(), + isClean()); cursor_ = null; } return cursorBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -950,12 +852,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.CommitCursorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.CommitCursorRequest) private static final com.google.cloud.pubsublite.proto.CommitCursorRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.CommitCursorRequest(); } @@ -964,27 +866,27 @@ public static com.google.cloud.pubsublite.proto.CommitCursorRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommitCursorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommitCursorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -999,4 +901,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.CommitCursorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequestOrBuilder.java similarity index 67% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequestOrBuilder.java index 192bb4a1e..c708f80e4 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorRequestOrBuilder.java @@ -1,95 +1,63 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface CommitCursorRequestOrBuilder - extends +public interface CommitCursorRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.CommitCursorRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The subscription for which to update the cursor.
    * 
* * string subscription = 1; - * * @return The subscription. */ java.lang.String getSubscription(); /** - * - * *
    * The subscription for which to update the cursor.
    * 
* * string subscription = 1; - * * @return The bytes for subscription. */ - com.google.protobuf.ByteString getSubscriptionBytes(); + com.google.protobuf.ByteString + getSubscriptionBytes(); /** - * - * *
    * The partition for which to update the cursor. Partitions are zero indexed,
    * so `partition` must be in the range [0, topic.num_partitions).
    * 
* * int64 partition = 2; - * * @return The partition. */ long getPartition(); /** - * - * *
    * The new value for the committed cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 3; - * * @return Whether the cursor field is set. */ boolean hasCursor(); /** - * - * *
    * The new value for the committed cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 3; - * * @return The cursor. */ com.google.cloud.pubsublite.proto.Cursor getCursor(); /** - * - * *
    * The new value for the committed cursor.
    * 
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponse.java similarity index 61% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponse.java index 3feeda5be..563c1d325 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponse.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto @@ -20,49 +5,45 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response for CommitCursor.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CommitCursorResponse} */ -public final class CommitCursorResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CommitCursorResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.CommitCursorResponse) CommitCursorResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CommitCursorResponse.newBuilder() to construct. private CommitCursorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CommitCursorResponse() {} + private CommitCursorResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CommitCursorResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CommitCursorResponse.class, - com.google.cloud.pubsublite.proto.CommitCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.CommitCursorResponse.class, com.google.cloud.pubsublite.proto.CommitCursorResponse.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -74,7 +55,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -92,13 +74,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.CommitCursorResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.CommitCursorResponse other = - (com.google.cloud.pubsublite.proto.CommitCursorResponse) obj; + com.google.cloud.pubsublite.proto.CommitCursorResponse other = (com.google.cloud.pubsublite.proto.CommitCursorResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -117,136 +98,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.CommitCursorResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.CommitCursorResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.CommitCursorResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.CommitCursorResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.CommitCursorResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.CommitCursorResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.CommitCursorResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.CommitCursorResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.CommitCursorResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.CommitCursorResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.CommitCursorResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.CommitCursorResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.CommitCursorResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.CommitCursorResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.CommitCursorResponse prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.CommitCursorResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for CommitCursor.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CommitCursorResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.CommitCursorResponse) com.google.cloud.pubsublite.proto.CommitCursorResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CommitCursorResponse.class, - com.google.cloud.pubsublite.proto.CommitCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.CommitCursorResponse.class, com.google.cloud.pubsublite.proto.CommitCursorResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.CommitCursorResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -254,9 +230,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor; } @java.lang.Override @@ -275,8 +251,7 @@ public com.google.cloud.pubsublite.proto.CommitCursorResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.CommitCursorResponse buildPartial() { - com.google.cloud.pubsublite.proto.CommitCursorResponse result = - new com.google.cloud.pubsublite.proto.CommitCursorResponse(this); + com.google.cloud.pubsublite.proto.CommitCursorResponse result = new com.google.cloud.pubsublite.proto.CommitCursorResponse(this); onBuilt(); return result; } @@ -285,39 +260,38 @@ public com.google.cloud.pubsublite.proto.CommitCursorResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.CommitCursorResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.CommitCursorResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.CommitCursorResponse)other); } else { super.mergeFrom(other); return this; @@ -325,8 +299,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.CommitCursorResponse other) { - if (other == com.google.cloud.pubsublite.proto.CommitCursorResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.CommitCursorResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -353,13 +326,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -369,9 +341,9 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -381,12 +353,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.CommitCursorResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.CommitCursorResponse) private static final com.google.cloud.pubsublite.proto.CommitCursorResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.CommitCursorResponse(); } @@ -395,27 +367,27 @@ public static com.google.cloud.pubsublite.proto.CommitCursorResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommitCursorResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommitCursorResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -430,4 +402,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.CommitCursorResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.java new file mode 100644 index 000000000..6cf961d66 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.java @@ -0,0 +1,10 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/cursor.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.pubsublite.proto; + +public interface CommitCursorResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.CommitCursorResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommonProto.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommonProto.java new file mode 100644 index 000000000..8e7961c8f --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommonProto.java @@ -0,0 +1,302 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/common.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.pubsublite.proto; + +public final class CommonProto { + private CommonProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Cursor_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Reservation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Topic_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Subscription_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_TimeTarget_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\'google/cloud/pubsublite/v1/common.prot" + + "o\022\032google.cloud.pubsublite.v1\032\037google/ap" + + "i/field_behavior.proto\032\031google/api/resou" + + "rce.proto\032\036google/protobuf/duration.prot" + + "o\032\037google/protobuf/timestamp.proto\"!\n\017At" + + "tributeValues\022\016\n\006values\030\001 \003(\014\"\211\002\n\rPubSub" + + "Message\022\013\n\003key\030\001 \001(\014\022\014\n\004data\030\002 \001(\014\022M\n\nat" + + "tributes\030\003 \003(\01329.google.cloud.pubsublite" + + ".v1.PubSubMessage.AttributesEntry\022.\n\neve" + + "nt_time\030\004 \001(\0132\032.google.protobuf.Timestam" + + "p\032^\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022:\n\005val" + + "ue\030\002 \001(\0132+.google.cloud.pubsublite.v1.At" + + "tributeValues:\0028\001\"\030\n\006Cursor\022\016\n\006offset\030\001 " + + "\001(\003\"\310\001\n\020SequencedMessage\0222\n\006cursor\030\001 \001(\013" + + "2\".google.cloud.pubsublite.v1.Cursor\0220\n\014" + + "publish_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estamp\022:\n\007message\030\003 \001(\0132).google.cloud.p" + + "ubsublite.v1.PubSubMessage\022\022\n\nsize_bytes" + + "\030\004 \001(\003\"\250\001\n\013Reservation\022\014\n\004name\030\001 \001(\t\022\033\n\023" + + "throughput_capacity\030\002 \001(\003:n\352Ak\n%pubsubli" + + "te.googleapis.com/Reservation\022Bprojects/" + + "{project}/locations/{location}/reservati" + + "ons/{reservation}\"\367\005\n\005Topic\022\014\n\004name\030\001 \001(" + + "\t\022K\n\020partition_config\030\002 \001(\01321.google.clo" + + "ud.pubsublite.v1.Topic.PartitionConfig\022K" + + "\n\020retention_config\030\003 \001(\01321.google.cloud." + + "pubsublite.v1.Topic.RetentionConfig\022O\n\022r" + + "eservation_config\030\004 \001(\01323.google.cloud.p" + + "ubsublite.v1.Topic.ReservationConfig\032\332\001\n" + + "\017PartitionConfig\022\r\n\005count\030\001 \001(\003\022\023\n\005scale" + + "\030\002 \001(\005B\002\030\001H\000\022N\n\010capacity\030\003 \001(\0132:.google." + + "cloud.pubsublite.v1.Topic.PartitionConfi" + + "g.CapacityH\000\032F\n\010Capacity\022\033\n\023publish_mib_" + + "per_sec\030\001 \001(\005\022\035\n\025subscribe_mib_per_sec\030\002" + + " \001(\005B\013\n\tdimension\032Y\n\017RetentionConfig\022\033\n\023" + + "per_partition_bytes\030\001 \001(\003\022)\n\006period\030\002 \001(" + + "\0132\031.google.protobuf.Duration\032_\n\021Reservat" + + "ionConfig\022J\n\026throughput_reservation\030\001 \001(" + + "\tB*\372A\'\n%pubsublite.googleapis.com/Reserv" + + "ation:\\\352AY\n\037pubsublite.googleapis.com/To" + + "pic\0226projects/{project}/locations/{locat" + + "ion}/topics/{topic}\"\305\004\n\014Subscription\022\014\n\004" + + "name\030\001 \001(\t\0223\n\005topic\030\002 \001(\tB$\372A!\n\037pubsubli" + + "te.googleapis.com/Topic\022P\n\017delivery_conf" + + "ig\030\003 \001(\01327.google.cloud.pubsublite.v1.Su" + + "bscription.DeliveryConfig\022?\n\rexport_conf" + + "ig\030\004 \001(\0132(.google.cloud.pubsublite.v1.Ex" + + "portConfig\032\353\001\n\016DeliveryConfig\022i\n\024deliver" + + "y_requirement\030\003 \001(\0162K.google.cloud.pubsu" + + "blite.v1.Subscription.DeliveryConfig.Del" + + "iveryRequirement\"n\n\023DeliveryRequirement\022" + + "$\n DELIVERY_REQUIREMENT_UNSPECIFIED\020\000\022\027\n" + + "\023DELIVER_IMMEDIATELY\020\001\022\030\n\024DELIVER_AFTER_" + + "STORED\020\002:q\352An\n&pubsublite.googleapis.com" + + "/Subscription\022Dprojects/{project}/locati" + + "ons/{location}/subscriptions/{subscripti" + + "on}\"\301\003\n\014ExportConfig\022E\n\rdesired_state\030\001 " + + "\001(\0162..google.cloud.pubsublite.v1.ExportC" + + "onfig.State\022J\n\rcurrent_state\030\006 \001(\0162..goo" + + "gle.cloud.pubsublite.v1.ExportConfig.Sta" + + "teB\003\340A\003\022B\n\021dead_letter_topic\030\005 \001(\tB\'\340A\001\372" + + "A!\n\037pubsublite.googleapis.com/Topic\022N\n\rp" + + "ubsub_config\030\003 \001(\01325.google.cloud.pubsub" + + "lite.v1.ExportConfig.PubSubConfigH\000\032\035\n\014P" + + "ubSubConfig\022\r\n\005topic\030\001 \001(\t\"\\\n\005State\022\025\n\021S" + + "TATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\n\n\006PAUSED" + + "\020\002\022\025\n\021PERMISSION_DENIED\020\003\022\r\n\tNOT_FOUND\020\004" + + "B\r\n\013destination\"z\n\nTimeTarget\0222\n\014publish" + + "_time\030\001 \001(\0132\032.google.protobuf.TimestampH" + + "\000\0220\n\nevent_time\030\002 \001(\0132\032.google.protobuf." + + "TimestampH\000B\006\n\004timeB\317\001\n!com.google.cloud" + + ".pubsublite.protoB\013CommonProtoP\001Z>cloud." + + "google.com/go/pubsublite/apiv1/pubsublit" + + "epb;pubsublitepb\370\001\001\252\002\032Google.Cloud.PubSu" + + "bLite.V1\312\002\032Google\\Cloud\\PubSubLite\\V1\352\002\035" + + "Google::Cloud::PubSubLite::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor, + new java.lang.String[] { "Values", }); + internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor, + new java.lang.String[] { "Key", "Data", "Attributes", "EventTime", }); + internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor = + internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_pubsublite_v1_Cursor_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Cursor_descriptor, + new java.lang.String[] { "Offset", }); + internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor, + new java.lang.String[] { "Cursor", "PublishTime", "Message", "SizeBytes", }); + internal_static_google_cloud_pubsublite_v1_Reservation_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Reservation_descriptor, + new java.lang.String[] { "Name", "ThroughputCapacity", }); + internal_static_google_cloud_pubsublite_v1_Topic_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Topic_descriptor, + new java.lang.String[] { "Name", "PartitionConfig", "RetentionConfig", "ReservationConfig", }); + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor = + internal_static_google_cloud_pubsublite_v1_Topic_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor, + new java.lang.String[] { "Count", "Scale", "Capacity", "Dimension", }); + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor = + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor, + new java.lang.String[] { "PublishMibPerSec", "SubscribeMibPerSec", }); + internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor = + internal_static_google_cloud_pubsublite_v1_Topic_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor, + new java.lang.String[] { "PerPartitionBytes", "Period", }); + internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor = + internal_static_google_cloud_pubsublite_v1_Topic_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor, + new java.lang.String[] { "ThroughputReservation", }); + internal_static_google_cloud_pubsublite_v1_Subscription_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Subscription_descriptor, + new java.lang.String[] { "Name", "Topic", "DeliveryConfig", "ExportConfig", }); + internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor = + internal_static_google_cloud_pubsublite_v1_Subscription_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor, + new java.lang.String[] { "DeliveryRequirement", }); + internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor, + new java.lang.String[] { "DesiredState", "CurrentState", "DeadLetterTopic", "PubsubConfig", "Destination", }); + internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor = + internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor, + new java.lang.String[] { "Topic", }); + internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_pubsublite_v1_TimeTarget_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor, + new java.lang.String[] { "PublishTime", "EventTime", "Time", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequest.java similarity index 63% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequest.java index 0ef5f2448..52e38a18d 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/topic_stats.proto @@ -20,64 +5,54 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Compute the current head cursor for a partition.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ComputeHeadCursorRequest} */ -public final class ComputeHeadCursorRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ComputeHeadCursorRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ComputeHeadCursorRequest) ComputeHeadCursorRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ComputeHeadCursorRequest.newBuilder() to construct. private ComputeHeadCursorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ComputeHeadCursorRequest() { topic_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ComputeHeadCursorRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.class, - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.Builder.class); + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.class, com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; /** - * - * *
    * Required. The topic for which we should compute the head cursor.
    * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The topic. */ @java.lang.Override @@ -86,31 +61,29 @@ public java.lang.String getTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; } } /** - * - * *
    * Required. The topic for which we should compute the head cursor.
    * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for topic. */ @java.lang.Override - public com.google.protobuf.ByteString getTopicBytes() { + public com.google.protobuf.ByteString + getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); topic_ = b; return b; } else { @@ -121,14 +94,11 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int PARTITION_FIELD_NUMBER = 2; private long partition_ = 0L; /** - * - * *
    * Required. The partition for which we should compute the head cursor.
    * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The partition. */ @java.lang.Override @@ -137,7 +107,6 @@ public long getPartition() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,7 +118,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); } @@ -169,7 +139,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); } if (partition_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, partition_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, partition_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -179,16 +150,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest other = - (com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest) obj; + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest other = (com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest) obj; - if (!getTopic().equals(other.getTopic())) return false; - if (getPartition() != other.getPartition()) return false; + if (!getTopic() + .equals(other.getTopic())) return false; + if (getPartition() + != other.getPartition()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -203,143 +175,139 @@ public int hashCode() { hash = (37 * hash) + TOPIC_FIELD_NUMBER; hash = (53 * hash) + getTopic().hashCode(); hash = (37 * hash) + PARTITION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartition()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPartition()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Compute the current head cursor for a partition.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ComputeHeadCursorRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.ComputeHeadCursorRequest) com.google.cloud.pubsublite.proto.ComputeHeadCursorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.class, - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.Builder.class); + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.class, com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -350,9 +318,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor; } @java.lang.Override @@ -371,11 +339,8 @@ public com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest buildPartial() { - com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest result = - new com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest result = new com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -394,39 +359,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeHeadCursorRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest)other); } else { super.mergeFrom(other); return this; @@ -434,8 +398,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest other) { - if (other == com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest.getDefaultInstance()) return this; if (!other.getTopic().isEmpty()) { topic_ = other.topic_; bitField0_ |= 0x00000001; @@ -470,25 +433,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - topic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - partition_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + partition_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -498,27 +458,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object topic_ = ""; /** - * - * *
      * Required. The topic for which we should compute the head cursor.
      * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; @@ -527,23 +482,20 @@ public java.lang.String getTopic() { } } /** - * - * *
      * Required. The topic for which we should compute the head cursor.
      * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for topic. */ - public com.google.protobuf.ByteString getTopicBytes() { + public com.google.protobuf.ByteString + getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); topic_ = b; return b; } else { @@ -551,39 +503,28 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
      * Required. The topic for which we should compute the head cursor.
      * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopic( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } topic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The topic for which we should compute the head cursor.
      * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearTopic() { @@ -593,23 +534,17 @@ public Builder clearTopic() { return this; } /** - * - * *
      * Required. The topic for which we should compute the head cursor.
      * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000001; @@ -617,16 +552,13 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { return this; } - private long partition_; + private long partition_ ; /** - * - * *
      * Required. The partition for which we should compute the head cursor.
      * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The partition. */ @java.lang.Override @@ -634,14 +566,11 @@ public long getPartition() { return partition_; } /** - * - * *
      * Required. The partition for which we should compute the head cursor.
      * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The partition to set. * @return This builder for chaining. */ @@ -653,14 +582,11 @@ public Builder setPartition(long value) { return this; } /** - * - * *
      * Required. The partition for which we should compute the head cursor.
      * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPartition() { @@ -669,9 +595,9 @@ public Builder clearPartition() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -681,12 +607,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ComputeHeadCursorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ComputeHeadCursorRequest) private static final com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest(); } @@ -695,27 +621,27 @@ public static com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ComputeHeadCursorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputeHeadCursorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -730,4 +656,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.ComputeHeadCursorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java new file mode 100644 index 000000000..001ee13a3 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java @@ -0,0 +1,40 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/topic_stats.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.pubsublite.proto; + +public interface ComputeHeadCursorRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ComputeHeadCursorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The topic for which we should compute the head cursor.
+   * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The topic. + */ + java.lang.String getTopic(); + /** + *
+   * Required. The topic for which we should compute the head cursor.
+   * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for topic. + */ + com.google.protobuf.ByteString + getTopicBytes(); + + /** + *
+   * Required. The partition for which we should compute the head cursor.
+   * 
+ * + * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The partition. + */ + long getPartition(); +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponse.java similarity index 65% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponse.java index 42739fde0..01fbfd72f 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponse.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/topic_stats.proto @@ -20,59 +5,53 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response containing the head cursor for the requested topic and partition.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ComputeHeadCursorResponse} */ -public final class ComputeHeadCursorResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ComputeHeadCursorResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ComputeHeadCursorResponse) ComputeHeadCursorResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ComputeHeadCursorResponse.newBuilder() to construct. private ComputeHeadCursorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ComputeHeadCursorResponse() {} + private ComputeHeadCursorResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ComputeHeadCursorResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.class, - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.class, com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.Builder.class); } private int bitField0_; public static final int HEAD_CURSOR_FIELD_NUMBER = 1; private com.google.cloud.pubsublite.proto.Cursor headCursor_; /** - * - * *
    * The head cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor head_cursor = 1; - * * @return Whether the headCursor field is set. */ @java.lang.Override @@ -80,25 +59,18 @@ public boolean hasHeadCursor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The head cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor head_cursor = 1; - * * @return The headCursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getHeadCursor() { - return headCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : headCursor_; + return headCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : headCursor_; } /** - * - * *
    * The head cursor.
    * 
@@ -107,13 +79,10 @@ public com.google.cloud.pubsublite.proto.Cursor getHeadCursor() { */ @java.lang.Override public com.google.cloud.pubsublite.proto.CursorOrBuilder getHeadCursorOrBuilder() { - return headCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : headCursor_; + return headCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : headCursor_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -125,7 +94,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getHeadCursor()); } @@ -139,7 +109,8 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHeadCursor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHeadCursor()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -149,17 +120,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse other = - (com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse) obj; + com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse other = (com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse) obj; if (hasHeadCursor() != other.hasHeadCursor()) return false; if (hasHeadCursor()) { - if (!getHeadCursor().equals(other.getHeadCursor())) return false; + if (!getHeadCursor() + .equals(other.getHeadCursor())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -182,127 +153,119 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response containing the head cursor for the requested topic and partition.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ComputeHeadCursorResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.ComputeHeadCursorResponse) com.google.cloud.pubsublite.proto.ComputeHeadCursorResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.class, - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.class, com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.newBuilder() @@ -310,17 +273,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getHeadCursorFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -334,9 +297,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor; } @java.lang.Override @@ -355,11 +318,8 @@ public com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse buildPartial() { - com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse result = - new com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse result = new com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -368,7 +328,9 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeHeadCursorRe int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.headCursor_ = headCursorBuilder_ == null ? headCursor_ : headCursorBuilder_.build(); + result.headCursor_ = headCursorBuilder_ == null + ? headCursor_ + : headCursorBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -378,39 +340,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeHeadCursorRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse)other); } else { super.mergeFrom(other); return this; @@ -418,8 +379,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse other) { - if (other == com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse.getDefaultInstance()) return this; if (other.hasHeadCursor()) { mergeHeadCursor(other.getHeadCursor()); } @@ -449,19 +409,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getHeadCursorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getHeadCursorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -471,52 +431,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.pubsublite.proto.Cursor headCursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> - headCursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> headCursorBuilder_; /** - * - * *
      * The head cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor head_cursor = 1; - * * @return Whether the headCursor field is set. */ public boolean hasHeadCursor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The head cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor head_cursor = 1; - * * @return The headCursor. */ public com.google.cloud.pubsublite.proto.Cursor getHeadCursor() { if (headCursorBuilder_ == null) { - return headCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : headCursor_; + return headCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : headCursor_; } else { return headCursorBuilder_.getMessage(); } } /** - * - * *
      * The head cursor.
      * 
@@ -537,15 +483,14 @@ public Builder setHeadCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The head cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor head_cursor = 1; */ - public Builder setHeadCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { + public Builder setHeadCursor( + com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { if (headCursorBuilder_ == null) { headCursor_ = builderForValue.build(); } else { @@ -556,8 +501,6 @@ public Builder setHeadCursor(com.google.cloud.pubsublite.proto.Cursor.Builder bu return this; } /** - * - * *
      * The head cursor.
      * 
@@ -566,9 +509,9 @@ public Builder setHeadCursor(com.google.cloud.pubsublite.proto.Cursor.Builder bu */ public Builder mergeHeadCursor(com.google.cloud.pubsublite.proto.Cursor value) { if (headCursorBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && headCursor_ != null - && headCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + headCursor_ != null && + headCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { getHeadCursorBuilder().mergeFrom(value); } else { headCursor_ = value; @@ -583,8 +526,6 @@ public Builder mergeHeadCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The head cursor.
      * 
@@ -602,8 +543,6 @@ public Builder clearHeadCursor() { return this; } /** - * - * *
      * The head cursor.
      * 
@@ -616,8 +555,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getHeadCursorBuilder() { return getHeadCursorFieldBuilder().getBuilder(); } /** - * - * *
      * The head cursor.
      * 
@@ -628,14 +565,11 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getHeadCursorOrBuilder( if (headCursorBuilder_ != null) { return headCursorBuilder_.getMessageOrBuilder(); } else { - return headCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : headCursor_; + return headCursor_ == null ? + com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : headCursor_; } } /** - * - * *
      * The head cursor.
      * 
@@ -643,24 +577,21 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getHeadCursorOrBuilder( * .google.cloud.pubsublite.v1.Cursor head_cursor = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> getHeadCursorFieldBuilder() { if (headCursorBuilder_ == null) { - headCursorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder>( - getHeadCursor(), getParentForChildren(), isClean()); + headCursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>( + getHeadCursor(), + getParentForChildren(), + isClean()); headCursor_ = null; } return headCursorBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -670,12 +601,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ComputeHeadCursorResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ComputeHeadCursorResponse) private static final com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse(); } @@ -684,27 +615,27 @@ public static com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ComputeHeadCursorResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputeHeadCursorResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -719,4 +650,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.pubsublite.proto.ComputeHeadCursorResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponseOrBuilder.java similarity index 58% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponseOrBuilder.java index 62108166a..7a3aba19a 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorResponseOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/topic_stats.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface ComputeHeadCursorResponseOrBuilder - extends +public interface ComputeHeadCursorResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ComputeHeadCursorResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The head cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor head_cursor = 1; - * * @return Whether the headCursor field is set. */ boolean hasHeadCursor(); /** - * - * *
    * The head cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor head_cursor = 1; - * * @return The headCursor. */ com.google.cloud.pubsublite.proto.Cursor getHeadCursor(); /** - * - * *
    * The head cursor.
    * 
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequest.java similarity index 68% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequest.java index 0bbd909b1..cf77e9b36 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/topic_stats.proto @@ -20,65 +5,55 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Compute statistics about a range of messages in a given topic and partition.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ComputeMessageStatsRequest} */ -public final class ComputeMessageStatsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ComputeMessageStatsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ComputeMessageStatsRequest) ComputeMessageStatsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ComputeMessageStatsRequest.newBuilder() to construct. private ComputeMessageStatsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ComputeMessageStatsRequest() { topic_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ComputeMessageStatsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.class, - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.class, com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.Builder.class); } private int bitField0_; public static final int TOPIC_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; /** - * - * *
    * Required. The topic for which we should compute message stats.
    * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The topic. */ @java.lang.Override @@ -87,31 +62,29 @@ public java.lang.String getTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; } } /** - * - * *
    * Required. The topic for which we should compute message stats.
    * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for topic. */ @java.lang.Override - public com.google.protobuf.ByteString getTopicBytes() { + public com.google.protobuf.ByteString + getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); topic_ = b; return b; } else { @@ -122,14 +95,11 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int PARTITION_FIELD_NUMBER = 2; private long partition_ = 0L; /** - * - * *
    * Required. The partition for which we should compute message stats.
    * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The partition. */ @java.lang.Override @@ -140,14 +110,11 @@ public long getPartition() { public static final int START_CURSOR_FIELD_NUMBER = 3; private com.google.cloud.pubsublite.proto.Cursor startCursor_; /** - * - * *
    * The inclusive start of the range.
    * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 3; - * * @return Whether the startCursor field is set. */ @java.lang.Override @@ -155,25 +122,18 @@ public boolean hasStartCursor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The inclusive start of the range.
    * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 3; - * * @return The startCursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getStartCursor() { - return startCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : startCursor_; + return startCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; } /** - * - * *
    * The inclusive start of the range.
    * 
@@ -182,16 +142,12 @@ public com.google.cloud.pubsublite.proto.Cursor getStartCursor() { */ @java.lang.Override public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder() { - return startCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : startCursor_; + return startCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; } public static final int END_CURSOR_FIELD_NUMBER = 4; private com.google.cloud.pubsublite.proto.Cursor endCursor_; /** - * - * *
    * The exclusive end of the range. The range is empty if end_cursor <=
    * start_cursor. Specifying a start_cursor before the first message and an
@@ -199,7 +155,6 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder
    * 
* * .google.cloud.pubsublite.v1.Cursor end_cursor = 4; - * * @return Whether the endCursor field is set. */ @java.lang.Override @@ -207,8 +162,6 @@ public boolean hasEndCursor() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * The exclusive end of the range. The range is empty if end_cursor <=
    * start_cursor. Specifying a start_cursor before the first message and an
@@ -216,18 +169,13 @@ public boolean hasEndCursor() {
    * 
* * .google.cloud.pubsublite.v1.Cursor end_cursor = 4; - * * @return The endCursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getEndCursor() { - return endCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : endCursor_; + return endCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : endCursor_; } /** - * - * *
    * The exclusive end of the range. The range is empty if end_cursor <=
    * start_cursor. Specifying a start_cursor before the first message and an
@@ -238,13 +186,10 @@ public com.google.cloud.pubsublite.proto.Cursor getEndCursor() {
    */
   @java.lang.Override
   public com.google.cloud.pubsublite.proto.CursorOrBuilder getEndCursorOrBuilder() {
-    return endCursor_ == null
-        ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()
-        : endCursor_;
+    return endCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : endCursor_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -256,7 +201,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_);
     }
@@ -282,13 +228,16 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_);
     }
     if (partition_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, partition_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(2, partition_);
     }
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartCursor());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getStartCursor());
     }
     if (((bitField0_ & 0x00000002) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEndCursor());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getEndCursor());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -298,23 +247,26 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest other =
-        (com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest) obj;
+    com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest other = (com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest) obj;
 
-    if (!getTopic().equals(other.getTopic())) return false;
-    if (getPartition() != other.getPartition()) return false;
+    if (!getTopic()
+        .equals(other.getTopic())) return false;
+    if (getPartition()
+        != other.getPartition()) return false;
     if (hasStartCursor() != other.hasStartCursor()) return false;
     if (hasStartCursor()) {
-      if (!getStartCursor().equals(other.getStartCursor())) return false;
+      if (!getStartCursor()
+          .equals(other.getStartCursor())) return false;
     }
     if (hasEndCursor() != other.hasEndCursor()) return false;
     if (hasEndCursor()) {
-      if (!getEndCursor().equals(other.getEndCursor())) return false;
+      if (!getEndCursor()
+          .equals(other.getEndCursor())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -330,7 +282,8 @@ public int hashCode() {
     hash = (37 * hash) + TOPIC_FIELD_NUMBER;
     hash = (53 * hash) + getTopic().hashCode();
     hash = (37 * hash) + PARTITION_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartition());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getPartition());
     if (hasStartCursor()) {
       hash = (37 * hash) + START_CURSOR_FIELD_NUMBER;
       hash = (53 * hash) + getStartCursor().hashCode();
@@ -345,127 +298,119 @@ public int hashCode() {
   }
 
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Compute statistics about a range of messages in a given topic and partition.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ComputeMessageStatsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.ComputeMessageStatsRequest) com.google.cloud.pubsublite.proto.ComputeMessageStatsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.class, - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.class, com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.newBuilder() @@ -473,18 +418,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getStartCursorFieldBuilder(); getEndCursorFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -505,14 +450,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.getDefaultInstance(); } @@ -527,17 +471,13 @@ public com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest buildPartial() { - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest result = - new com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest result = new com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.topic_ = topic_; @@ -547,12 +487,15 @@ private void buildPartial0( } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.startCursor_ = - startCursorBuilder_ == null ? startCursor_ : startCursorBuilder_.build(); + result.startCursor_ = startCursorBuilder_ == null + ? startCursor_ + : startCursorBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.endCursor_ = endCursorBuilder_ == null ? endCursor_ : endCursorBuilder_.build(); + result.endCursor_ = endCursorBuilder_ == null + ? endCursor_ + : endCursorBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -562,39 +505,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest)other); } else { super.mergeFrom(other); return this; @@ -602,9 +544,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest other) { - if (other - == com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest.getDefaultInstance()) return this; if (!other.getTopic().isEmpty()) { topic_ = other.topic_; bitField0_ |= 0x00000001; @@ -645,37 +585,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - topic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - partition_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - input.readMessage(getStartCursorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getEndCursorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + partition_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getStartCursorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getEndCursorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -685,27 +624,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object topic_ = ""; /** - * - * *
      * Required. The topic for which we should compute message stats.
      * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; @@ -714,23 +648,20 @@ public java.lang.String getTopic() { } } /** - * - * *
      * Required. The topic for which we should compute message stats.
      * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for topic. */ - public com.google.protobuf.ByteString getTopicBytes() { + public com.google.protobuf.ByteString + getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); topic_ = b; return b; } else { @@ -738,39 +669,28 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
      * Required. The topic for which we should compute message stats.
      * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopic( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } topic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The topic for which we should compute message stats.
      * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearTopic() { @@ -780,23 +700,17 @@ public Builder clearTopic() { return this; } /** - * - * *
      * Required. The topic for which we should compute message stats.
      * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000001; @@ -804,16 +718,13 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { return this; } - private long partition_; + private long partition_ ; /** - * - * *
      * Required. The partition for which we should compute message stats.
      * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The partition. */ @java.lang.Override @@ -821,14 +732,11 @@ public long getPartition() { return partition_; } /** - * - * *
      * Required. The partition for which we should compute message stats.
      * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The partition to set. * @return This builder for chaining. */ @@ -840,14 +748,11 @@ public Builder setPartition(long value) { return this; } /** - * - * *
      * Required. The partition for which we should compute message stats.
      * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPartition() { @@ -859,47 +764,34 @@ public Builder clearPartition() { private com.google.cloud.pubsublite.proto.Cursor startCursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> - startCursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> startCursorBuilder_; /** - * - * *
      * The inclusive start of the range.
      * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 3; - * * @return Whether the startCursor field is set. */ public boolean hasStartCursor() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The inclusive start of the range.
      * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 3; - * * @return The startCursor. */ public com.google.cloud.pubsublite.proto.Cursor getStartCursor() { if (startCursorBuilder_ == null) { - return startCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : startCursor_; + return startCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; } else { return startCursorBuilder_.getMessage(); } } /** - * - * *
      * The inclusive start of the range.
      * 
@@ -920,8 +812,6 @@ public Builder setStartCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The inclusive start of the range.
      * 
@@ -940,8 +830,6 @@ public Builder setStartCursor( return this; } /** - * - * *
      * The inclusive start of the range.
      * 
@@ -950,9 +838,9 @@ public Builder setStartCursor( */ public Builder mergeStartCursor(com.google.cloud.pubsublite.proto.Cursor value) { if (startCursorBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && startCursor_ != null - && startCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + startCursor_ != null && + startCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { getStartCursorBuilder().mergeFrom(value); } else { startCursor_ = value; @@ -967,8 +855,6 @@ public Builder mergeStartCursor(com.google.cloud.pubsublite.proto.Cursor value) return this; } /** - * - * *
      * The inclusive start of the range.
      * 
@@ -986,8 +872,6 @@ public Builder clearStartCursor() { return this; } /** - * - * *
      * The inclusive start of the range.
      * 
@@ -1000,8 +884,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getStartCursorBuilder() return getStartCursorFieldBuilder().getBuilder(); } /** - * - * *
      * The inclusive start of the range.
      * 
@@ -1012,14 +894,11 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder if (startCursorBuilder_ != null) { return startCursorBuilder_.getMessageOrBuilder(); } else { - return startCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : startCursor_; + return startCursor_ == null ? + com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; } } /** - * - * *
      * The inclusive start of the range.
      * 
@@ -1027,17 +906,14 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder * .google.cloud.pubsublite.v1.Cursor start_cursor = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> getStartCursorFieldBuilder() { if (startCursorBuilder_ == null) { - startCursorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder>( - getStartCursor(), getParentForChildren(), isClean()); + startCursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>( + getStartCursor(), + getParentForChildren(), + isClean()); startCursor_ = null; } return startCursorBuilder_; @@ -1045,13 +921,8 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder private com.google.cloud.pubsublite.proto.Cursor endCursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> - endCursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> endCursorBuilder_; /** - * - * *
      * The exclusive end of the range. The range is empty if end_cursor <=
      * start_cursor. Specifying a start_cursor before the first message and an
@@ -1059,15 +930,12 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder
      * 
* * .google.cloud.pubsublite.v1.Cursor end_cursor = 4; - * * @return Whether the endCursor field is set. */ public boolean hasEndCursor() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The exclusive end of the range. The range is empty if end_cursor <=
      * start_cursor. Specifying a start_cursor before the first message and an
@@ -1075,21 +943,16 @@ public boolean hasEndCursor() {
      * 
* * .google.cloud.pubsublite.v1.Cursor end_cursor = 4; - * * @return The endCursor. */ public com.google.cloud.pubsublite.proto.Cursor getEndCursor() { if (endCursorBuilder_ == null) { - return endCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : endCursor_; + return endCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : endCursor_; } else { return endCursorBuilder_.getMessage(); } } /** - * - * *
      * The exclusive end of the range. The range is empty if end_cursor <=
      * start_cursor. Specifying a start_cursor before the first message and an
@@ -1112,8 +975,6 @@ public Builder setEndCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The exclusive end of the range. The range is empty if end_cursor <=
      * start_cursor. Specifying a start_cursor before the first message and an
@@ -1122,7 +983,8 @@ public Builder setEndCursor(com.google.cloud.pubsublite.proto.Cursor value) {
      *
      * .google.cloud.pubsublite.v1.Cursor end_cursor = 4;
      */
-    public Builder setEndCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
+    public Builder setEndCursor(
+        com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
       if (endCursorBuilder_ == null) {
         endCursor_ = builderForValue.build();
       } else {
@@ -1133,8 +995,6 @@ public Builder setEndCursor(com.google.cloud.pubsublite.proto.Cursor.Builder bui
       return this;
     }
     /**
-     *
-     *
      * 
      * The exclusive end of the range. The range is empty if end_cursor <=
      * start_cursor. Specifying a start_cursor before the first message and an
@@ -1145,9 +1005,9 @@ public Builder setEndCursor(com.google.cloud.pubsublite.proto.Cursor.Builder bui
      */
     public Builder mergeEndCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       if (endCursorBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && endCursor_ != null
-            && endCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          endCursor_ != null &&
+          endCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
           getEndCursorBuilder().mergeFrom(value);
         } else {
           endCursor_ = value;
@@ -1162,8 +1022,6 @@ public Builder mergeEndCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The exclusive end of the range. The range is empty if end_cursor <=
      * start_cursor. Specifying a start_cursor before the first message and an
@@ -1183,8 +1041,6 @@ public Builder clearEndCursor() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The exclusive end of the range. The range is empty if end_cursor <=
      * start_cursor. Specifying a start_cursor before the first message and an
@@ -1199,8 +1055,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getEndCursorBuilder() {
       return getEndCursorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The exclusive end of the range. The range is empty if end_cursor <=
      * start_cursor. Specifying a start_cursor before the first message and an
@@ -1213,14 +1067,11 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getEndCursorOrBuilder()
       if (endCursorBuilder_ != null) {
         return endCursorBuilder_.getMessageOrBuilder();
       } else {
-        return endCursor_ == null
-            ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()
-            : endCursor_;
+        return endCursor_ == null ?
+            com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : endCursor_;
       }
     }
     /**
-     *
-     *
      * 
      * The exclusive end of the range. The range is empty if end_cursor <=
      * start_cursor. Specifying a start_cursor before the first message and an
@@ -1230,24 +1081,21 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getEndCursorOrBuilder()
      * .google.cloud.pubsublite.v1.Cursor end_cursor = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Cursor,
-            com.google.cloud.pubsublite.proto.Cursor.Builder,
-            com.google.cloud.pubsublite.proto.CursorOrBuilder>
+        com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> 
         getEndCursorFieldBuilder() {
       if (endCursorBuilder_ == null) {
-        endCursorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.pubsublite.proto.Cursor,
-                com.google.cloud.pubsublite.proto.Cursor.Builder,
-                com.google.cloud.pubsublite.proto.CursorOrBuilder>(
-                getEndCursor(), getParentForChildren(), isClean());
+        endCursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>(
+                getEndCursor(),
+                getParentForChildren(),
+                isClean());
         endCursor_ = null;
       }
       return endCursorBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1257,13 +1105,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ComputeMessageStatsRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ComputeMessageStatsRequest)
-  private static final com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest();
   }
@@ -1272,27 +1119,27 @@ public static com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ComputeMessageStatsRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ComputeMessageStatsRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1307,4 +1154,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.pubsublite.proto.ComputeMessageStatsRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequestOrBuilder.java
similarity index 71%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequestOrBuilder.java
index 721226a08..aec7b475a 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsRequestOrBuilder.java
@@ -1,98 +1,62 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/topic_stats.proto
 
 // Protobuf Java Version: 3.25.2
 package com.google.cloud.pubsublite.proto;
 
-public interface ComputeMessageStatsRequestOrBuilder
-    extends
+public interface ComputeMessageStatsRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ComputeMessageStatsRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The topic for which we should compute message stats.
    * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The topic. */ java.lang.String getTopic(); /** - * - * *
    * Required. The topic for which we should compute message stats.
    * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for topic. */ - com.google.protobuf.ByteString getTopicBytes(); + com.google.protobuf.ByteString + getTopicBytes(); /** - * - * *
    * Required. The partition for which we should compute message stats.
    * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The partition. */ long getPartition(); /** - * - * *
    * The inclusive start of the range.
    * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 3; - * * @return Whether the startCursor field is set. */ boolean hasStartCursor(); /** - * - * *
    * The inclusive start of the range.
    * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 3; - * * @return The startCursor. */ com.google.cloud.pubsublite.proto.Cursor getStartCursor(); /** - * - * *
    * The inclusive start of the range.
    * 
@@ -102,8 +66,6 @@ public interface ComputeMessageStatsRequestOrBuilder com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder(); /** - * - * *
    * The exclusive end of the range. The range is empty if end_cursor <=
    * start_cursor. Specifying a start_cursor before the first message and an
@@ -111,13 +73,10 @@ public interface ComputeMessageStatsRequestOrBuilder
    * 
* * .google.cloud.pubsublite.v1.Cursor end_cursor = 4; - * * @return Whether the endCursor field is set. */ boolean hasEndCursor(); /** - * - * *
    * The exclusive end of the range. The range is empty if end_cursor <=
    * start_cursor. Specifying a start_cursor before the first message and an
@@ -125,13 +84,10 @@ public interface ComputeMessageStatsRequestOrBuilder
    * 
* * .google.cloud.pubsublite.v1.Cursor end_cursor = 4; - * * @return The endCursor. */ com.google.cloud.pubsublite.proto.Cursor getEndCursor(); /** - * - * *
    * The exclusive end of the range. The range is empty if end_cursor <=
    * start_cursor. Specifying a start_cursor before the first message and an
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponse.java
similarity index 71%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponse.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponse.java
index 7bab9b2a3..f065c0f67 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponse.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponse.java
@@ -1,18 +1,3 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/topic_stats.proto
 
@@ -20,59 +5,53 @@
 package com.google.cloud.pubsublite.proto;
 
 /**
- *
- *
  * 
  * Response containing stats for messages in the requested topic and partition.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ComputeMessageStatsResponse} */ -public final class ComputeMessageStatsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ComputeMessageStatsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ComputeMessageStatsResponse) ComputeMessageStatsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ComputeMessageStatsResponse.newBuilder() to construct. private ComputeMessageStatsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ComputeMessageStatsResponse() {} + private ComputeMessageStatsResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ComputeMessageStatsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.class, - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.class, com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.Builder.class); } private int bitField0_; public static final int MESSAGE_COUNT_FIELD_NUMBER = 1; private long messageCount_ = 0L; /** - * - * *
    * The count of messages.
    * 
* * int64 message_count = 1; - * * @return The messageCount. */ @java.lang.Override @@ -83,14 +62,11 @@ public long getMessageCount() { public static final int MESSAGE_BYTES_FIELD_NUMBER = 2; private long messageBytes_ = 0L; /** - * - * *
    * The number of quota bytes accounted to these messages.
    * 
* * int64 message_bytes = 2; - * * @return The messageBytes. */ @java.lang.Override @@ -101,8 +77,6 @@ public long getMessageBytes() { public static final int MINIMUM_PUBLISH_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp minimumPublishTime_; /** - * - * *
    * The minimum publish timestamp across these messages. Note that publish
    * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -110,7 +84,6 @@ public long getMessageBytes() {
    * 
* * .google.protobuf.Timestamp minimum_publish_time = 3; - * * @return Whether the minimumPublishTime field is set. */ @java.lang.Override @@ -118,8 +91,6 @@ public boolean hasMinimumPublishTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The minimum publish timestamp across these messages. Note that publish
    * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -127,18 +98,13 @@ public boolean hasMinimumPublishTime() {
    * 
* * .google.protobuf.Timestamp minimum_publish_time = 3; - * * @return The minimumPublishTime. */ @java.lang.Override public com.google.protobuf.Timestamp getMinimumPublishTime() { - return minimumPublishTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : minimumPublishTime_; + return minimumPublishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minimumPublishTime_; } /** - * - * *
    * The minimum publish timestamp across these messages. Note that publish
    * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -149,16 +115,12 @@ public com.google.protobuf.Timestamp getMinimumPublishTime() {
    */
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getMinimumPublishTimeOrBuilder() {
-    return minimumPublishTime_ == null
-        ? com.google.protobuf.Timestamp.getDefaultInstance()
-        : minimumPublishTime_;
+    return minimumPublishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minimumPublishTime_;
   }
 
   public static final int MINIMUM_EVENT_TIME_FIELD_NUMBER = 4;
   private com.google.protobuf.Timestamp minimumEventTime_;
   /**
-   *
-   *
    * 
    * The minimum event timestamp across these messages. For the purposes of this
    * computation, if a message does not have an event time, we use the publish
@@ -166,7 +128,6 @@ public com.google.protobuf.TimestampOrBuilder getMinimumPublishTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp minimum_event_time = 4; - * * @return Whether the minimumEventTime field is set. */ @java.lang.Override @@ -174,8 +135,6 @@ public boolean hasMinimumEventTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * The minimum event timestamp across these messages. For the purposes of this
    * computation, if a message does not have an event time, we use the publish
@@ -183,18 +142,13 @@ public boolean hasMinimumEventTime() {
    * 
* * .google.protobuf.Timestamp minimum_event_time = 4; - * * @return The minimumEventTime. */ @java.lang.Override public com.google.protobuf.Timestamp getMinimumEventTime() { - return minimumEventTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : minimumEventTime_; + return minimumEventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minimumEventTime_; } /** - * - * *
    * The minimum event timestamp across these messages. For the purposes of this
    * computation, if a message does not have an event time, we use the publish
@@ -205,13 +159,10 @@ public com.google.protobuf.Timestamp getMinimumEventTime() {
    */
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getMinimumEventTimeOrBuilder() {
-    return minimumEventTime_ == null
-        ? com.google.protobuf.Timestamp.getDefaultInstance()
-        : minimumEventTime_;
+    return minimumEventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minimumEventTime_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -223,7 +174,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (messageCount_ != 0L) {
       output.writeInt64(1, messageCount_);
     }
@@ -246,16 +198,20 @@ public int getSerializedSize() {
 
     size = 0;
     if (messageCount_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, messageCount_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(1, messageCount_);
     }
     if (messageBytes_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, messageBytes_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt64Size(2, messageBytes_);
     }
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMinimumPublishTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getMinimumPublishTime());
     }
     if (((bitField0_ & 0x00000002) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMinimumEventTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getMinimumEventTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -265,23 +221,26 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse other =
-        (com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse) obj;
+    com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse other = (com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse) obj;
 
-    if (getMessageCount() != other.getMessageCount()) return false;
-    if (getMessageBytes() != other.getMessageBytes()) return false;
+    if (getMessageCount()
+        != other.getMessageCount()) return false;
+    if (getMessageBytes()
+        != other.getMessageBytes()) return false;
     if (hasMinimumPublishTime() != other.hasMinimumPublishTime()) return false;
     if (hasMinimumPublishTime()) {
-      if (!getMinimumPublishTime().equals(other.getMinimumPublishTime())) return false;
+      if (!getMinimumPublishTime()
+          .equals(other.getMinimumPublishTime())) return false;
     }
     if (hasMinimumEventTime() != other.hasMinimumEventTime()) return false;
     if (hasMinimumEventTime()) {
-      if (!getMinimumEventTime().equals(other.getMinimumEventTime())) return false;
+      if (!getMinimumEventTime()
+          .equals(other.getMinimumEventTime())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -295,9 +254,11 @@ public int hashCode() {
     int hash = 41;
     hash = (19 * hash) + getDescriptor().hashCode();
     hash = (37 * hash) + MESSAGE_COUNT_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMessageCount());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getMessageCount());
     hash = (37 * hash) + MESSAGE_BYTES_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMessageBytes());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        getMessageBytes());
     if (hasMinimumPublishTime()) {
       hash = (37 * hash) + MINIMUM_PUBLISH_TIME_FIELD_NUMBER;
       hash = (53 * hash) + getMinimumPublishTime().hashCode();
@@ -312,127 +273,119 @@ public int hashCode() {
   }
 
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Response containing stats for messages in the requested topic and partition.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ComputeMessageStatsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.ComputeMessageStatsResponse) com.google.cloud.pubsublite.proto.ComputeMessageStatsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.class, - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.class, com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.newBuilder() @@ -440,18 +393,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getMinimumPublishTimeFieldBuilder(); getMinimumEventTimeFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -472,14 +425,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.TopicStatsProto - .internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.getDefaultInstance(); } @@ -494,17 +446,13 @@ public com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse buildPartial() { - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse result = - new com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse result = new com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.messageCount_ = messageCount_; @@ -514,15 +462,15 @@ private void buildPartial0( } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.minimumPublishTime_ = - minimumPublishTimeBuilder_ == null - ? minimumPublishTime_ - : minimumPublishTimeBuilder_.build(); + result.minimumPublishTime_ = minimumPublishTimeBuilder_ == null + ? minimumPublishTime_ + : minimumPublishTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.minimumEventTime_ = - minimumEventTimeBuilder_ == null ? minimumEventTime_ : minimumEventTimeBuilder_.build(); + result.minimumEventTime_ = minimumEventTimeBuilder_ == null + ? minimumEventTime_ + : minimumEventTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -532,39 +480,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse)other); } else { super.mergeFrom(other); return this; @@ -572,9 +519,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse other) { - if (other - == com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse.getDefaultInstance()) return this; if (other.getMessageCount() != 0L) { setMessageCount(other.getMessageCount()); } @@ -613,39 +558,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - messageCount_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - messageBytes_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - input.readMessage( - getMinimumPublishTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - getMinimumEventTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + messageCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + messageBytes_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getMinimumPublishTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getMinimumEventTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -655,19 +597,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long messageCount_; + private long messageCount_ ; /** - * - * *
      * The count of messages.
      * 
* * int64 message_count = 1; - * * @return The messageCount. */ @java.lang.Override @@ -675,14 +613,11 @@ public long getMessageCount() { return messageCount_; } /** - * - * *
      * The count of messages.
      * 
* * int64 message_count = 1; - * * @param value The messageCount to set. * @return This builder for chaining. */ @@ -694,14 +629,11 @@ public Builder setMessageCount(long value) { return this; } /** - * - * *
      * The count of messages.
      * 
* * int64 message_count = 1; - * * @return This builder for chaining. */ public Builder clearMessageCount() { @@ -711,16 +643,13 @@ public Builder clearMessageCount() { return this; } - private long messageBytes_; + private long messageBytes_ ; /** - * - * *
      * The number of quota bytes accounted to these messages.
      * 
* * int64 message_bytes = 2; - * * @return The messageBytes. */ @java.lang.Override @@ -728,14 +657,11 @@ public long getMessageBytes() { return messageBytes_; } /** - * - * *
      * The number of quota bytes accounted to these messages.
      * 
* * int64 message_bytes = 2; - * * @param value The messageBytes to set. * @return This builder for chaining. */ @@ -747,14 +673,11 @@ public Builder setMessageBytes(long value) { return this; } /** - * - * *
      * The number of quota bytes accounted to these messages.
      * 
* * int64 message_bytes = 2; - * * @return This builder for chaining. */ public Builder clearMessageBytes() { @@ -766,13 +689,8 @@ public Builder clearMessageBytes() { private com.google.protobuf.Timestamp minimumPublishTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - minimumPublishTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> minimumPublishTimeBuilder_; /** - * - * *
      * The minimum publish timestamp across these messages. Note that publish
      * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -780,15 +698,12 @@ public Builder clearMessageBytes() {
      * 
* * .google.protobuf.Timestamp minimum_publish_time = 3; - * * @return Whether the minimumPublishTime field is set. */ public boolean hasMinimumPublishTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The minimum publish timestamp across these messages. Note that publish
      * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -796,21 +711,16 @@ public boolean hasMinimumPublishTime() {
      * 
* * .google.protobuf.Timestamp minimum_publish_time = 3; - * * @return The minimumPublishTime. */ public com.google.protobuf.Timestamp getMinimumPublishTime() { if (minimumPublishTimeBuilder_ == null) { - return minimumPublishTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : minimumPublishTime_; + return minimumPublishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minimumPublishTime_; } else { return minimumPublishTimeBuilder_.getMessage(); } } /** - * - * *
      * The minimum publish timestamp across these messages. Note that publish
      * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -833,8 +743,6 @@ public Builder setMinimumPublishTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The minimum publish timestamp across these messages. Note that publish
      * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -843,7 +751,8 @@ public Builder setMinimumPublishTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp minimum_publish_time = 3;
      */
-    public Builder setMinimumPublishTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setMinimumPublishTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (minimumPublishTimeBuilder_ == null) {
         minimumPublishTime_ = builderForValue.build();
       } else {
@@ -854,8 +763,6 @@ public Builder setMinimumPublishTime(com.google.protobuf.Timestamp.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * The minimum publish timestamp across these messages. Note that publish
      * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -866,9 +773,9 @@ public Builder setMinimumPublishTime(com.google.protobuf.Timestamp.Builder build
      */
     public Builder mergeMinimumPublishTime(com.google.protobuf.Timestamp value) {
       if (minimumPublishTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && minimumPublishTime_ != null
-            && minimumPublishTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          minimumPublishTime_ != null &&
+          minimumPublishTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getMinimumPublishTimeBuilder().mergeFrom(value);
         } else {
           minimumPublishTime_ = value;
@@ -883,8 +790,6 @@ public Builder mergeMinimumPublishTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The minimum publish timestamp across these messages. Note that publish
      * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -904,8 +809,6 @@ public Builder clearMinimumPublishTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The minimum publish timestamp across these messages. Note that publish
      * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -920,8 +823,6 @@ public com.google.protobuf.Timestamp.Builder getMinimumPublishTimeBuilder() {
       return getMinimumPublishTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The minimum publish timestamp across these messages. Note that publish
      * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -934,14 +835,11 @@ public com.google.protobuf.TimestampOrBuilder getMinimumPublishTimeOrBuilder() {
       if (minimumPublishTimeBuilder_ != null) {
         return minimumPublishTimeBuilder_.getMessageOrBuilder();
       } else {
-        return minimumPublishTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : minimumPublishTime_;
+        return minimumPublishTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : minimumPublishTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The minimum publish timestamp across these messages. Note that publish
      * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -951,17 +849,14 @@ public com.google.protobuf.TimestampOrBuilder getMinimumPublishTimeOrBuilder() {
      * .google.protobuf.Timestamp minimum_publish_time = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getMinimumPublishTimeFieldBuilder() {
       if (minimumPublishTimeBuilder_ == null) {
-        minimumPublishTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getMinimumPublishTime(), getParentForChildren(), isClean());
+        minimumPublishTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getMinimumPublishTime(),
+                getParentForChildren(),
+                isClean());
         minimumPublishTime_ = null;
       }
       return minimumPublishTimeBuilder_;
@@ -969,13 +864,8 @@ public com.google.protobuf.TimestampOrBuilder getMinimumPublishTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp minimumEventTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        minimumEventTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> minimumEventTimeBuilder_;
     /**
-     *
-     *
      * 
      * The minimum event timestamp across these messages. For the purposes of this
      * computation, if a message does not have an event time, we use the publish
@@ -983,15 +873,12 @@ public com.google.protobuf.TimestampOrBuilder getMinimumPublishTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp minimum_event_time = 4; - * * @return Whether the minimumEventTime field is set. */ public boolean hasMinimumEventTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The minimum event timestamp across these messages. For the purposes of this
      * computation, if a message does not have an event time, we use the publish
@@ -999,21 +886,16 @@ public boolean hasMinimumEventTime() {
      * 
* * .google.protobuf.Timestamp minimum_event_time = 4; - * * @return The minimumEventTime. */ public com.google.protobuf.Timestamp getMinimumEventTime() { if (minimumEventTimeBuilder_ == null) { - return minimumEventTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : minimumEventTime_; + return minimumEventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : minimumEventTime_; } else { return minimumEventTimeBuilder_.getMessage(); } } /** - * - * *
      * The minimum event timestamp across these messages. For the purposes of this
      * computation, if a message does not have an event time, we use the publish
@@ -1036,8 +918,6 @@ public Builder setMinimumEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The minimum event timestamp across these messages. For the purposes of this
      * computation, if a message does not have an event time, we use the publish
@@ -1046,7 +926,8 @@ public Builder setMinimumEventTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp minimum_event_time = 4;
      */
-    public Builder setMinimumEventTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setMinimumEventTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (minimumEventTimeBuilder_ == null) {
         minimumEventTime_ = builderForValue.build();
       } else {
@@ -1057,8 +938,6 @@ public Builder setMinimumEventTime(com.google.protobuf.Timestamp.Builder builder
       return this;
     }
     /**
-     *
-     *
      * 
      * The minimum event timestamp across these messages. For the purposes of this
      * computation, if a message does not have an event time, we use the publish
@@ -1069,9 +948,9 @@ public Builder setMinimumEventTime(com.google.protobuf.Timestamp.Builder builder
      */
     public Builder mergeMinimumEventTime(com.google.protobuf.Timestamp value) {
       if (minimumEventTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && minimumEventTime_ != null
-            && minimumEventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          minimumEventTime_ != null &&
+          minimumEventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getMinimumEventTimeBuilder().mergeFrom(value);
         } else {
           minimumEventTime_ = value;
@@ -1086,8 +965,6 @@ public Builder mergeMinimumEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The minimum event timestamp across these messages. For the purposes of this
      * computation, if a message does not have an event time, we use the publish
@@ -1107,8 +984,6 @@ public Builder clearMinimumEventTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The minimum event timestamp across these messages. For the purposes of this
      * computation, if a message does not have an event time, we use the publish
@@ -1123,8 +998,6 @@ public com.google.protobuf.Timestamp.Builder getMinimumEventTimeBuilder() {
       return getMinimumEventTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The minimum event timestamp across these messages. For the purposes of this
      * computation, if a message does not have an event time, we use the publish
@@ -1137,14 +1010,11 @@ public com.google.protobuf.TimestampOrBuilder getMinimumEventTimeOrBuilder() {
       if (minimumEventTimeBuilder_ != null) {
         return minimumEventTimeBuilder_.getMessageOrBuilder();
       } else {
-        return minimumEventTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : minimumEventTime_;
+        return minimumEventTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : minimumEventTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The minimum event timestamp across these messages. For the purposes of this
      * computation, if a message does not have an event time, we use the publish
@@ -1154,24 +1024,21 @@ public com.google.protobuf.TimestampOrBuilder getMinimumEventTimeOrBuilder() {
      * .google.protobuf.Timestamp minimum_event_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getMinimumEventTimeFieldBuilder() {
       if (minimumEventTimeBuilder_ == null) {
-        minimumEventTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getMinimumEventTime(), getParentForChildren(), isClean());
+        minimumEventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getMinimumEventTime(),
+                getParentForChildren(),
+                isClean());
         minimumEventTime_ = null;
       }
       return minimumEventTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1181,13 +1048,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ComputeMessageStatsResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ComputeMessageStatsResponse)
-  private static final com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse();
   }
@@ -1196,27 +1062,27 @@ public static com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse getD
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ComputeMessageStatsResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ComputeMessageStatsResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1231,4 +1097,6 @@ public com.google.protobuf.Parser getParserForType(
   public com.google.cloud.pubsublite.proto.ComputeMessageStatsResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponseOrBuilder.java
similarity index 80%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponseOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponseOrBuilder.java
index 84b57b416..7b5b6ff63 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponseOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeMessageStatsResponseOrBuilder.java
@@ -1,58 +1,34 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/topic_stats.proto
 
 // Protobuf Java Version: 3.25.2
 package com.google.cloud.pubsublite.proto;
 
-public interface ComputeMessageStatsResponseOrBuilder
-    extends
+public interface ComputeMessageStatsResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ComputeMessageStatsResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The count of messages.
    * 
* * int64 message_count = 1; - * * @return The messageCount. */ long getMessageCount(); /** - * - * *
    * The number of quota bytes accounted to these messages.
    * 
* * int64 message_bytes = 2; - * * @return The messageBytes. */ long getMessageBytes(); /** - * - * *
    * The minimum publish timestamp across these messages. Note that publish
    * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -60,13 +36,10 @@ public interface ComputeMessageStatsResponseOrBuilder
    * 
* * .google.protobuf.Timestamp minimum_publish_time = 3; - * * @return Whether the minimumPublishTime field is set. */ boolean hasMinimumPublishTime(); /** - * - * *
    * The minimum publish timestamp across these messages. Note that publish
    * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -74,13 +47,10 @@ public interface ComputeMessageStatsResponseOrBuilder
    * 
* * .google.protobuf.Timestamp minimum_publish_time = 3; - * * @return The minimumPublishTime. */ com.google.protobuf.Timestamp getMinimumPublishTime(); /** - * - * *
    * The minimum publish timestamp across these messages. Note that publish
    * timestamps within a partition are not guaranteed to be non-decreasing. The
@@ -92,8 +62,6 @@ public interface ComputeMessageStatsResponseOrBuilder
   com.google.protobuf.TimestampOrBuilder getMinimumPublishTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The minimum event timestamp across these messages. For the purposes of this
    * computation, if a message does not have an event time, we use the publish
@@ -101,13 +69,10 @@ public interface ComputeMessageStatsResponseOrBuilder
    * 
* * .google.protobuf.Timestamp minimum_event_time = 4; - * * @return Whether the minimumEventTime field is set. */ boolean hasMinimumEventTime(); /** - * - * *
    * The minimum event timestamp across these messages. For the purposes of this
    * computation, if a message does not have an event time, we use the publish
@@ -115,13 +80,10 @@ public interface ComputeMessageStatsResponseOrBuilder
    * 
* * .google.protobuf.Timestamp minimum_event_time = 4; - * * @return The minimumEventTime. */ com.google.protobuf.Timestamp getMinimumEventTime(); /** - * - * *
    * The minimum event timestamp across these messages. For the purposes of this
    * computation, if a message does not have an event time, we use the publish
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequest.java
similarity index 62%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequest.java
index 6e6e96f01..951240a83 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequest.java
@@ -1,18 +1,3 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/topic_stats.proto
 
@@ -20,8 +5,6 @@
 package com.google.cloud.pubsublite.proto;
 
 /**
- *
- *
  * 
  * Compute the corresponding cursor for a publish or event time in a topic
  * partition.
@@ -29,57 +12,49 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.ComputeTimeCursorRequest}
  */
-public final class ComputeTimeCursorRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ComputeTimeCursorRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ComputeTimeCursorRequest)
     ComputeTimeCursorRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ComputeTimeCursorRequest.newBuilder() to construct.
   private ComputeTimeCursorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ComputeTimeCursorRequest() {
     topic_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ComputeTimeCursorRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.pubsublite.proto.TopicStatsProto
-        .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.TopicStatsProto
-        .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.class,
-            com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.Builder.class);
+            com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.class, com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.Builder.class);
   }
 
   private int bitField0_;
   public static final int TOPIC_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object topic_ = "";
   /**
-   *
-   *
    * 
    * Required. The topic for which we should compute the cursor.
    * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The topic. */ @java.lang.Override @@ -88,31 +63,29 @@ public java.lang.String getTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; } } /** - * - * *
    * Required. The topic for which we should compute the cursor.
    * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for topic. */ @java.lang.Override - public com.google.protobuf.ByteString getTopicBytes() { + public com.google.protobuf.ByteString + getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); topic_ = b; return b; } else { @@ -123,14 +96,11 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int PARTITION_FIELD_NUMBER = 2; private long partition_ = 0L; /** - * - * *
    * Required. The partition for which we should compute the cursor.
    * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The partition. */ @java.lang.Override @@ -141,17 +111,12 @@ public long getPartition() { public static final int TARGET_FIELD_NUMBER = 3; private com.google.cloud.pubsublite.proto.TimeTarget target_; /** - * - * *
    * Required. The target publish or event time. Specifying a future time will
    * return an unset cursor.
    * 
* - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the target field is set. */ @java.lang.Override @@ -159,46 +124,32 @@ public boolean hasTarget() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. The target publish or event time. Specifying a future time will
    * return an unset cursor.
    * 
* - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The target. */ @java.lang.Override public com.google.cloud.pubsublite.proto.TimeTarget getTarget() { - return target_ == null - ? com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance() - : target_; + return target_ == null ? com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance() : target_; } /** - * - * *
    * Required. The target publish or event time. Specifying a future time will
    * return an unset cursor.
    * 
* - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.pubsublite.proto.TimeTargetOrBuilder getTargetOrBuilder() { - return target_ == null - ? com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance() - : target_; + return target_ == null ? com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance() : target_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +161,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); } @@ -233,10 +185,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); } if (partition_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, partition_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, partition_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTarget()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTarget()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -246,19 +200,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest other = - (com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest) obj; + com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest other = (com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest) obj; - if (!getTopic().equals(other.getTopic())) return false; - if (getPartition() != other.getPartition()) return false; + if (!getTopic() + .equals(other.getTopic())) return false; + if (getPartition() + != other.getPartition()) return false; if (hasTarget() != other.hasTarget()) return false; if (hasTarget()) { - if (!getTarget().equals(other.getTarget())) return false; + if (!getTarget() + .equals(other.getTarget())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -274,7 +230,8 @@ public int hashCode() { hash = (37 * hash) + TOPIC_FIELD_NUMBER; hash = (53 * hash) + getTopic().hashCode(); hash = (37 * hash) + PARTITION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartition()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPartition()); if (hasTarget()) { hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().hashCode(); @@ -285,104 +242,98 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Compute the corresponding cursor for a publish or event time in a topic
    * partition.
@@ -390,23 +341,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.ComputeTimeCursorRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.ComputeTimeCursorRequest)
       com.google.cloud.pubsublite.proto.ComputeTimeCursorRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.pubsublite.proto.TopicStatsProto
-          .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.TopicStatsProto
-          .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.class,
-              com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.Builder.class);
+              com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.class, com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.newBuilder()
@@ -414,17 +363,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getTargetFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -440,9 +389,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.TopicStatsProto
-          .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor;
     }
 
     @java.lang.Override
@@ -461,11 +410,8 @@ public com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest buildPartial() {
-      com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest result =
-          new com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest result = new com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -480,7 +426,9 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeTimeCursorRe
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.target_ = targetBuilder_ == null ? target_ : targetBuilder_.build();
+        result.target_ = targetBuilder_ == null
+            ? target_
+            : targetBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       result.bitField0_ |= to_bitField0_;
@@ -490,39 +438,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeTimeCursorRe
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest) other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -530,8 +477,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest other) {
-      if (other == com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest.getDefaultInstance()) return this;
       if (!other.getTopic().isEmpty()) {
         topic_ = other.topic_;
         bitField0_ |= 0x00000001;
@@ -569,31 +515,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                topic_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                partition_ = input.readInt64();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                input.readMessage(getTargetFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              topic_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              partition_ = input.readInt64();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              input.readMessage(
+                  getTargetFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -603,27 +547,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object topic_ = "";
     /**
-     *
-     *
      * 
      * Required. The topic for which we should compute the cursor.
      * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; @@ -632,23 +571,20 @@ public java.lang.String getTopic() { } } /** - * - * *
      * Required. The topic for which we should compute the cursor.
      * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for topic. */ - public com.google.protobuf.ByteString getTopicBytes() { + public com.google.protobuf.ByteString + getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); topic_ = b; return b; } else { @@ -656,39 +592,28 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
      * Required. The topic for which we should compute the cursor.
      * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopic( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } topic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The topic for which we should compute the cursor.
      * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearTopic() { @@ -698,23 +623,17 @@ public Builder clearTopic() { return this; } /** - * - * *
      * Required. The topic for which we should compute the cursor.
      * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000001; @@ -722,16 +641,13 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { return this; } - private long partition_; + private long partition_ ; /** - * - * *
      * Required. The partition for which we should compute the cursor.
      * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The partition. */ @java.lang.Override @@ -739,14 +655,11 @@ public long getPartition() { return partition_; } /** - * - * *
      * Required. The partition for which we should compute the cursor.
      * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The partition to set. * @return This builder for chaining. */ @@ -758,14 +671,11 @@ public Builder setPartition(long value) { return this; } /** - * - * *
      * Required. The partition for which we should compute the cursor.
      * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPartition() { @@ -777,61 +687,42 @@ public Builder clearPartition() { private com.google.cloud.pubsublite.proto.TimeTarget target_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.TimeTarget, - com.google.cloud.pubsublite.proto.TimeTarget.Builder, - com.google.cloud.pubsublite.proto.TimeTargetOrBuilder> - targetBuilder_; + com.google.cloud.pubsublite.proto.TimeTarget, com.google.cloud.pubsublite.proto.TimeTarget.Builder, com.google.cloud.pubsublite.proto.TimeTargetOrBuilder> targetBuilder_; /** - * - * *
      * Required. The target publish or event time. Specifying a future time will
      * return an unset cursor.
      * 
* - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the target field is set. */ public boolean hasTarget() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. The target publish or event time. Specifying a future time will
      * return an unset cursor.
      * 
* - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The target. */ public com.google.cloud.pubsublite.proto.TimeTarget getTarget() { if (targetBuilder_ == null) { - return target_ == null - ? com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance() - : target_; + return target_ == null ? com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance() : target_; } else { return targetBuilder_.getMessage(); } } /** - * - * *
      * Required. The target publish or event time. Specifying a future time will
      * return an unset cursor.
      * 
* - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTarget(com.google.cloud.pubsublite.proto.TimeTarget value) { if (targetBuilder_ == null) { @@ -847,18 +738,15 @@ public Builder setTarget(com.google.cloud.pubsublite.proto.TimeTarget value) { return this; } /** - * - * *
      * Required. The target publish or event time. Specifying a future time will
      * return an unset cursor.
      * 
* - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setTarget(com.google.cloud.pubsublite.proto.TimeTarget.Builder builderForValue) { + public Builder setTarget( + com.google.cloud.pubsublite.proto.TimeTarget.Builder builderForValue) { if (targetBuilder_ == null) { target_ = builderForValue.build(); } else { @@ -869,22 +757,18 @@ public Builder setTarget(com.google.cloud.pubsublite.proto.TimeTarget.Builder bu return this; } /** - * - * *
      * Required. The target publish or event time. Specifying a future time will
      * return an unset cursor.
      * 
* - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeTarget(com.google.cloud.pubsublite.proto.TimeTarget value) { if (targetBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && target_ != null - && target_ != com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + target_ != null && + target_ != com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance()) { getTargetBuilder().mergeFrom(value); } else { target_ = value; @@ -899,16 +783,12 @@ public Builder mergeTarget(com.google.cloud.pubsublite.proto.TimeTarget value) { return this; } /** - * - * *
      * Required. The target publish or event time. Specifying a future time will
      * return an unset cursor.
      * 
* - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearTarget() { bitField0_ = (bitField0_ & ~0x00000004); @@ -921,16 +801,12 @@ public Builder clearTarget() { return this; } /** - * - * *
      * Required. The target publish or event time. Specifying a future time will
      * return an unset cursor.
      * 
* - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.TimeTarget.Builder getTargetBuilder() { bitField0_ |= 0x00000004; @@ -938,57 +814,45 @@ public com.google.cloud.pubsublite.proto.TimeTarget.Builder getTargetBuilder() { return getTargetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The target publish or event time. Specifying a future time will
      * return an unset cursor.
      * 
* - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.TimeTargetOrBuilder getTargetOrBuilder() { if (targetBuilder_ != null) { return targetBuilder_.getMessageOrBuilder(); } else { - return target_ == null - ? com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance() - : target_; + return target_ == null ? + com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance() : target_; } } /** - * - * *
      * Required. The target publish or event time. Specifying a future time will
      * return an unset cursor.
      * 
* - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.TimeTarget, - com.google.cloud.pubsublite.proto.TimeTarget.Builder, - com.google.cloud.pubsublite.proto.TimeTargetOrBuilder> + com.google.cloud.pubsublite.proto.TimeTarget, com.google.cloud.pubsublite.proto.TimeTarget.Builder, com.google.cloud.pubsublite.proto.TimeTargetOrBuilder> getTargetFieldBuilder() { if (targetBuilder_ == null) { - targetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.TimeTarget, - com.google.cloud.pubsublite.proto.TimeTarget.Builder, - com.google.cloud.pubsublite.proto.TimeTargetOrBuilder>( - getTarget(), getParentForChildren(), isClean()); + targetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.TimeTarget, com.google.cloud.pubsublite.proto.TimeTarget.Builder, com.google.cloud.pubsublite.proto.TimeTargetOrBuilder>( + getTarget(), + getParentForChildren(), + isClean()); target_ = null; } return targetBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -998,12 +862,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ComputeTimeCursorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ComputeTimeCursorRequest) private static final com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest(); } @@ -1012,27 +876,27 @@ public static com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ComputeTimeCursorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputeTimeCursorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1047,4 +911,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.ComputeTimeCursorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequestOrBuilder.java similarity index 52% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequestOrBuilder.java index 28bf28a1c..7b65f9033 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorRequestOrBuilder.java @@ -1,112 +1,70 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/topic_stats.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface ComputeTimeCursorRequestOrBuilder - extends +public interface ComputeTimeCursorRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ComputeTimeCursorRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The topic for which we should compute the cursor.
    * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The topic. */ java.lang.String getTopic(); /** - * - * *
    * Required. The topic for which we should compute the cursor.
    * 
* - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for topic. */ - com.google.protobuf.ByteString getTopicBytes(); + com.google.protobuf.ByteString + getTopicBytes(); /** - * - * *
    * Required. The partition for which we should compute the cursor.
    * 
* * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The partition. */ long getPartition(); /** - * - * *
    * Required. The target publish or event time. Specifying a future time will
    * return an unset cursor.
    * 
* - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the target field is set. */ boolean hasTarget(); /** - * - * *
    * Required. The target publish or event time. Specifying a future time will
    * return an unset cursor.
    * 
* - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The target. */ com.google.cloud.pubsublite.proto.TimeTarget getTarget(); /** - * - * *
    * Required. The target publish or event time. Specifying a future time will
    * return an unset cursor.
    * 
* - * - * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.TimeTarget target = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.pubsublite.proto.TimeTargetOrBuilder getTargetOrBuilder(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponse.java similarity index 68% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponse.java index c00839573..569c5c979 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponse.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/topic_stats.proto @@ -20,8 +5,6 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response containing the cursor corresponding to a publish or event time in a
  * topic partition.
@@ -29,45 +12,42 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.ComputeTimeCursorResponse}
  */
-public final class ComputeTimeCursorResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ComputeTimeCursorResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ComputeTimeCursorResponse)
     ComputeTimeCursorResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ComputeTimeCursorResponse.newBuilder() to construct.
   private ComputeTimeCursorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ComputeTimeCursorResponse() {}
+  private ComputeTimeCursorResponse() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ComputeTimeCursorResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.pubsublite.proto.TopicStatsProto
-        .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.TopicStatsProto
-        .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.class,
-            com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.Builder.class);
+            com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.class, com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.Builder.class);
   }
 
   private int bitField0_;
   public static final int CURSOR_FIELD_NUMBER = 1;
   private com.google.cloud.pubsublite.proto.Cursor cursor_;
   /**
-   *
-   *
    * 
    * If present, the cursor references the first message with time greater than
    * or equal to the specified target time. If such a message cannot be found,
@@ -75,7 +55,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ @java.lang.Override @@ -83,8 +62,6 @@ public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * If present, the cursor references the first message with time greater than
    * or equal to the specified target time. If such a message cannot be found,
@@ -92,18 +69,13 @@ public boolean hasCursor() {
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getCursor() { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } /** - * - * *
    * If present, the cursor references the first message with time greater than
    * or equal to the specified target time. If such a message cannot be found,
@@ -114,13 +86,10 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() {
    */
   @java.lang.Override
   public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
-    return cursor_ == null
-        ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()
-        : cursor_;
+    return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -132,7 +101,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(1, getCursor());
     }
@@ -146,7 +116,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCursor());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getCursor());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -156,17 +127,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse other =
-        (com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse) obj;
+    com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse other = (com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse) obj;
 
     if (hasCursor() != other.hasCursor()) return false;
     if (hasCursor()) {
-      if (!getCursor().equals(other.getCursor())) return false;
+      if (!getCursor()
+          .equals(other.getCursor())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -189,104 +160,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Response containing the cursor corresponding to a publish or event time in a
    * topic partition.
@@ -294,23 +259,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.ComputeTimeCursorResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.ComputeTimeCursorResponse)
       com.google.cloud.pubsublite.proto.ComputeTimeCursorResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.pubsublite.proto.TopicStatsProto
-          .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.TopicStatsProto
-          .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.class,
-              com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.Builder.class);
+              com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.class, com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.newBuilder()
@@ -318,17 +281,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getCursorFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -342,9 +305,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.TopicStatsProto
-          .internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.TopicStatsProto.internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor;
     }
 
     @java.lang.Override
@@ -363,11 +326,8 @@ public com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse buildPartial() {
-      com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse result =
-          new com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse result = new com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -376,7 +336,9 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeTimeCursorRe
       int from_bitField0_ = bitField0_;
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build();
+        result.cursor_ = cursorBuilder_ == null
+            ? cursor_
+            : cursorBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       result.bitField0_ |= to_bitField0_;
@@ -386,39 +348,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ComputeTimeCursorRe
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse) other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -426,8 +387,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse other) {
-      if (other == com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse.getDefaultInstance()) return this;
       if (other.hasCursor()) {
         mergeCursor(other.getCursor());
       }
@@ -457,19 +417,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getCursorFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getCursorFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -479,18 +439,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.pubsublite.proto.Cursor cursor_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Cursor,
-            com.google.cloud.pubsublite.proto.Cursor.Builder,
-            com.google.cloud.pubsublite.proto.CursorOrBuilder>
-        cursorBuilder_;
+        com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> cursorBuilder_;
     /**
-     *
-     *
      * 
      * If present, the cursor references the first message with time greater than
      * or equal to the specified target time. If such a message cannot be found,
@@ -498,15 +452,12 @@ public Builder mergeFrom(
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * If present, the cursor references the first message with time greater than
      * or equal to the specified target time. If such a message cannot be found,
@@ -514,21 +465,16 @@ public boolean hasCursor() {
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ public com.google.cloud.pubsublite.proto.Cursor getCursor() { if (cursorBuilder_ == null) { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } else { return cursorBuilder_.getMessage(); } } /** - * - * *
      * If present, the cursor references the first message with time greater than
      * or equal to the specified target time. If such a message cannot be found,
@@ -551,8 +497,6 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, the cursor references the first message with time greater than
      * or equal to the specified target time. If such a message cannot be found,
@@ -561,7 +505,8 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) {
      *
      * .google.cloud.pubsublite.v1.Cursor cursor = 1;
      */
-    public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
+    public Builder setCursor(
+        com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
       if (cursorBuilder_ == null) {
         cursor_ = builderForValue.build();
       } else {
@@ -572,8 +517,6 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, the cursor references the first message with time greater than
      * or equal to the specified target time. If such a message cannot be found,
@@ -584,9 +527,9 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde
      */
     public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       if (cursorBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && cursor_ != null
-            && cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          cursor_ != null &&
+          cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
           getCursorBuilder().mergeFrom(value);
         } else {
           cursor_ = value;
@@ -601,8 +544,6 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, the cursor references the first message with time greater than
      * or equal to the specified target time. If such a message cannot be found,
@@ -622,8 +563,6 @@ public Builder clearCursor() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, the cursor references the first message with time greater than
      * or equal to the specified target time. If such a message cannot be found,
@@ -638,8 +577,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() {
       return getCursorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If present, the cursor references the first message with time greater than
      * or equal to the specified target time. If such a message cannot be found,
@@ -652,14 +589,11 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
       if (cursorBuilder_ != null) {
         return cursorBuilder_.getMessageOrBuilder();
       } else {
-        return cursor_ == null
-            ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()
-            : cursor_;
+        return cursor_ == null ?
+            com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_;
       }
     }
     /**
-     *
-     *
      * 
      * If present, the cursor references the first message with time greater than
      * or equal to the specified target time. If such a message cannot be found,
@@ -669,24 +603,21 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
      * .google.cloud.pubsublite.v1.Cursor cursor = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Cursor,
-            com.google.cloud.pubsublite.proto.Cursor.Builder,
-            com.google.cloud.pubsublite.proto.CursorOrBuilder>
+        com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> 
         getCursorFieldBuilder() {
       if (cursorBuilder_ == null) {
-        cursorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.pubsublite.proto.Cursor,
-                com.google.cloud.pubsublite.proto.Cursor.Builder,
-                com.google.cloud.pubsublite.proto.CursorOrBuilder>(
-                getCursor(), getParentForChildren(), isClean());
+        cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>(
+                getCursor(),
+                getParentForChildren(),
+                isClean());
         cursor_ = null;
       }
       return cursorBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -696,12 +627,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ComputeTimeCursorResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ComputeTimeCursorResponse)
   private static final com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse();
   }
@@ -710,27 +641,27 @@ public static com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ComputeTimeCursorResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ComputeTimeCursorResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -745,4 +676,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.pubsublite.proto.ComputeTimeCursorResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponseOrBuilder.java
similarity index 68%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponseOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponseOrBuilder.java
index ce9ef48de..27bdbe7cf 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponseOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeTimeCursorResponseOrBuilder.java
@@ -1,32 +1,14 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/topic_stats.proto
 
 // Protobuf Java Version: 3.25.2
 package com.google.cloud.pubsublite.proto;
 
-public interface ComputeTimeCursorResponseOrBuilder
-    extends
+public interface ComputeTimeCursorResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ComputeTimeCursorResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * If present, the cursor references the first message with time greater than
    * or equal to the specified target time. If such a message cannot be found,
@@ -34,13 +16,10 @@ public interface ComputeTimeCursorResponseOrBuilder
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ boolean hasCursor(); /** - * - * *
    * If present, the cursor references the first message with time greater than
    * or equal to the specified target time. If such a message cannot be found,
@@ -48,13 +27,10 @@ public interface ComputeTimeCursorResponseOrBuilder
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ com.google.cloud.pubsublite.proto.Cursor getCursor(); /** - * - * *
    * If present, the cursor references the first message with time greater than
    * or equal to the specified target time. If such a message cannot be found,
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequest.java
similarity index 65%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequest.java
index 10cde9535..d9c8aaabb 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequest.java
@@ -1,18 +1,3 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/admin.proto
 
@@ -20,24 +5,21 @@
 package com.google.cloud.pubsublite.proto;
 
 /**
- *
- *
  * 
  * Request for CreateReservation.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CreateReservationRequest} */ -public final class CreateReservationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateReservationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.CreateReservationRequest) CreateReservationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateReservationRequest.newBuilder() to construct. private CreateReservationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateReservationRequest() { parent_ = ""; reservationId_ = ""; @@ -45,42 +27,35 @@ private CreateReservationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateReservationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CreateReservationRequest.class, - com.google.cloud.pubsublite.proto.CreateReservationRequest.Builder.class); + com.google.cloud.pubsublite.proto.CreateReservationRequest.class, com.google.cloud.pubsublite.proto.CreateReservationRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent location in which to create the reservation.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -89,32 +64,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent location in which to create the reservation.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -125,17 +98,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int RESERVATION_FIELD_NUMBER = 2; private com.google.cloud.pubsublite.proto.Reservation reservation_; /** - * - * *
    * Required. Configuration of the reservation to create. Its `name` field is
    * ignored.
    * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the reservation field is set. */ @java.lang.Override @@ -143,51 +111,35 @@ public boolean hasReservation() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. Configuration of the reservation to create. Its `name` field is
    * ignored.
    * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The reservation. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Reservation getReservation() { - return reservation_ == null - ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() - : reservation_; + return reservation_ == null ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() : reservation_; } /** - * - * *
    * Required. Configuration of the reservation to create. Its `name` field is
    * ignored.
    * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBuilder() { - return reservation_ == null - ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() - : reservation_; + return reservation_ == null ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() : reservation_; } public static final int RESERVATION_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object reservationId_ = ""; /** - * - * *
    * Required. The ID to use for the reservation, which will become the final
    * component of the reservation's name.
@@ -196,7 +148,6 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBu
    * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The reservationId. */ @java.lang.Override @@ -205,15 +156,14 @@ public java.lang.String getReservationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reservationId_ = s; return s; } } /** - * - * *
    * Required. The ID to use for the reservation, which will become the final
    * component of the reservation's name.
@@ -222,15 +172,16 @@ public java.lang.String getReservationId() {
    * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for reservationId. */ @java.lang.Override - public com.google.protobuf.ByteString getReservationIdBytes() { + public com.google.protobuf.ByteString + getReservationIdBytes() { java.lang.Object ref = reservationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reservationId_ = b; return b; } else { @@ -239,7 +190,6 @@ public com.google.protobuf.ByteString getReservationIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,7 +201,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -274,7 +225,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReservation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getReservation()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservationId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, reservationId_); @@ -287,20 +239,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.CreateReservationRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.CreateReservationRequest other = - (com.google.cloud.pubsublite.proto.CreateReservationRequest) obj; + com.google.cloud.pubsublite.proto.CreateReservationRequest other = (com.google.cloud.pubsublite.proto.CreateReservationRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasReservation() != other.hasReservation()) return false; if (hasReservation()) { - if (!getReservation().equals(other.getReservation())) return false; + if (!getReservation() + .equals(other.getReservation())) return false; } - if (!getReservationId().equals(other.getReservationId())) return false; + if (!getReservationId() + .equals(other.getReservationId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -326,127 +280,119 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.CreateReservationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.CreateReservationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.CreateReservationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.CreateReservationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.CreateReservationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.CreateReservationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.CreateReservationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.CreateReservationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.CreateReservationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.CreateReservationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.CreateReservationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.CreateReservationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.CreateReservationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.CreateReservationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.CreateReservationRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.CreateReservationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for CreateReservation.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CreateReservationRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.CreateReservationRequest) com.google.cloud.pubsublite.proto.CreateReservationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CreateReservationRequest.class, - com.google.cloud.pubsublite.proto.CreateReservationRequest.Builder.class); + com.google.cloud.pubsublite.proto.CreateReservationRequest.class, com.google.cloud.pubsublite.proto.CreateReservationRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.CreateReservationRequest.newBuilder() @@ -454,17 +400,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getReservationFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -480,9 +426,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor; } @java.lang.Override @@ -501,11 +447,8 @@ public com.google.cloud.pubsublite.proto.CreateReservationRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.CreateReservationRequest buildPartial() { - com.google.cloud.pubsublite.proto.CreateReservationRequest result = - new com.google.cloud.pubsublite.proto.CreateReservationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.CreateReservationRequest result = new com.google.cloud.pubsublite.proto.CreateReservationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -517,8 +460,9 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CreateReservationRe } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.reservation_ = - reservationBuilder_ == null ? reservation_ : reservationBuilder_.build(); + result.reservation_ = reservationBuilder_ == null + ? reservation_ + : reservationBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -531,39 +475,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CreateReservationRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.CreateReservationRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.CreateReservationRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.CreateReservationRequest)other); } else { super.mergeFrom(other); return this; @@ -571,8 +514,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.CreateReservationRequest other) { - if (other == com.google.cloud.pubsublite.proto.CreateReservationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.CreateReservationRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -612,31 +554,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getReservationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - reservationId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getReservationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + reservationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -646,28 +586,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent location in which to create the reservation.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -676,24 +611,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent location in which to create the reservation.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -701,41 +633,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent location in which to create the reservation.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent location in which to create the reservation.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -745,24 +666,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent location in which to create the reservation.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -772,61 +687,42 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.pubsublite.proto.Reservation reservation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Reservation, - com.google.cloud.pubsublite.proto.Reservation.Builder, - com.google.cloud.pubsublite.proto.ReservationOrBuilder> - reservationBuilder_; + com.google.cloud.pubsublite.proto.Reservation, com.google.cloud.pubsublite.proto.Reservation.Builder, com.google.cloud.pubsublite.proto.ReservationOrBuilder> reservationBuilder_; /** - * - * *
      * Required. Configuration of the reservation to create. Its `name` field is
      * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the reservation field is set. */ public boolean hasReservation() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Configuration of the reservation to create. Its `name` field is
      * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The reservation. */ public com.google.cloud.pubsublite.proto.Reservation getReservation() { if (reservationBuilder_ == null) { - return reservation_ == null - ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() - : reservation_; + return reservation_ == null ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() : reservation_; } else { return reservationBuilder_.getMessage(); } } /** - * - * *
      * Required. Configuration of the reservation to create. Its `name` field is
      * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setReservation(com.google.cloud.pubsublite.proto.Reservation value) { if (reservationBuilder_ == null) { @@ -842,16 +738,12 @@ public Builder setReservation(com.google.cloud.pubsublite.proto.Reservation valu return this; } /** - * - * *
      * Required. Configuration of the reservation to create. Its `name` field is
      * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setReservation( com.google.cloud.pubsublite.proto.Reservation.Builder builderForValue) { @@ -865,22 +757,18 @@ public Builder setReservation( return this; } /** - * - * *
      * Required. Configuration of the reservation to create. Its `name` field is
      * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeReservation(com.google.cloud.pubsublite.proto.Reservation value) { if (reservationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && reservation_ != null - && reservation_ != com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + reservation_ != null && + reservation_ != com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance()) { getReservationBuilder().mergeFrom(value); } else { reservation_ = value; @@ -895,16 +783,12 @@ public Builder mergeReservation(com.google.cloud.pubsublite.proto.Reservation va return this; } /** - * - * *
      * Required. Configuration of the reservation to create. Its `name` field is
      * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearReservation() { bitField0_ = (bitField0_ & ~0x00000002); @@ -917,16 +801,12 @@ public Builder clearReservation() { return this; } /** - * - * *
      * Required. Configuration of the reservation to create. Its `name` field is
      * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.Reservation.Builder getReservationBuilder() { bitField0_ |= 0x00000002; @@ -934,50 +814,38 @@ public com.google.cloud.pubsublite.proto.Reservation.Builder getReservationBuild return getReservationFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Configuration of the reservation to create. Its `name` field is
      * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBuilder() { if (reservationBuilder_ != null) { return reservationBuilder_.getMessageOrBuilder(); } else { - return reservation_ == null - ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() - : reservation_; + return reservation_ == null ? + com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() : reservation_; } } /** - * - * *
      * Required. Configuration of the reservation to create. Its `name` field is
      * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Reservation, - com.google.cloud.pubsublite.proto.Reservation.Builder, - com.google.cloud.pubsublite.proto.ReservationOrBuilder> + com.google.cloud.pubsublite.proto.Reservation, com.google.cloud.pubsublite.proto.Reservation.Builder, com.google.cloud.pubsublite.proto.ReservationOrBuilder> getReservationFieldBuilder() { if (reservationBuilder_ == null) { - reservationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Reservation, - com.google.cloud.pubsublite.proto.Reservation.Builder, - com.google.cloud.pubsublite.proto.ReservationOrBuilder>( - getReservation(), getParentForChildren(), isClean()); + reservationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Reservation, com.google.cloud.pubsublite.proto.Reservation.Builder, com.google.cloud.pubsublite.proto.ReservationOrBuilder>( + getReservation(), + getParentForChildren(), + isClean()); reservation_ = null; } return reservationBuilder_; @@ -985,8 +853,6 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBu private java.lang.Object reservationId_ = ""; /** - * - * *
      * Required. The ID to use for the reservation, which will become the final
      * component of the reservation's name.
@@ -995,13 +861,13 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBu
      * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The reservationId. */ public java.lang.String getReservationId() { java.lang.Object ref = reservationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reservationId_ = s; return s; @@ -1010,8 +876,6 @@ public java.lang.String getReservationId() { } } /** - * - * *
      * Required. The ID to use for the reservation, which will become the final
      * component of the reservation's name.
@@ -1020,14 +884,15 @@ public java.lang.String getReservationId() {
      * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for reservationId. */ - public com.google.protobuf.ByteString getReservationIdBytes() { + public com.google.protobuf.ByteString + getReservationIdBytes() { java.lang.Object ref = reservationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reservationId_ = b; return b; } else { @@ -1035,8 +900,6 @@ public com.google.protobuf.ByteString getReservationIdBytes() { } } /** - * - * *
      * Required. The ID to use for the reservation, which will become the final
      * component of the reservation's name.
@@ -1045,22 +908,18 @@ public com.google.protobuf.ByteString getReservationIdBytes() {
      * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The reservationId to set. * @return This builder for chaining. */ - public Builder setReservationId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReservationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } reservationId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the reservation, which will become the final
      * component of the reservation's name.
@@ -1069,7 +928,6 @@ public Builder setReservationId(java.lang.String value) {
      * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearReservationId() { @@ -1079,8 +937,6 @@ public Builder clearReservationId() { return this; } /** - * - * *
      * Required. The ID to use for the reservation, which will become the final
      * component of the reservation's name.
@@ -1089,23 +945,21 @@ public Builder clearReservationId() {
      * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for reservationId to set. * @return This builder for chaining. */ - public Builder setReservationIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReservationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reservationId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1115,12 +969,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.CreateReservationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.CreateReservationRequest) private static final com.google.cloud.pubsublite.proto.CreateReservationRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.CreateReservationRequest(); } @@ -1129,27 +983,27 @@ public static com.google.cloud.pubsublite.proto.CreateReservationRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateReservationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateReservationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1164,4 +1018,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.CreateReservationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequestOrBuilder.java index b4769ac78..b4f684864 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateReservationRequestOrBuilder.java @@ -1,107 +1,66 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface CreateReservationRequestOrBuilder - extends +public interface CreateReservationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.CreateReservationRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent location in which to create the reservation.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent location in which to create the reservation.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Configuration of the reservation to create. Its `name` field is
    * ignored.
    * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the reservation field is set. */ boolean hasReservation(); /** - * - * *
    * Required. Configuration of the reservation to create. Its `name` field is
    * ignored.
    * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The reservation. */ com.google.cloud.pubsublite.proto.Reservation getReservation(); /** - * - * *
    * Required. Configuration of the reservation to create. Its `name` field is
    * ignored.
    * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBuilder(); /** - * - * *
    * Required. The ID to use for the reservation, which will become the final
    * component of the reservation's name.
@@ -110,13 +69,10 @@ public interface CreateReservationRequestOrBuilder
    * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The reservationId. */ java.lang.String getReservationId(); /** - * - * *
    * Required. The ID to use for the reservation, which will become the final
    * component of the reservation's name.
@@ -125,8 +81,8 @@ public interface CreateReservationRequestOrBuilder
    * 
* * string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for reservationId. */ - com.google.protobuf.ByteString getReservationIdBytes(); + com.google.protobuf.ByteString + getReservationIdBytes(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequest.java similarity index 66% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequest.java index 880bb8652..10c993ce9 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -20,24 +5,21 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for CreateSubscription.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CreateSubscriptionRequest} */ -public final class CreateSubscriptionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateSubscriptionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.CreateSubscriptionRequest) CreateSubscriptionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateSubscriptionRequest.newBuilder() to construct. private CreateSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateSubscriptionRequest() { parent_ = ""; subscriptionId_ = ""; @@ -45,42 +27,35 @@ private CreateSubscriptionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateSubscriptionRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.class, - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.class, com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent location in which to create the subscription.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -89,32 +64,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent location in which to create the subscription.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -125,17 +98,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SUBSCRIPTION_FIELD_NUMBER = 2; private com.google.cloud.pubsublite.proto.Subscription subscription_; /** - * - * *
    * Required. Configuration of the subscription to create. Its `name` field is
    * ignored.
    * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subscription field is set. */ @java.lang.Override @@ -143,51 +111,35 @@ public boolean hasSubscription() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. Configuration of the subscription to create. Its `name` field is
    * ignored.
    * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The subscription. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Subscription getSubscription() { - return subscription_ == null - ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() - : subscription_; + return subscription_ == null ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() : subscription_; } /** - * - * *
    * Required. Configuration of the subscription to create. Its `name` field is
    * ignored.
    * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOrBuilder() { - return subscription_ == null - ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() - : subscription_; + return subscription_ == null ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() : subscription_; } public static final int SUBSCRIPTION_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object subscriptionId_ = ""; /** - * - * *
    * Required. The ID to use for the subscription, which will become the final
    * component of the subscription's name.
@@ -196,7 +148,6 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOr
    * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The subscriptionId. */ @java.lang.Override @@ -205,15 +156,14 @@ public java.lang.String getSubscriptionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscriptionId_ = s; return s; } } /** - * - * *
    * Required. The ID to use for the subscription, which will become the final
    * component of the subscription's name.
@@ -222,15 +172,16 @@ public java.lang.String getSubscriptionId() {
    * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for subscriptionId. */ @java.lang.Override - public com.google.protobuf.ByteString getSubscriptionIdBytes() { + public com.google.protobuf.ByteString + getSubscriptionIdBytes() { java.lang.Object ref = subscriptionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subscriptionId_ = b; return b; } else { @@ -241,8 +192,6 @@ public com.google.protobuf.ByteString getSubscriptionIdBytes() { public static final int SKIP_BACKLOG_FIELD_NUMBER = 4; private boolean skipBacklog_ = false; /** - * - * *
    * If true, the newly created subscription will only receive messages
    * published after the subscription was created. Otherwise, the entire
@@ -250,7 +199,6 @@ public com.google.protobuf.ByteString getSubscriptionIdBytes() {
    * 
* * bool skip_backlog = 4; - * * @return The skipBacklog. */ @java.lang.Override @@ -259,7 +207,6 @@ public boolean getSkipBacklog() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -271,7 +218,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -297,13 +245,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubscription()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSubscription()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscriptionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subscriptionId_); } if (skipBacklog_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, skipBacklog_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, skipBacklog_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -313,21 +263,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.CreateSubscriptionRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest other = - (com.google.cloud.pubsublite.proto.CreateSubscriptionRequest) obj; + com.google.cloud.pubsublite.proto.CreateSubscriptionRequest other = (com.google.cloud.pubsublite.proto.CreateSubscriptionRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasSubscription() != other.hasSubscription()) return false; if (hasSubscription()) { - if (!getSubscription().equals(other.getSubscription())) return false; + if (!getSubscription() + .equals(other.getSubscription())) return false; } - if (!getSubscriptionId().equals(other.getSubscriptionId())) return false; - if (getSkipBacklog() != other.getSkipBacklog()) return false; + if (!getSubscriptionId() + .equals(other.getSubscriptionId())) return false; + if (getSkipBacklog() + != other.getSkipBacklog()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -348,134 +301,127 @@ public int hashCode() { hash = (37 * hash) + SUBSCRIPTION_ID_FIELD_NUMBER; hash = (53 * hash) + getSubscriptionId().hashCode(); hash = (37 * hash) + SKIP_BACKLOG_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipBacklog()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSkipBacklog()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.CreateSubscriptionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for CreateSubscription.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CreateSubscriptionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.CreateSubscriptionRequest) com.google.cloud.pubsublite.proto.CreateSubscriptionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.class, - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.class, com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.newBuilder() @@ -483,17 +429,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getSubscriptionFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -510,9 +456,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor; } @java.lang.Override @@ -531,11 +477,8 @@ public com.google.cloud.pubsublite.proto.CreateSubscriptionRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.CreateSubscriptionRequest buildPartial() { - com.google.cloud.pubsublite.proto.CreateSubscriptionRequest result = - new com.google.cloud.pubsublite.proto.CreateSubscriptionRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.CreateSubscriptionRequest result = new com.google.cloud.pubsublite.proto.CreateSubscriptionRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -547,8 +490,9 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CreateSubscriptionR } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.subscription_ = - subscriptionBuilder_ == null ? subscription_ : subscriptionBuilder_.build(); + result.subscription_ = subscriptionBuilder_ == null + ? subscription_ + : subscriptionBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -564,39 +508,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CreateSubscriptionR public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.CreateSubscriptionRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.CreateSubscriptionRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.CreateSubscriptionRequest)other); } else { super.mergeFrom(other); return this; @@ -604,8 +547,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.CreateSubscriptionRequest other) { - if (other == com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.CreateSubscriptionRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -648,37 +590,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getSubscriptionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - subscriptionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - skipBacklog_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getSubscriptionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + subscriptionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + skipBacklog_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -688,28 +627,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent location in which to create the subscription.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -718,24 +652,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent location in which to create the subscription.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -743,41 +674,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent location in which to create the subscription.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent location in which to create the subscription.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -787,24 +707,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent location in which to create the subscription.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -814,61 +728,42 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.pubsublite.proto.Subscription subscription_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription, - com.google.cloud.pubsublite.proto.Subscription.Builder, - com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> - subscriptionBuilder_; + com.google.cloud.pubsublite.proto.Subscription, com.google.cloud.pubsublite.proto.Subscription.Builder, com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> subscriptionBuilder_; /** - * - * *
      * Required. Configuration of the subscription to create. Its `name` field is
      * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subscription field is set. */ public boolean hasSubscription() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Configuration of the subscription to create. Its `name` field is
      * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The subscription. */ public com.google.cloud.pubsublite.proto.Subscription getSubscription() { if (subscriptionBuilder_ == null) { - return subscription_ == null - ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() - : subscription_; + return subscription_ == null ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() : subscription_; } else { return subscriptionBuilder_.getMessage(); } } /** - * - * *
      * Required. Configuration of the subscription to create. Its `name` field is
      * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSubscription(com.google.cloud.pubsublite.proto.Subscription value) { if (subscriptionBuilder_ == null) { @@ -884,16 +779,12 @@ public Builder setSubscription(com.google.cloud.pubsublite.proto.Subscription va return this; } /** - * - * *
      * Required. Configuration of the subscription to create. Its `name` field is
      * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSubscription( com.google.cloud.pubsublite.proto.Subscription.Builder builderForValue) { @@ -907,23 +798,18 @@ public Builder setSubscription( return this; } /** - * - * *
      * Required. Configuration of the subscription to create. Its `name` field is
      * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSubscription(com.google.cloud.pubsublite.proto.Subscription value) { if (subscriptionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && subscription_ != null - && subscription_ - != com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + subscription_ != null && + subscription_ != com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance()) { getSubscriptionBuilder().mergeFrom(value); } else { subscription_ = value; @@ -938,16 +824,12 @@ public Builder mergeSubscription(com.google.cloud.pubsublite.proto.Subscription return this; } /** - * - * *
      * Required. Configuration of the subscription to create. Its `name` field is
      * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSubscription() { bitField0_ = (bitField0_ & ~0x00000002); @@ -960,16 +842,12 @@ public Builder clearSubscription() { return this; } /** - * - * *
      * Required. Configuration of the subscription to create. Its `name` field is
      * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.Subscription.Builder getSubscriptionBuilder() { bitField0_ |= 0x00000002; @@ -977,50 +855,38 @@ public com.google.cloud.pubsublite.proto.Subscription.Builder getSubscriptionBui return getSubscriptionFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Configuration of the subscription to create. Its `name` field is
      * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOrBuilder() { if (subscriptionBuilder_ != null) { return subscriptionBuilder_.getMessageOrBuilder(); } else { - return subscription_ == null - ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() - : subscription_; + return subscription_ == null ? + com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() : subscription_; } } /** - * - * *
      * Required. Configuration of the subscription to create. Its `name` field is
      * ignored.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription, - com.google.cloud.pubsublite.proto.Subscription.Builder, - com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> + com.google.cloud.pubsublite.proto.Subscription, com.google.cloud.pubsublite.proto.Subscription.Builder, com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> getSubscriptionFieldBuilder() { if (subscriptionBuilder_ == null) { - subscriptionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription, - com.google.cloud.pubsublite.proto.Subscription.Builder, - com.google.cloud.pubsublite.proto.SubscriptionOrBuilder>( - getSubscription(), getParentForChildren(), isClean()); + subscriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Subscription, com.google.cloud.pubsublite.proto.Subscription.Builder, com.google.cloud.pubsublite.proto.SubscriptionOrBuilder>( + getSubscription(), + getParentForChildren(), + isClean()); subscription_ = null; } return subscriptionBuilder_; @@ -1028,8 +894,6 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOr private java.lang.Object subscriptionId_ = ""; /** - * - * *
      * Required. The ID to use for the subscription, which will become the final
      * component of the subscription's name.
@@ -1038,13 +902,13 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOr
      * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The subscriptionId. */ public java.lang.String getSubscriptionId() { java.lang.Object ref = subscriptionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscriptionId_ = s; return s; @@ -1053,8 +917,6 @@ public java.lang.String getSubscriptionId() { } } /** - * - * *
      * Required. The ID to use for the subscription, which will become the final
      * component of the subscription's name.
@@ -1063,14 +925,15 @@ public java.lang.String getSubscriptionId() {
      * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for subscriptionId. */ - public com.google.protobuf.ByteString getSubscriptionIdBytes() { + public com.google.protobuf.ByteString + getSubscriptionIdBytes() { java.lang.Object ref = subscriptionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subscriptionId_ = b; return b; } else { @@ -1078,8 +941,6 @@ public com.google.protobuf.ByteString getSubscriptionIdBytes() { } } /** - * - * *
      * Required. The ID to use for the subscription, which will become the final
      * component of the subscription's name.
@@ -1088,22 +949,18 @@ public com.google.protobuf.ByteString getSubscriptionIdBytes() {
      * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The subscriptionId to set. * @return This builder for chaining. */ - public Builder setSubscriptionId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubscriptionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } subscriptionId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the subscription, which will become the final
      * component of the subscription's name.
@@ -1112,7 +969,6 @@ public Builder setSubscriptionId(java.lang.String value) {
      * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSubscriptionId() { @@ -1122,8 +978,6 @@ public Builder clearSubscriptionId() { return this; } /** - * - * *
      * Required. The ID to use for the subscription, which will become the final
      * component of the subscription's name.
@@ -1132,14 +986,12 @@ public Builder clearSubscriptionId() {
      * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for subscriptionId to set. * @return This builder for chaining. */ - public Builder setSubscriptionIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubscriptionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subscriptionId_ = value; bitField0_ |= 0x00000004; @@ -1147,10 +999,8 @@ public Builder setSubscriptionIdBytes(com.google.protobuf.ByteString value) { return this; } - private boolean skipBacklog_; + private boolean skipBacklog_ ; /** - * - * *
      * If true, the newly created subscription will only receive messages
      * published after the subscription was created. Otherwise, the entire
@@ -1158,7 +1008,6 @@ public Builder setSubscriptionIdBytes(com.google.protobuf.ByteString value) {
      * 
* * bool skip_backlog = 4; - * * @return The skipBacklog. */ @java.lang.Override @@ -1166,8 +1015,6 @@ public boolean getSkipBacklog() { return skipBacklog_; } /** - * - * *
      * If true, the newly created subscription will only receive messages
      * published after the subscription was created. Otherwise, the entire
@@ -1175,7 +1022,6 @@ public boolean getSkipBacklog() {
      * 
* * bool skip_backlog = 4; - * * @param value The skipBacklog to set. * @return This builder for chaining. */ @@ -1187,8 +1033,6 @@ public Builder setSkipBacklog(boolean value) { return this; } /** - * - * *
      * If true, the newly created subscription will only receive messages
      * published after the subscription was created. Otherwise, the entire
@@ -1196,7 +1040,6 @@ public Builder setSkipBacklog(boolean value) {
      * 
* * bool skip_backlog = 4; - * * @return This builder for chaining. */ public Builder clearSkipBacklog() { @@ -1205,9 +1048,9 @@ public Builder clearSkipBacklog() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1217,12 +1060,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.CreateSubscriptionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.CreateSubscriptionRequest) private static final com.google.cloud.pubsublite.proto.CreateSubscriptionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.CreateSubscriptionRequest(); } @@ -1231,27 +1074,27 @@ public static com.google.cloud.pubsublite.proto.CreateSubscriptionRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSubscriptionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSubscriptionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1266,4 +1109,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.pubsublite.proto.CreateSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequestOrBuilder.java index b8e59b9ec..2e20238a9 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateSubscriptionRequestOrBuilder.java @@ -1,107 +1,66 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface CreateSubscriptionRequestOrBuilder - extends +public interface CreateSubscriptionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.CreateSubscriptionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent location in which to create the subscription.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent location in which to create the subscription.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Configuration of the subscription to create. Its `name` field is
    * ignored.
    * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subscription field is set. */ boolean hasSubscription(); /** - * - * *
    * Required. Configuration of the subscription to create. Its `name` field is
    * ignored.
    * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The subscription. */ com.google.cloud.pubsublite.proto.Subscription getSubscription(); /** - * - * *
    * Required. Configuration of the subscription to create. Its `name` field is
    * ignored.
    * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOrBuilder(); /** - * - * *
    * Required. The ID to use for the subscription, which will become the final
    * component of the subscription's name.
@@ -110,13 +69,10 @@ public interface CreateSubscriptionRequestOrBuilder
    * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The subscriptionId. */ java.lang.String getSubscriptionId(); /** - * - * *
    * Required. The ID to use for the subscription, which will become the final
    * component of the subscription's name.
@@ -125,14 +81,12 @@ public interface CreateSubscriptionRequestOrBuilder
    * 
* * string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for subscriptionId. */ - com.google.protobuf.ByteString getSubscriptionIdBytes(); + com.google.protobuf.ByteString + getSubscriptionIdBytes(); /** - * - * *
    * If true, the newly created subscription will only receive messages
    * published after the subscription was created. Otherwise, the entire
@@ -140,7 +94,6 @@ public interface CreateSubscriptionRequestOrBuilder
    * 
* * bool skip_backlog = 4; - * * @return The skipBacklog. */ boolean getSkipBacklog(); diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequest.java similarity index 67% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequest.java index e5f62424f..c966cf8c7 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -20,24 +5,21 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for CreateTopic.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CreateTopicRequest} */ -public final class CreateTopicRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateTopicRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.CreateTopicRequest) CreateTopicRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateTopicRequest.newBuilder() to construct. private CreateTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateTopicRequest() { parent_ = ""; topicId_ = ""; @@ -45,42 +27,35 @@ private CreateTopicRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateTopicRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CreateTopicRequest.class, - com.google.cloud.pubsublite.proto.CreateTopicRequest.Builder.class); + com.google.cloud.pubsublite.proto.CreateTopicRequest.class, com.google.cloud.pubsublite.proto.CreateTopicRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent location in which to create the topic.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -89,32 +64,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent location in which to create the topic.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -125,16 +98,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int TOPIC_FIELD_NUMBER = 2; private com.google.cloud.pubsublite.proto.Topic topic_; /** - * - * *
    * Required. Configuration of the topic to create. Its `name` field is
    * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the topic field is set. */ @java.lang.Override @@ -142,16 +111,12 @@ public boolean hasTopic() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. Configuration of the topic to create. Its `name` field is
    * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The topic. */ @java.lang.Override @@ -159,15 +124,12 @@ public com.google.cloud.pubsublite.proto.Topic getTopic() { return topic_ == null ? com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() : topic_; } /** - * - * *
    * Required. Configuration of the topic to create. Its `name` field is
    * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() { @@ -175,12 +137,9 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() { } public static final int TOPIC_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object topicId_ = ""; /** - * - * *
    * Required. The ID to use for the topic, which will become the final
    * component of the topic's name.
@@ -189,7 +148,6 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() {
    * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The topicId. */ @java.lang.Override @@ -198,15 +156,14 @@ public java.lang.String getTopicId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topicId_ = s; return s; } } /** - * - * *
    * Required. The ID to use for the topic, which will become the final
    * component of the topic's name.
@@ -215,15 +172,16 @@ public java.lang.String getTopicId() {
    * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for topicId. */ @java.lang.Override - public com.google.protobuf.ByteString getTopicIdBytes() { + public com.google.protobuf.ByteString + getTopicIdBytes() { java.lang.Object ref = topicId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); topicId_ = b; return b; } else { @@ -232,7 +190,6 @@ public com.google.protobuf.ByteString getTopicIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -244,7 +201,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -267,7 +225,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTopic()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTopic()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topicId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, topicId_); @@ -280,20 +239,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.CreateTopicRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.CreateTopicRequest other = - (com.google.cloud.pubsublite.proto.CreateTopicRequest) obj; + com.google.cloud.pubsublite.proto.CreateTopicRequest other = (com.google.cloud.pubsublite.proto.CreateTopicRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasTopic() != other.hasTopic()) return false; if (hasTopic()) { - if (!getTopic().equals(other.getTopic())) return false; + if (!getTopic() + .equals(other.getTopic())) return false; } - if (!getTopicId().equals(other.getTopicId())) return false; + if (!getTopicId() + .equals(other.getTopicId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -319,126 +280,119 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.CreateTopicRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.CreateTopicRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.CreateTopicRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.CreateTopicRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.CreateTopicRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.CreateTopicRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.CreateTopicRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.CreateTopicRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.CreateTopicRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.CreateTopicRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.CreateTopicRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.CreateTopicRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.CreateTopicRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.CreateTopicRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.pubsublite.proto.CreateTopicRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for CreateTopic.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.CreateTopicRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.CreateTopicRequest) com.google.cloud.pubsublite.proto.CreateTopicRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.CreateTopicRequest.class, - com.google.cloud.pubsublite.proto.CreateTopicRequest.Builder.class); + com.google.cloud.pubsublite.proto.CreateTopicRequest.class, com.google.cloud.pubsublite.proto.CreateTopicRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.CreateTopicRequest.newBuilder() @@ -446,17 +400,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getTopicFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -472,9 +426,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor; } @java.lang.Override @@ -493,11 +447,8 @@ public com.google.cloud.pubsublite.proto.CreateTopicRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.CreateTopicRequest buildPartial() { - com.google.cloud.pubsublite.proto.CreateTopicRequest result = - new com.google.cloud.pubsublite.proto.CreateTopicRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.CreateTopicRequest result = new com.google.cloud.pubsublite.proto.CreateTopicRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -509,7 +460,9 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CreateTopicRequest } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.topic_ = topicBuilder_ == null ? topic_ : topicBuilder_.build(); + result.topic_ = topicBuilder_ == null + ? topic_ + : topicBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -522,39 +475,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.CreateTopicRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.CreateTopicRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.CreateTopicRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.CreateTopicRequest)other); } else { super.mergeFrom(other); return this; @@ -562,8 +514,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.CreateTopicRequest other) { - if (other == com.google.cloud.pubsublite.proto.CreateTopicRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.CreateTopicRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -603,31 +554,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getTopicFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - topicId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getTopicFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + topicId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -637,28 +586,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent location in which to create the topic.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -667,24 +611,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent location in which to create the topic.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -692,41 +633,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent location in which to create the topic.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent location in which to create the topic.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -736,24 +666,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent location in which to create the topic.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -763,58 +687,42 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.pubsublite.proto.Topic topic_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic, - com.google.cloud.pubsublite.proto.Topic.Builder, - com.google.cloud.pubsublite.proto.TopicOrBuilder> - topicBuilder_; + com.google.cloud.pubsublite.proto.Topic, com.google.cloud.pubsublite.proto.Topic.Builder, com.google.cloud.pubsublite.proto.TopicOrBuilder> topicBuilder_; /** - * - * *
      * Required. Configuration of the topic to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the topic field is set. */ public boolean hasTopic() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Configuration of the topic to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The topic. */ public com.google.cloud.pubsublite.proto.Topic getTopic() { if (topicBuilder_ == null) { - return topic_ == null - ? com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() - : topic_; + return topic_ == null ? com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() : topic_; } else { return topicBuilder_.getMessage(); } } /** - * - * *
      * Required. Configuration of the topic to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTopic(com.google.cloud.pubsublite.proto.Topic value) { if (topicBuilder_ == null) { @@ -830,17 +738,15 @@ public Builder setTopic(com.google.cloud.pubsublite.proto.Topic value) { return this; } /** - * - * *
      * Required. Configuration of the topic to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setTopic(com.google.cloud.pubsublite.proto.Topic.Builder builderForValue) { + public Builder setTopic( + com.google.cloud.pubsublite.proto.Topic.Builder builderForValue) { if (topicBuilder_ == null) { topic_ = builderForValue.build(); } else { @@ -851,21 +757,18 @@ public Builder setTopic(com.google.cloud.pubsublite.proto.Topic.Builder builderF return this; } /** - * - * *
      * Required. Configuration of the topic to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeTopic(com.google.cloud.pubsublite.proto.Topic value) { if (topicBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && topic_ != null - && topic_ != com.google.cloud.pubsublite.proto.Topic.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + topic_ != null && + topic_ != com.google.cloud.pubsublite.proto.Topic.getDefaultInstance()) { getTopicBuilder().mergeFrom(value); } else { topic_ = value; @@ -880,15 +783,12 @@ public Builder mergeTopic(com.google.cloud.pubsublite.proto.Topic value) { return this; } /** - * - * *
      * Required. Configuration of the topic to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearTopic() { bitField0_ = (bitField0_ & ~0x00000002); @@ -901,15 +801,12 @@ public Builder clearTopic() { return this; } /** - * - * *
      * Required. Configuration of the topic to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.Topic.Builder getTopicBuilder() { bitField0_ |= 0x00000002; @@ -917,48 +814,38 @@ public com.google.cloud.pubsublite.proto.Topic.Builder getTopicBuilder() { return getTopicFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Configuration of the topic to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() { if (topicBuilder_ != null) { return topicBuilder_.getMessageOrBuilder(); } else { - return topic_ == null - ? com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() - : topic_; + return topic_ == null ? + com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() : topic_; } } /** - * - * *
      * Required. Configuration of the topic to create. Its `name` field is
      * ignored.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic, - com.google.cloud.pubsublite.proto.Topic.Builder, - com.google.cloud.pubsublite.proto.TopicOrBuilder> + com.google.cloud.pubsublite.proto.Topic, com.google.cloud.pubsublite.proto.Topic.Builder, com.google.cloud.pubsublite.proto.TopicOrBuilder> getTopicFieldBuilder() { if (topicBuilder_ == null) { - topicBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic, - com.google.cloud.pubsublite.proto.Topic.Builder, - com.google.cloud.pubsublite.proto.TopicOrBuilder>( - getTopic(), getParentForChildren(), isClean()); + topicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Topic, com.google.cloud.pubsublite.proto.Topic.Builder, com.google.cloud.pubsublite.proto.TopicOrBuilder>( + getTopic(), + getParentForChildren(), + isClean()); topic_ = null; } return topicBuilder_; @@ -966,8 +853,6 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() { private java.lang.Object topicId_ = ""; /** - * - * *
      * Required. The ID to use for the topic, which will become the final
      * component of the topic's name.
@@ -976,13 +861,13 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() {
      * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The topicId. */ public java.lang.String getTopicId() { java.lang.Object ref = topicId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topicId_ = s; return s; @@ -991,8 +876,6 @@ public java.lang.String getTopicId() { } } /** - * - * *
      * Required. The ID to use for the topic, which will become the final
      * component of the topic's name.
@@ -1001,14 +884,15 @@ public java.lang.String getTopicId() {
      * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for topicId. */ - public com.google.protobuf.ByteString getTopicIdBytes() { + public com.google.protobuf.ByteString + getTopicIdBytes() { java.lang.Object ref = topicId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); topicId_ = b; return b; } else { @@ -1016,8 +900,6 @@ public com.google.protobuf.ByteString getTopicIdBytes() { } } /** - * - * *
      * Required. The ID to use for the topic, which will become the final
      * component of the topic's name.
@@ -1026,22 +908,18 @@ public com.google.protobuf.ByteString getTopicIdBytes() {
      * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The topicId to set. * @return This builder for chaining. */ - public Builder setTopicId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopicId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } topicId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the topic, which will become the final
      * component of the topic's name.
@@ -1050,7 +928,6 @@ public Builder setTopicId(java.lang.String value) {
      * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTopicId() { @@ -1060,8 +937,6 @@ public Builder clearTopicId() { return this; } /** - * - * *
      * Required. The ID to use for the topic, which will become the final
      * component of the topic's name.
@@ -1070,23 +945,21 @@ public Builder clearTopicId() {
      * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for topicId to set. * @return This builder for chaining. */ - public Builder setTopicIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopicIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); topicId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1096,12 +969,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.CreateTopicRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.CreateTopicRequest) private static final com.google.cloud.pubsublite.proto.CreateTopicRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.CreateTopicRequest(); } @@ -1110,27 +983,27 @@ public static com.google.cloud.pubsublite.proto.CreateTopicRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTopicRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTopicRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1145,4 +1018,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.CreateTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequestOrBuilder.java index b0529eb15..7b2bbf2ff 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CreateTopicRequestOrBuilder.java @@ -1,104 +1,66 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface CreateTopicRequestOrBuilder - extends +public interface CreateTopicRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.CreateTopicRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent location in which to create the topic.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent location in which to create the topic.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Configuration of the topic to create. Its `name` field is
    * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the topic field is set. */ boolean hasTopic(); /** - * - * *
    * Required. Configuration of the topic to create. Its `name` field is
    * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The topic. */ com.google.cloud.pubsublite.proto.Topic getTopic(); /** - * - * *
    * Required. Configuration of the topic to create. Its `name` field is
    * ignored.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder(); /** - * - * *
    * Required. The ID to use for the topic, which will become the final
    * component of the topic's name.
@@ -107,13 +69,10 @@ public interface CreateTopicRequestOrBuilder
    * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The topicId. */ java.lang.String getTopicId(); /** - * - * *
    * Required. The ID to use for the topic, which will become the final
    * component of the topic's name.
@@ -122,8 +81,8 @@ public interface CreateTopicRequestOrBuilder
    * 
* * string topic_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for topicId. */ - com.google.protobuf.ByteString getTopicIdBytes(); + com.google.protobuf.ByteString + getTopicIdBytes(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Cursor.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Cursor.java similarity index 64% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Cursor.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Cursor.java index 9541aacf0..bf16c15d8 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Cursor.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Cursor.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/common.proto @@ -20,59 +5,53 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * A cursor that describes the position of a message within a topic partition.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Cursor} */ -public final class Cursor extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Cursor extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.Cursor) CursorOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Cursor.newBuilder() to construct. private Cursor(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Cursor() {} + private Cursor() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Cursor(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Cursor_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Cursor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Cursor.class, - com.google.cloud.pubsublite.proto.Cursor.Builder.class); + com.google.cloud.pubsublite.proto.Cursor.class, com.google.cloud.pubsublite.proto.Cursor.Builder.class); } public static final int OFFSET_FIELD_NUMBER = 1; private long offset_ = 0L; /** - * - * *
    * The offset of a message within a topic partition. Must be greater than or
    * equal 0.
    * 
* * int64 offset = 1; - * * @return The offset. */ @java.lang.Override @@ -81,7 +60,6 @@ public long getOffset() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -93,7 +71,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (offset_ != 0L) { output.writeInt64(1, offset_); } @@ -107,7 +86,8 @@ public int getSerializedSize() { size = 0; if (offset_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, offset_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, offset_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -117,14 +97,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.Cursor)) { return super.equals(obj); } com.google.cloud.pubsublite.proto.Cursor other = (com.google.cloud.pubsublite.proto.Cursor) obj; - if (getOffset() != other.getOffset()) return false; + if (getOffset() + != other.getOffset()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -137,142 +118,139 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOffset()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.pubsublite.proto.Cursor parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.pubsublite.proto.Cursor parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Cursor parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Cursor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Cursor parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Cursor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Cursor parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Cursor parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.Cursor parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Cursor parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.Cursor parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.Cursor parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Cursor parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.Cursor parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.pubsublite.proto.Cursor prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A cursor that describes the position of a message within a topic partition.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Cursor} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.Cursor) com.google.cloud.pubsublite.proto.CursorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Cursor_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Cursor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Cursor.class, - com.google.cloud.pubsublite.proto.Cursor.Builder.class); + com.google.cloud.pubsublite.proto.Cursor.class, com.google.cloud.pubsublite.proto.Cursor.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.Cursor.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -282,9 +260,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Cursor_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Cursor_descriptor; } @java.lang.Override @@ -303,11 +281,8 @@ public com.google.cloud.pubsublite.proto.Cursor build() { @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor buildPartial() { - com.google.cloud.pubsublite.proto.Cursor result = - new com.google.cloud.pubsublite.proto.Cursor(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.Cursor result = new com.google.cloud.pubsublite.proto.Cursor(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -323,39 +298,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Cursor result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.Cursor) { - return mergeFrom((com.google.cloud.pubsublite.proto.Cursor) other); + return mergeFrom((com.google.cloud.pubsublite.proto.Cursor)other); } else { super.mergeFrom(other); return this; @@ -393,19 +367,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - offset_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + offset_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -415,20 +387,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long offset_; + private long offset_ ; /** - * - * *
      * The offset of a message within a topic partition. Must be greater than or
      * equal 0.
      * 
* * int64 offset = 1; - * * @return The offset. */ @java.lang.Override @@ -436,15 +404,12 @@ public long getOffset() { return offset_; } /** - * - * *
      * The offset of a message within a topic partition. Must be greater than or
      * equal 0.
      * 
* * int64 offset = 1; - * * @param value The offset to set. * @return This builder for chaining. */ @@ -456,15 +421,12 @@ public Builder setOffset(long value) { return this; } /** - * - * *
      * The offset of a message within a topic partition. Must be greater than or
      * equal 0.
      * 
* * int64 offset = 1; - * * @return This builder for chaining. */ public Builder clearOffset() { @@ -473,9 +435,9 @@ public Builder clearOffset() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -485,12 +447,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Cursor) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Cursor) private static final com.google.cloud.pubsublite.proto.Cursor DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Cursor(); } @@ -499,27 +461,27 @@ public static com.google.cloud.pubsublite.proto.Cursor getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Cursor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Cursor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -534,4 +496,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.Cursor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorOrBuilder.java new file mode 100644 index 000000000..2c32a4580 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorOrBuilder.java @@ -0,0 +1,21 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/common.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.pubsublite.proto; + +public interface CursorOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Cursor) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The offset of a message within a topic partition. Must be greater than or
+   * equal 0.
+   * 
+ * + * int64 offset = 1; + * @return The offset. + */ + long getOffset(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java new file mode 100644 index 000000000..571d4e274 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java @@ -0,0 +1,233 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/cursor.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.pubsublite.proto; + +public final class CursorProto { + private CursorProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\'google/cloud/pubsublite/v1/cursor.prot" + + "o\022\032google.cloud.pubsublite.v1\032\034google/ap" + + "i/annotations.proto\032\027google/api/client.p" + + "roto\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\032\'google/cloud/p" + + "ubsublite/v1/common.proto\"E\n\032InitialComm" + + "itCursorRequest\022\024\n\014subscription\030\001 \001(\t\022\021\n" + + "\tpartition\030\002 \001(\003\"\035\n\033InitialCommitCursorR" + + "esponse\"R\n\034SequencedCommitCursorRequest\022" + + "2\n\006cursor\030\001 \001(\0132\".google.cloud.pubsublit" + + "e.v1.Cursor\"=\n\035SequencedCommitCursorResp" + + "onse\022\034\n\024acknowledged_commits\030\001 \001(\003\"\300\001\n\034S" + + "treamingCommitCursorRequest\022I\n\007initial\030\001" + + " \001(\01326.google.cloud.pubsublite.v1.Initia" + + "lCommitCursorRequestH\000\022J\n\006commit\030\002 \001(\01328" + + ".google.cloud.pubsublite.v1.SequencedCom" + + "mitCursorRequestH\000B\t\n\007request\"\303\001\n\035Stream" + + "ingCommitCursorResponse\022J\n\007initial\030\001 \001(\013" + + "27.google.cloud.pubsublite.v1.InitialCom" + + "mitCursorResponseH\000\022K\n\006commit\030\002 \001(\01329.go" + + "ogle.cloud.pubsublite.v1.SequencedCommit" + + "CursorResponseH\000B\t\n\007request\"r\n\023CommitCur" + + "sorRequest\022\024\n\014subscription\030\001 \001(\t\022\021\n\tpart" + + "ition\030\002 \001(\003\0222\n\006cursor\030\003 \001(\0132\".google.clo" + + "ud.pubsublite.v1.Cursor\"\026\n\024CommitCursorR" + + "esponse\"\204\001\n\033ListPartitionCursorsRequest\022" + + ">\n\006parent\030\001 \001(\tB.\340A\002\372A(\n&pubsublite.goog" + + "leapis.com/Subscription\022\021\n\tpage_size\030\002 \001" + + "(\005\022\022\n\npage_token\030\003 \001(\t\"X\n\017PartitionCurso" + + "r\022\021\n\tpartition\030\001 \001(\003\0222\n\006cursor\030\002 \001(\0132\".g" + + "oogle.cloud.pubsublite.v1.Cursor\"\177\n\034List" + + "PartitionCursorsResponse\022F\n\021partition_cu" + + "rsors\030\001 \003(\0132+.google.cloud.pubsublite.v1" + + ".PartitionCursor\022\027\n\017next_page_token\030\002 \001(" + + "\t2\242\005\n\rCursorService\022\222\001\n\025StreamingCommitC" + + "ursor\0228.google.cloud.pubsublite.v1.Strea" + + "mingCommitCursorRequest\0329.google.cloud.p" + + "ubsublite.v1.StreamingCommitCursorRespon" + + "se\"\000(\0010\001\022\313\001\n\014CommitCursor\022/.google.cloud" + + ".pubsublite.v1.CommitCursorRequest\0320.goo" + + "gle.cloud.pubsublite.v1.CommitCursorResp" + + "onse\"X\202\323\344\223\002R\"M/v1/cursor/{subscription=p" + + "rojects/*/locations/*/subscriptions/*}:c" + + "ommitCursor:\001*\022\336\001\n\024ListPartitionCursors\022" + + "7.google.cloud.pubsublite.v1.ListPartiti" + + "onCursorsRequest\0328.google.cloud.pubsubli" + + "te.v1.ListPartitionCursorsResponse\"S\332A\006p" + + "arent\202\323\344\223\002D\022B/v1/cursor/{parent=projects" + + "/*/locations/*/subscriptions/*}/cursors\032" + + "M\312A\031pubsublite.googleapis.com\322A.https://" + + "www.googleapis.com/auth/cloud-platformB\317" + + "\001\n!com.google.cloud.pubsublite.protoB\013Cu" + + "rsorProtoP\001Z>cloud.google.com/go/pubsubl" + + "ite/apiv1/pubsublitepb;pubsublitepb\370\001\001\252\002" + + "\032Google.Cloud.PubSubLite.V1\312\002\032Google\\Clo" + + "ud\\PubSubLite\\V1\352\002\035Google::Cloud::PubSub" + + "Lite::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(), + }); + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor, + new java.lang.String[] { "Subscription", "Partition", }); + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor, + new java.lang.String[] { "Cursor", }); + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor, + new java.lang.String[] { "AcknowledgedCommits", }); + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor, + new java.lang.String[] { "Initial", "Commit", "Request", }); + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor, + new java.lang.String[] { "Initial", "Commit", "Request", }); + internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor, + new java.lang.String[] { "Subscription", "Partition", "Cursor", }); + internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor, + new java.lang.String[] { "Partition", "Cursor", }); + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor, + new java.lang.String[] { "PartitionCursors", "NextPageToken", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequest.java similarity index 63% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequest.java index 6e729f336..f45f6b192 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -20,66 +5,56 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for DeleteReservation.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.DeleteReservationRequest} */ -public final class DeleteReservationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteReservationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.DeleteReservationRequest) DeleteReservationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteReservationRequest.newBuilder() to construct. private DeleteReservationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteReservationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteReservationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.DeleteReservationRequest.class, - com.google.cloud.pubsublite.proto.DeleteReservationRequest.Builder.class); + com.google.cloud.pubsublite.proto.DeleteReservationRequest.class, com.google.cloud.pubsublite.proto.DeleteReservationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the reservation to delete.
    * Structured like:
    * projects/{project_number}/locations/{location}/reservations/{reservation_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -88,33 +63,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the reservation to delete.
    * Structured like:
    * projects/{project_number}/locations/{location}/reservations/{reservation_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +107,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +132,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.DeleteReservationRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.DeleteReservationRequest other = - (com.google.cloud.pubsublite.proto.DeleteReservationRequest) obj; + com.google.cloud.pubsublite.proto.DeleteReservationRequest other = (com.google.cloud.pubsublite.proto.DeleteReservationRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +160,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.DeleteReservationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.DeleteReservationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.DeleteReservationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.DeleteReservationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.DeleteReservationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.DeleteReservationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.DeleteReservationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.DeleteReservationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.DeleteReservationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.DeleteReservationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.DeleteReservationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.DeleteReservationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.DeleteReservationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.DeleteReservationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.DeleteReservationRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.DeleteReservationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for DeleteReservation.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.DeleteReservationRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.DeleteReservationRequest) com.google.cloud.pubsublite.proto.DeleteReservationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.DeleteReservationRequest.class, - com.google.cloud.pubsublite.proto.DeleteReservationRequest.Builder.class); + com.google.cloud.pubsublite.proto.DeleteReservationRequest.class, com.google.cloud.pubsublite.proto.DeleteReservationRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.DeleteReservationRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +294,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor; } @java.lang.Override @@ -347,11 +315,8 @@ public com.google.cloud.pubsublite.proto.DeleteReservationRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.DeleteReservationRequest buildPartial() { - com.google.cloud.pubsublite.proto.DeleteReservationRequest result = - new com.google.cloud.pubsublite.proto.DeleteReservationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.DeleteReservationRequest result = new com.google.cloud.pubsublite.proto.DeleteReservationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -367,39 +332,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.DeleteReservationRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.DeleteReservationRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.DeleteReservationRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.DeleteReservationRequest)other); } else { super.mergeFrom(other); return this; @@ -407,8 +371,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.DeleteReservationRequest other) { - if (other == com.google.cloud.pubsublite.proto.DeleteReservationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.DeleteReservationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -440,19 +403,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,29 +423,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the reservation to delete.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -493,25 +449,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the reservation to delete.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -519,43 +472,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the reservation to delete.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the reservation to delete.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -565,34 +507,28 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the reservation to delete.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -602,12 +538,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.DeleteReservationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.DeleteReservationRequest) private static final com.google.cloud.pubsublite.proto.DeleteReservationRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.DeleteReservationRequest(); } @@ -616,27 +552,27 @@ public static com.google.cloud.pubsublite.proto.DeleteReservationRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteReservationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteReservationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -651,4 +587,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.DeleteReservationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java new file mode 100644 index 000000000..58e69a90d --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.pubsublite.proto; + +public interface DeleteReservationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.DeleteReservationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the reservation to delete.
+   * Structured like:
+   * projects/{project_number}/locations/{location}/reservations/{reservation_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the reservation to delete.
+   * Structured like:
+   * projects/{project_number}/locations/{location}/reservations/{reservation_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequest.java similarity index 61% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequest.java index c691f67a5..fd9199cdd 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -20,64 +5,54 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for DeleteSubscription.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.DeleteSubscriptionRequest} */ -public final class DeleteSubscriptionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteSubscriptionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.DeleteSubscriptionRequest) DeleteSubscriptionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteSubscriptionRequest.newBuilder() to construct. private DeleteSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteSubscriptionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteSubscriptionRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.class, - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.class, com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the subscription to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -86,31 +61,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the subscription to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -119,7 +92,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -131,7 +103,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -155,15 +128,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest other = - (com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest) obj; + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest other = (com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -183,136 +156,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for DeleteSubscription.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.DeleteSubscriptionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.DeleteSubscriptionRequest) com.google.cloud.pubsublite.proto.DeleteSubscriptionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.class, - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.class, com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -322,9 +290,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor; } @java.lang.Override @@ -343,11 +311,8 @@ public com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest buildPartial() { - com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest result = - new com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest result = new com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -363,39 +328,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.DeleteSubscriptionR public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest)other); } else { super.mergeFrom(other); return this; @@ -403,8 +367,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest other) { - if (other == com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -436,19 +399,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -458,27 +419,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the subscription to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -487,23 +443,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the subscription to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -511,39 +464,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the subscription to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the subscription to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -553,32 +495,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the subscription to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -588,12 +524,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.DeleteSubscriptionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.DeleteSubscriptionRequest) private static final com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest(); } @@ -602,27 +538,27 @@ public static com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSubscriptionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSubscriptionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -637,4 +573,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.pubsublite.proto.DeleteSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequestOrBuilder.java new file mode 100644 index 000000000..ab3a4f5ec --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequestOrBuilder.java @@ -0,0 +1,30 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.pubsublite.proto; + +public interface DeleteSubscriptionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.DeleteSubscriptionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the subscription to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the subscription to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequest.java similarity index 62% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequest.java index 2f89b1ef7..4a1226633 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -20,64 +5,54 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for DeleteTopic.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.DeleteTopicRequest} */ -public final class DeleteTopicRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteTopicRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.DeleteTopicRequest) DeleteTopicRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteTopicRequest.newBuilder() to construct. private DeleteTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteTopicRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteTopicRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.DeleteTopicRequest.class, - com.google.cloud.pubsublite.proto.DeleteTopicRequest.Builder.class); + com.google.cloud.pubsublite.proto.DeleteTopicRequest.class, com.google.cloud.pubsublite.proto.DeleteTopicRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the topic to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -86,31 +61,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the topic to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -119,7 +92,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -131,7 +103,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -155,15 +128,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.DeleteTopicRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.DeleteTopicRequest other = - (com.google.cloud.pubsublite.proto.DeleteTopicRequest) obj; + com.google.cloud.pubsublite.proto.DeleteTopicRequest other = (com.google.cloud.pubsublite.proto.DeleteTopicRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -183,135 +156,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.DeleteTopicRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.DeleteTopicRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.DeleteTopicRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.DeleteTopicRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.DeleteTopicRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.DeleteTopicRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.DeleteTopicRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.DeleteTopicRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.DeleteTopicRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.DeleteTopicRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.DeleteTopicRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.DeleteTopicRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.DeleteTopicRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.DeleteTopicRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.pubsublite.proto.DeleteTopicRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for DeleteTopic.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.DeleteTopicRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.DeleteTopicRequest) com.google.cloud.pubsublite.proto.DeleteTopicRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.DeleteTopicRequest.class, - com.google.cloud.pubsublite.proto.DeleteTopicRequest.Builder.class); + com.google.cloud.pubsublite.proto.DeleteTopicRequest.class, com.google.cloud.pubsublite.proto.DeleteTopicRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.DeleteTopicRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -321,9 +290,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor; } @java.lang.Override @@ -342,11 +311,8 @@ public com.google.cloud.pubsublite.proto.DeleteTopicRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.DeleteTopicRequest buildPartial() { - com.google.cloud.pubsublite.proto.DeleteTopicRequest result = - new com.google.cloud.pubsublite.proto.DeleteTopicRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.DeleteTopicRequest result = new com.google.cloud.pubsublite.proto.DeleteTopicRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -362,39 +328,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.DeleteTopicRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.DeleteTopicRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.DeleteTopicRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.DeleteTopicRequest)other); } else { super.mergeFrom(other); return this; @@ -402,8 +367,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.DeleteTopicRequest other) { - if (other == com.google.cloud.pubsublite.proto.DeleteTopicRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.DeleteTopicRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -435,19 +399,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -457,27 +419,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the topic to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -486,23 +443,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the topic to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -510,39 +464,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the topic to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the topic to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -552,32 +495,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the topic to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -587,12 +524,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.DeleteTopicRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.DeleteTopicRequest) private static final com.google.cloud.pubsublite.proto.DeleteTopicRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.DeleteTopicRequest(); } @@ -601,27 +538,27 @@ public static com.google.cloud.pubsublite.proto.DeleteTopicRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteTopicRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTopicRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -636,4 +573,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.DeleteTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequestOrBuilder.java new file mode 100644 index 000000000..d7948f808 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequestOrBuilder.java @@ -0,0 +1,30 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.pubsublite.proto; + +public interface DeleteTopicRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.DeleteTopicRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the topic to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the topic to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfig.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfig.java similarity index 70% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfig.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfig.java index 59cde2e35..d9771ce0f 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfig.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/common.proto @@ -20,8 +5,6 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Configuration for a Pub/Sub Lite subscription that writes messages to a
  * destination. User subscriber clients must not connect to this subscription.
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.ExportConfig}
  */
-public final class ExportConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ExportConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ExportConfig)
     ExportConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ExportConfig.newBuilder() to construct.
   private ExportConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ExportConfig() {
     desiredState_ = 0;
     currentState_ = 0;
@@ -47,38 +29,34 @@ private ExportConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ExportConfig();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.pubsublite.proto.CommonProto
-        .internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.CommonProto
-        .internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.ExportConfig.class,
-            com.google.cloud.pubsublite.proto.ExportConfig.Builder.class);
+            com.google.cloud.pubsublite.proto.ExportConfig.class, com.google.cloud.pubsublite.proto.ExportConfig.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The desired export state.
    * 
* * Protobuf enum {@code google.cloud.pubsublite.v1.ExportConfig.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value. This value is unused.
      * 
@@ -87,8 +65,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Messages are being exported.
      * 
@@ -97,8 +73,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(1), /** - * - * *
      * Exporting messages is suspended.
      * 
@@ -107,8 +81,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ PAUSED(2), /** - * - * *
      * Messages cannot be exported due to permission denied errors. Output only.
      * 
@@ -117,8 +89,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ PERMISSION_DENIED(3), /** - * - * *
      * Messages cannot be exported due to missing resources. Output only.
      * 
@@ -130,8 +100,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value. This value is unused.
      * 
@@ -140,8 +108,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Messages are being exported.
      * 
@@ -150,8 +116,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 1; /** - * - * *
      * Exporting messages is suspended.
      * 
@@ -160,8 +124,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PAUSED_VALUE = 2; /** - * - * *
      * Messages cannot be exported due to permission denied errors. Output only.
      * 
@@ -170,8 +132,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PERMISSION_DENIED_VALUE = 3; /** - * - * *
      * Messages cannot be exported due to missing resources. Output only.
      * 
@@ -180,6 +140,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOT_FOUND_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -204,53 +165,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return ACTIVE; - case 2: - return PAUSED; - case 3: - return PERMISSION_DENIED; - case 4: - return NOT_FOUND; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; + case 0: return STATE_UNSPECIFIED; + case 1: return ACTIVE; + case 2: return PAUSED; + case 3: return PERMISSION_DENIED; + case 4: return NOT_FOUND; + default: return null; + } } - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.pubsublite.proto.ExportConfig.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -267,14 +226,11 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.pubsublite.v1.ExportConfig.State) } - public interface PubSubConfigOrBuilder - extends + public interface PubSubConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ExportConfig.PubSubConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The name of the Pub/Sub topic.
      * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -282,13 +238,10 @@ public interface PubSubConfigOrBuilder
      * 
* * string topic = 1; - * * @return The topic. */ java.lang.String getTopic(); /** - * - * *
      * The name of the Pub/Sub topic.
      * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -296,62 +249,55 @@ public interface PubSubConfigOrBuilder
      * 
* * string topic = 1; - * * @return The bytes for topic. */ - com.google.protobuf.ByteString getTopicBytes(); + com.google.protobuf.ByteString + getTopicBytes(); } /** - * - * *
    * Configuration for exporting to a Pub/Sub topic.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ExportConfig.PubSubConfig} */ - public static final class PubSubConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class PubSubConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ExportConfig.PubSubConfig) PubSubConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PubSubConfig.newBuilder() to construct. private PubSubConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PubSubConfig() { topic_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PubSubConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.class, - com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder.class); + com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.class, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; /** - * - * *
      * The name of the Pub/Sub topic.
      * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -359,7 +305,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string topic = 1; - * * @return The topic. */ @java.lang.Override @@ -368,15 +313,14 @@ public java.lang.String getTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; } } /** - * - * *
      * The name of the Pub/Sub topic.
      * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -384,15 +328,16 @@ public java.lang.String getTopic() {
      * 
* * string topic = 1; - * * @return The bytes for topic. */ @java.lang.Override - public com.google.protobuf.ByteString getTopicBytes() { + public com.google.protobuf.ByteString + getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); topic_ = b; return b; } else { @@ -401,7 +346,6 @@ public com.google.protobuf.ByteString getTopicBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -413,7 +357,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); } @@ -437,15 +382,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig other = - (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) obj; + com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig other = (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) obj; - if (!getTopic().equals(other.getTopic())) return false; + if (!getTopic() + .equals(other.getTopic())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -465,94 +410,89 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -562,41 +502,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Configuration for exporting to a Pub/Sub topic.
      * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ExportConfig.PubSubConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.ExportConfig.PubSubConfig) com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.class, - com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder.class); + com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.class, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -606,14 +544,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.getDefaultInstance(); } @@ -628,17 +565,13 @@ public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig buildPartial() { - com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig result = - new com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig result = new com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.topic_ = topic_; @@ -649,41 +582,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) { - return mergeFrom((com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig)other); } else { super.mergeFrom(other); return this; @@ -691,9 +621,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig other) { - if (other - == com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.getDefaultInstance()) return this; if (!other.getTopic().isEmpty()) { topic_ = other.topic_; bitField0_ |= 0x00000001; @@ -725,19 +653,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - topic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -747,13 +673,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object topic_ = ""; /** - * - * *
        * The name of the Pub/Sub topic.
        * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -761,13 +684,13 @@ public Builder mergeFrom(
        * 
* * string topic = 1; - * * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; @@ -776,8 +699,6 @@ public java.lang.String getTopic() { } } /** - * - * *
        * The name of the Pub/Sub topic.
        * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -785,14 +706,15 @@ public java.lang.String getTopic() {
        * 
* * string topic = 1; - * * @return The bytes for topic. */ - public com.google.protobuf.ByteString getTopicBytes() { + public com.google.protobuf.ByteString + getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); topic_ = b; return b; } else { @@ -800,8 +722,6 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
        * The name of the Pub/Sub topic.
        * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -809,22 +729,18 @@ public com.google.protobuf.ByteString getTopicBytes() {
        * 
* * string topic = 1; - * * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopic( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } topic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The name of the Pub/Sub topic.
        * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -832,7 +748,6 @@ public Builder setTopic(java.lang.String value) {
        * 
* * string topic = 1; - * * @return This builder for chaining. */ public Builder clearTopic() { @@ -842,8 +757,6 @@ public Builder clearTopic() { return this; } /** - * - * *
        * The name of the Pub/Sub topic.
        * Structured like: projects/{project_number}/topics/{topic_id}.
@@ -851,21 +764,18 @@ public Builder clearTopic() {
        * 
* * string topic = 1; - * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -878,13 +788,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ExportConfig.PubSubConfig) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ExportConfig.PubSubConfig) - private static final com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig(); } @@ -893,28 +802,27 @@ public static com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PubSubConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PubSubConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -929,21 +837,18 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int destinationCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PUBSUB_CONFIG(3), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -959,113 +864,82 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 3: - return PUBSUB_CONFIG; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 3: return PUBSUB_CONFIG; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public static final int DESIRED_STATE_FIELD_NUMBER = 1; private int desiredState_ = 0; /** - * - * *
    * The desired state of this export. Setting this to values other than
    * `ACTIVE` and `PAUSED` will result in an error.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1; - * * @return The enum numeric value on the wire for desiredState. */ - @java.lang.Override - public int getDesiredStateValue() { + @java.lang.Override public int getDesiredStateValue() { return desiredState_; } /** - * - * *
    * The desired state of this export. Setting this to values other than
    * `ACTIVE` and `PAUSED` will result in an error.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1; - * * @return The desiredState. */ - @java.lang.Override - public com.google.cloud.pubsublite.proto.ExportConfig.State getDesiredState() { - com.google.cloud.pubsublite.proto.ExportConfig.State result = - com.google.cloud.pubsublite.proto.ExportConfig.State.forNumber(desiredState_); - return result == null - ? com.google.cloud.pubsublite.proto.ExportConfig.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.pubsublite.proto.ExportConfig.State getDesiredState() { + com.google.cloud.pubsublite.proto.ExportConfig.State result = com.google.cloud.pubsublite.proto.ExportConfig.State.forNumber(desiredState_); + return result == null ? com.google.cloud.pubsublite.proto.ExportConfig.State.UNRECOGNIZED : result; } public static final int CURRENT_STATE_FIELD_NUMBER = 6; private int currentState_ = 0; /** - * - * *
    * Output only. The current state of the export, which may be different to the
    * desired state due to errors. This field is output only.
    * 
* - * - * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for currentState. */ - @java.lang.Override - public int getCurrentStateValue() { + @java.lang.Override public int getCurrentStateValue() { return currentState_; } /** - * - * *
    * Output only. The current state of the export, which may be different to the
    * desired state due to errors. This field is output only.
    * 
* - * - * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The currentState. */ - @java.lang.Override - public com.google.cloud.pubsublite.proto.ExportConfig.State getCurrentState() { - com.google.cloud.pubsublite.proto.ExportConfig.State result = - com.google.cloud.pubsublite.proto.ExportConfig.State.forNumber(currentState_); - return result == null - ? com.google.cloud.pubsublite.proto.ExportConfig.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.pubsublite.proto.ExportConfig.State getCurrentState() { + com.google.cloud.pubsublite.proto.ExportConfig.State result = com.google.cloud.pubsublite.proto.ExportConfig.State.forNumber(currentState_); + return result == null ? com.google.cloud.pubsublite.proto.ExportConfig.State.UNRECOGNIZED : result; } public static final int DEAD_LETTER_TOPIC_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object deadLetterTopic_ = ""; /** - * - * *
    * Optional. The name of an optional Pub/Sub Lite topic to publish messages
    * that can not be exported to the destination. For example, the message can
@@ -1078,10 +952,7 @@ public com.google.cloud.pubsublite.proto.ExportConfig.State getCurrentState() {
    * may be changed or removed.
    * 
* - * - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The deadLetterTopic. */ @java.lang.Override @@ -1090,15 +961,14 @@ public java.lang.String getDeadLetterTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deadLetterTopic_ = s; return s; } } /** - * - * *
    * Optional. The name of an optional Pub/Sub Lite topic to publish messages
    * that can not be exported to the destination. For example, the message can
@@ -1111,18 +981,17 @@ public java.lang.String getDeadLetterTopic() {
    * may be changed or removed.
    * 
* - * - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for deadLetterTopic. */ @java.lang.Override - public com.google.protobuf.ByteString getDeadLetterTopicBytes() { + public com.google.protobuf.ByteString + getDeadLetterTopicBytes() { java.lang.Object ref = deadLetterTopic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); deadLetterTopic_ = b; return b; } else { @@ -1132,15 +1001,12 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { public static final int PUBSUB_CONFIG_FIELD_NUMBER = 3; /** - * - * *
    * Messages are automatically written from the Pub/Sub Lite topic associated
    * with this subscription to a Pub/Sub topic.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3; - * * @return Whether the pubsubConfig field is set. */ @java.lang.Override @@ -1148,27 +1014,22 @@ public boolean hasPubsubConfig() { return destinationCase_ == 3; } /** - * - * *
    * Messages are automatically written from the Pub/Sub Lite topic associated
    * with this subscription to a Pub/Sub topic.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3; - * * @return The pubsubConfig. */ @java.lang.Override public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getPubsubConfig() { if (destinationCase_ == 3) { - return (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_; + return (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_; } return com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.getDefaultInstance(); } /** - * - * *
    * Messages are automatically written from the Pub/Sub Lite topic associated
    * with this subscription to a Pub/Sub topic.
@@ -1177,16 +1038,14 @@ public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getPubsubConf
    * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
    */
   @java.lang.Override
-  public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder
-      getPubsubConfigOrBuilder() {
+  public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder getPubsubConfigOrBuilder() {
     if (destinationCase_ == 3) {
-      return (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_;
+       return (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_;
     }
     return com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1198,20 +1057,18 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (desiredState_
-        != com.google.cloud.pubsublite.proto.ExportConfig.State.STATE_UNSPECIFIED.getNumber()) {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    if (desiredState_ != com.google.cloud.pubsublite.proto.ExportConfig.State.STATE_UNSPECIFIED.getNumber()) {
       output.writeEnum(1, desiredState_);
     }
     if (destinationCase_ == 3) {
-      output.writeMessage(
-          3, (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_);
+      output.writeMessage(3, (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deadLetterTopic_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, deadLetterTopic_);
     }
-    if (currentState_
-        != com.google.cloud.pubsublite.proto.ExportConfig.State.STATE_UNSPECIFIED.getNumber()) {
+    if (currentState_ != com.google.cloud.pubsublite.proto.ExportConfig.State.STATE_UNSPECIFIED.getNumber()) {
       output.writeEnum(6, currentState_);
     }
     getUnknownFields().writeTo(output);
@@ -1223,21 +1080,20 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (desiredState_
-        != com.google.cloud.pubsublite.proto.ExportConfig.State.STATE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, desiredState_);
+    if (desiredState_ != com.google.cloud.pubsublite.proto.ExportConfig.State.STATE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(1, desiredState_);
     }
     if (destinationCase_ == 3) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              3, (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deadLetterTopic_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, deadLetterTopic_);
     }
-    if (currentState_
-        != com.google.cloud.pubsublite.proto.ExportConfig.State.STATE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, currentState_);
+    if (currentState_ != com.google.cloud.pubsublite.proto.ExportConfig.State.STATE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(6, currentState_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1247,21 +1103,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.pubsublite.proto.ExportConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.ExportConfig other =
-        (com.google.cloud.pubsublite.proto.ExportConfig) obj;
+    com.google.cloud.pubsublite.proto.ExportConfig other = (com.google.cloud.pubsublite.proto.ExportConfig) obj;
 
     if (desiredState_ != other.desiredState_) return false;
     if (currentState_ != other.currentState_) return false;
-    if (!getDeadLetterTopic().equals(other.getDeadLetterTopic())) return false;
+    if (!getDeadLetterTopic()
+        .equals(other.getDeadLetterTopic())) return false;
     if (!getDestinationCase().equals(other.getDestinationCase())) return false;
     switch (destinationCase_) {
       case 3:
-        if (!getPubsubConfig().equals(other.getPubsubConfig())) return false;
+        if (!getPubsubConfig()
+            .equals(other.getPubsubConfig())) return false;
         break;
       case 0:
       default:
@@ -1296,104 +1153,99 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.pubsublite.proto.ExportConfig parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.pubsublite.proto.ExportConfig parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.ExportConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.ExportConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.ExportConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.ExportConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.ExportConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.ExportConfig parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.ExportConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.pubsublite.proto.ExportConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.ExportConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.pubsublite.proto.ExportConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.ExportConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.ExportConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.pubsublite.proto.ExportConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Configuration for a Pub/Sub Lite subscription that writes messages to a
    * destination. User subscriber clients must not connect to this subscription.
@@ -1401,32 +1253,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.ExportConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.ExportConfig)
       com.google.cloud.pubsublite.proto.ExportConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.pubsublite.proto.CommonProto
-          .internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.CommonProto
-          .internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.ExportConfig.class,
-              com.google.cloud.pubsublite.proto.ExportConfig.Builder.class);
+              com.google.cloud.pubsublite.proto.ExportConfig.class, com.google.cloud.pubsublite.proto.ExportConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.ExportConfig.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1443,9 +1296,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.CommonProto
-          .internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor;
     }
 
     @java.lang.Override
@@ -1464,11 +1317,8 @@ public com.google.cloud.pubsublite.proto.ExportConfig build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.ExportConfig buildPartial() {
-      com.google.cloud.pubsublite.proto.ExportConfig result =
-          new com.google.cloud.pubsublite.proto.ExportConfig(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.pubsublite.proto.ExportConfig result = new com.google.cloud.pubsublite.proto.ExportConfig(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -1490,7 +1340,8 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ExportConfig result
     private void buildPartialOneofs(com.google.cloud.pubsublite.proto.ExportConfig result) {
       result.destinationCase_ = destinationCase_;
       result.destination_ = this.destination_;
-      if (destinationCase_ == 3 && pubsubConfigBuilder_ != null) {
+      if (destinationCase_ == 3 &&
+          pubsubConfigBuilder_ != null) {
         result.destination_ = pubsubConfigBuilder_.build();
       }
     }
@@ -1499,39 +1350,38 @@ private void buildPartialOneofs(com.google.cloud.pubsublite.proto.ExportConfig r
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.pubsublite.proto.ExportConfig) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.ExportConfig) other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.ExportConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1552,15 +1402,13 @@ public Builder mergeFrom(com.google.cloud.pubsublite.proto.ExportConfig other) {
         onChanged();
       }
       switch (other.getDestinationCase()) {
-        case PUBSUB_CONFIG:
-          {
-            mergePubsubConfig(other.getPubsubConfig());
-            break;
-          }
-        case DESTINATION_NOT_SET:
-          {
-            break;
-          }
+        case PUBSUB_CONFIG: {
+          mergePubsubConfig(other.getPubsubConfig());
+          break;
+        }
+        case DESTINATION_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1588,37 +1436,34 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                desiredState_ = input.readEnum();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 26:
-              {
-                input.readMessage(getPubsubConfigFieldBuilder().getBuilder(), extensionRegistry);
-                destinationCase_ = 3;
-                break;
-              } // case 26
-            case 42:
-              {
-                deadLetterTopic_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 42
-            case 48:
-              {
-                currentState_ = input.readEnum();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 48
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              desiredState_ = input.readEnum();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 26: {
+              input.readMessage(
+                  getPubsubConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              destinationCase_ = 3;
+              break;
+            } // case 26
+            case 42: {
+              deadLetterTopic_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 42
+            case 48: {
+              currentState_ = input.readEnum();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 48
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1628,12 +1473,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int destinationCase_ = 0;
     private java.lang.Object destination_;
-
-    public DestinationCase getDestinationCase() {
-      return DestinationCase.forNumber(destinationCase_);
+    public DestinationCase
+        getDestinationCase() {
+      return DestinationCase.forNumber(
+          destinationCase_);
     }
 
     public Builder clearDestination() {
@@ -1647,31 +1492,24 @@ public Builder clearDestination() {
 
     private int desiredState_ = 0;
     /**
-     *
-     *
      * 
      * The desired state of this export. Setting this to values other than
      * `ACTIVE` and `PAUSED` will result in an error.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1; - * * @return The enum numeric value on the wire for desiredState. */ - @java.lang.Override - public int getDesiredStateValue() { + @java.lang.Override public int getDesiredStateValue() { return desiredState_; } /** - * - * *
      * The desired state of this export. Setting this to values other than
      * `ACTIVE` and `PAUSED` will result in an error.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1; - * * @param value The enum numeric value on the wire for desiredState to set. * @return This builder for chaining. */ @@ -1682,35 +1520,26 @@ public Builder setDesiredStateValue(int value) { return this; } /** - * - * *
      * The desired state of this export. Setting this to values other than
      * `ACTIVE` and `PAUSED` will result in an error.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1; - * * @return The desiredState. */ @java.lang.Override public com.google.cloud.pubsublite.proto.ExportConfig.State getDesiredState() { - com.google.cloud.pubsublite.proto.ExportConfig.State result = - com.google.cloud.pubsublite.proto.ExportConfig.State.forNumber(desiredState_); - return result == null - ? com.google.cloud.pubsublite.proto.ExportConfig.State.UNRECOGNIZED - : result; + com.google.cloud.pubsublite.proto.ExportConfig.State result = com.google.cloud.pubsublite.proto.ExportConfig.State.forNumber(desiredState_); + return result == null ? com.google.cloud.pubsublite.proto.ExportConfig.State.UNRECOGNIZED : result; } /** - * - * *
      * The desired state of this export. Setting this to values other than
      * `ACTIVE` and `PAUSED` will result in an error.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1; - * * @param value The desiredState to set. * @return This builder for chaining. */ @@ -1724,15 +1553,12 @@ public Builder setDesiredState(com.google.cloud.pubsublite.proto.ExportConfig.St return this; } /** - * - * *
      * The desired state of this export. Setting this to values other than
      * `ACTIVE` and `PAUSED` will result in an error.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1; - * * @return This builder for chaining. */ public Builder clearDesiredState() { @@ -1744,35 +1570,24 @@ public Builder clearDesiredState() { private int currentState_ = 0; /** - * - * *
      * Output only. The current state of the export, which may be different to the
      * desired state due to errors. This field is output only.
      * 
* - * - * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for currentState. */ - @java.lang.Override - public int getCurrentStateValue() { + @java.lang.Override public int getCurrentStateValue() { return currentState_; } /** - * - * *
      * Output only. The current state of the export, which may be different to the
      * desired state due to errors. This field is output only.
      * 
* - * - * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for currentState to set. * @return This builder for chaining. */ @@ -1783,39 +1598,26 @@ public Builder setCurrentStateValue(int value) { return this; } /** - * - * *
      * Output only. The current state of the export, which may be different to the
      * desired state due to errors. This field is output only.
      * 
* - * - * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The currentState. */ @java.lang.Override public com.google.cloud.pubsublite.proto.ExportConfig.State getCurrentState() { - com.google.cloud.pubsublite.proto.ExportConfig.State result = - com.google.cloud.pubsublite.proto.ExportConfig.State.forNumber(currentState_); - return result == null - ? com.google.cloud.pubsublite.proto.ExportConfig.State.UNRECOGNIZED - : result; + com.google.cloud.pubsublite.proto.ExportConfig.State result = com.google.cloud.pubsublite.proto.ExportConfig.State.forNumber(currentState_); + return result == null ? com.google.cloud.pubsublite.proto.ExportConfig.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current state of the export, which may be different to the
      * desired state due to errors. This field is output only.
      * 
* - * - * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The currentState to set. * @return This builder for chaining. */ @@ -1829,17 +1631,12 @@ public Builder setCurrentState(com.google.cloud.pubsublite.proto.ExportConfig.St return this; } /** - * - * *
      * Output only. The current state of the export, which may be different to the
      * desired state due to errors. This field is output only.
      * 
* - * - * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCurrentState() { @@ -1851,8 +1648,6 @@ public Builder clearCurrentState() { private java.lang.Object deadLetterTopic_ = ""; /** - * - * *
      * Optional. The name of an optional Pub/Sub Lite topic to publish messages
      * that can not be exported to the destination. For example, the message can
@@ -1865,16 +1660,14 @@ public Builder clearCurrentState() {
      * may be changed or removed.
      * 
* - * - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The deadLetterTopic. */ public java.lang.String getDeadLetterTopic() { java.lang.Object ref = deadLetterTopic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deadLetterTopic_ = s; return s; @@ -1883,8 +1676,6 @@ public java.lang.String getDeadLetterTopic() { } } /** - * - * *
      * Optional. The name of an optional Pub/Sub Lite topic to publish messages
      * that can not be exported to the destination. For example, the message can
@@ -1897,17 +1688,16 @@ public java.lang.String getDeadLetterTopic() {
      * may be changed or removed.
      * 
* - * - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for deadLetterTopic. */ - public com.google.protobuf.ByteString getDeadLetterTopicBytes() { + public com.google.protobuf.ByteString + getDeadLetterTopicBytes() { java.lang.Object ref = deadLetterTopic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); deadLetterTopic_ = b; return b; } else { @@ -1915,8 +1705,6 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { } } /** - * - * *
      * Optional. The name of an optional Pub/Sub Lite topic to publish messages
      * that can not be exported to the destination. For example, the message can
@@ -1929,25 +1717,19 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() {
      * may be changed or removed.
      * 
* - * - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The deadLetterTopic to set. * @return This builder for chaining. */ - public Builder setDeadLetterTopic(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDeadLetterTopic( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } deadLetterTopic_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. The name of an optional Pub/Sub Lite topic to publish messages
      * that can not be exported to the destination. For example, the message can
@@ -1960,10 +1742,7 @@ public Builder setDeadLetterTopic(java.lang.String value) {
      * may be changed or removed.
      * 
* - * - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearDeadLetterTopic() { @@ -1973,8 +1752,6 @@ public Builder clearDeadLetterTopic() { return this; } /** - * - * *
      * Optional. The name of an optional Pub/Sub Lite topic to publish messages
      * that can not be exported to the destination. For example, the message can
@@ -1987,17 +1764,13 @@ public Builder clearDeadLetterTopic() {
      * may be changed or removed.
      * 
* - * - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The bytes for deadLetterTopic to set. * @return This builder for chaining. */ - public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDeadLetterTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deadLetterTopic_ = value; bitField0_ |= 0x00000004; @@ -2006,20 +1779,14 @@ public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig, - com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder, - com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder> - pubsubConfigBuilder_; + com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder> pubsubConfigBuilder_; /** - * - * *
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3; - * * @return Whether the pubsubConfig field is set. */ @java.lang.Override @@ -2027,15 +1794,12 @@ public boolean hasPubsubConfig() { return destinationCase_ == 3; } /** - * - * *
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3; - * * @return The pubsubConfig. */ @java.lang.Override @@ -2053,8 +1817,6 @@ public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getPubsubConf } } /** - * - * *
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -2062,8 +1824,7 @@ public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getPubsubConf
      *
      * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
      */
-    public Builder setPubsubConfig(
-        com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig value) {
+    public Builder setPubsubConfig(com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig value) {
       if (pubsubConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2077,8 +1838,6 @@ public Builder setPubsubConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -2098,8 +1857,6 @@ public Builder setPubsubConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -2107,18 +1864,12 @@ public Builder setPubsubConfig(
      *
      * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
      */
-    public Builder mergePubsubConfig(
-        com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig value) {
+    public Builder mergePubsubConfig(com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig value) {
       if (pubsubConfigBuilder_ == null) {
-        if (destinationCase_ == 3
-            && destination_
-                != com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig
-                    .getDefaultInstance()) {
-          destination_ =
-              com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.newBuilder(
-                      (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (destinationCase_ == 3 &&
+            destination_ != com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.getDefaultInstance()) {
+          destination_ = com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.newBuilder((com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_)
+              .mergeFrom(value).buildPartial();
         } else {
           destination_ = value;
         }
@@ -2134,8 +1885,6 @@ public Builder mergePubsubConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -2160,8 +1909,6 @@ public Builder clearPubsubConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -2169,13 +1916,10 @@ public Builder clearPubsubConfig() {
      *
      * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
      */
-    public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder
-        getPubsubConfigBuilder() {
+    public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder getPubsubConfigBuilder() {
       return getPubsubConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -2184,8 +1928,7 @@ public Builder clearPubsubConfig() {
      * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
      */
     @java.lang.Override
-    public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder
-        getPubsubConfigOrBuilder() {
+    public com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder getPubsubConfigOrBuilder() {
       if ((destinationCase_ == 3) && (pubsubConfigBuilder_ != null)) {
         return pubsubConfigBuilder_.getMessageOrBuilder();
       } else {
@@ -2196,8 +1939,6 @@ public Builder clearPubsubConfig() {
       }
     }
     /**
-     *
-     *
      * 
      * Messages are automatically written from the Pub/Sub Lite topic associated
      * with this subscription to a Pub/Sub topic.
@@ -2206,20 +1947,14 @@ public Builder clearPubsubConfig() {
      * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig,
-            com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder,
-            com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder>
+        com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder> 
         getPubsubConfigFieldBuilder() {
       if (pubsubConfigBuilder_ == null) {
         if (!(destinationCase_ == 3)) {
-          destination_ =
-              com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.getDefaultInstance();
+          destination_ = com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.getDefaultInstance();
         }
-        pubsubConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig,
-                com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder,
-                com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder>(
+        pubsubConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig.Builder, com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfigOrBuilder>(
                 (com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig) destination_,
                 getParentForChildren(),
                 isClean());
@@ -2229,9 +1964,9 @@ public Builder clearPubsubConfig() {
       onChanged();
       return pubsubConfigBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2241,12 +1976,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ExportConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ExportConfig)
   private static final com.google.cloud.pubsublite.proto.ExportConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ExportConfig();
   }
@@ -2255,27 +1990,27 @@ public static com.google.cloud.pubsublite.proto.ExportConfig getDefaultInstance(
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ExportConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ExportConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2290,4 +2025,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.pubsublite.proto.ExportConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfigOrBuilder.java
similarity index 73%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfigOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfigOrBuilder.java
index bbee2585a..5beee51cd 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfigOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ExportConfigOrBuilder.java
@@ -1,90 +1,56 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/common.proto
 
 // Protobuf Java Version: 3.25.2
 package com.google.cloud.pubsublite.proto;
 
-public interface ExportConfigOrBuilder
-    extends
+public interface ExportConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ExportConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The desired state of this export. Setting this to values other than
    * `ACTIVE` and `PAUSED` will result in an error.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1; - * * @return The enum numeric value on the wire for desiredState. */ int getDesiredStateValue(); /** - * - * *
    * The desired state of this export. Setting this to values other than
    * `ACTIVE` and `PAUSED` will result in an error.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig.State desired_state = 1; - * * @return The desiredState. */ com.google.cloud.pubsublite.proto.ExportConfig.State getDesiredState(); /** - * - * *
    * Output only. The current state of the export, which may be different to the
    * desired state due to errors. This field is output only.
    * 
* - * - * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for currentState. */ int getCurrentStateValue(); /** - * - * *
    * Output only. The current state of the export, which may be different to the
    * desired state due to errors. This field is output only.
    * 
* - * - * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.pubsublite.v1.ExportConfig.State current_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The currentState. */ com.google.cloud.pubsublite.proto.ExportConfig.State getCurrentState(); /** - * - * *
    * Optional. The name of an optional Pub/Sub Lite topic to publish messages
    * that can not be exported to the destination. For example, the message can
@@ -97,16 +63,11 @@ public interface ExportConfigOrBuilder
    * may be changed or removed.
    * 
* - * - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The deadLetterTopic. */ java.lang.String getDeadLetterTopic(); /** - * - * *
    * Optional. The name of an optional Pub/Sub Lite topic to publish messages
    * that can not be exported to the destination. For example, the message can
@@ -119,43 +80,33 @@ public interface ExportConfigOrBuilder
    * may be changed or removed.
    * 
* - * - * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string dead_letter_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for deadLetterTopic. */ - com.google.protobuf.ByteString getDeadLetterTopicBytes(); + com.google.protobuf.ByteString + getDeadLetterTopicBytes(); /** - * - * *
    * Messages are automatically written from the Pub/Sub Lite topic associated
    * with this subscription to a Pub/Sub topic.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3; - * * @return Whether the pubsubConfig field is set. */ boolean hasPubsubConfig(); /** - * - * *
    * Messages are automatically written from the Pub/Sub Lite topic associated
    * with this subscription to a Pub/Sub topic.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig.PubSubConfig pubsub_config = 3; - * * @return The pubsubConfig. */ com.google.cloud.pubsublite.proto.ExportConfig.PubSubConfig getPubsubConfig(); /** - * - * *
    * Messages are automatically written from the Pub/Sub Lite topic associated
    * with this subscription to a Pub/Sub topic.
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequest.java
similarity index 66%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequest.java
index e74a788f4..20606451b 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequest.java
@@ -1,18 +1,3 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/subscriber.proto
 
@@ -20,8 +5,6 @@
 package com.google.cloud.pubsublite.proto;
 
 /**
- *
- *
  * 
  * Request to grant tokens to the server, requesting delivery of messages when
  * they become available.
@@ -29,50 +12,46 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.FlowControlRequest}
  */
-public final class FlowControlRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class FlowControlRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.FlowControlRequest)
     FlowControlRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use FlowControlRequest.newBuilder() to construct.
   private FlowControlRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private FlowControlRequest() {}
+  private FlowControlRequest() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new FlowControlRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.FlowControlRequest.class,
-            com.google.cloud.pubsublite.proto.FlowControlRequest.Builder.class);
+            com.google.cloud.pubsublite.proto.FlowControlRequest.class, com.google.cloud.pubsublite.proto.FlowControlRequest.Builder.class);
   }
 
   public static final int ALLOWED_MESSAGES_FIELD_NUMBER = 1;
   private long allowedMessages_ = 0L;
   /**
-   *
-   *
    * 
    * The number of message tokens to grant. Must be greater than or equal to 0.
    * 
* * int64 allowed_messages = 1; - * * @return The allowedMessages. */ @java.lang.Override @@ -83,14 +62,11 @@ public long getAllowedMessages() { public static final int ALLOWED_BYTES_FIELD_NUMBER = 2; private long allowedBytes_ = 0L; /** - * - * *
    * The number of byte tokens to grant. Must be greater than or equal to 0.
    * 
* * int64 allowed_bytes = 2; - * * @return The allowedBytes. */ @java.lang.Override @@ -99,7 +75,6 @@ public long getAllowedBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -111,7 +86,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (allowedMessages_ != 0L) { output.writeInt64(1, allowedMessages_); } @@ -128,10 +104,12 @@ public int getSerializedSize() { size = 0; if (allowedMessages_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, allowedMessages_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, allowedMessages_); } if (allowedBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, allowedBytes_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, allowedBytes_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -141,16 +119,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.FlowControlRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.FlowControlRequest other = - (com.google.cloud.pubsublite.proto.FlowControlRequest) obj; + com.google.cloud.pubsublite.proto.FlowControlRequest other = (com.google.cloud.pubsublite.proto.FlowControlRequest) obj; - if (getAllowedMessages() != other.getAllowedMessages()) return false; - if (getAllowedBytes() != other.getAllowedBytes()) return false; + if (getAllowedMessages() + != other.getAllowedMessages()) return false; + if (getAllowedBytes() + != other.getAllowedBytes()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -163,112 +142,109 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ALLOWED_MESSAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAllowedMessages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAllowedMessages()); hash = (37 * hash) + ALLOWED_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAllowedBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAllowedBytes()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.pubsublite.proto.FlowControlRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.FlowControlRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.FlowControlRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.FlowControlRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.FlowControlRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.FlowControlRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.FlowControlRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.FlowControlRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.FlowControlRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.FlowControlRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.FlowControlRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.FlowControlRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.FlowControlRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.FlowControlRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.pubsublite.proto.FlowControlRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request to grant tokens to the server, requesting delivery of messages when
    * they become available.
@@ -276,32 +252,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.FlowControlRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.FlowControlRequest)
       com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.FlowControlRequest.class,
-              com.google.cloud.pubsublite.proto.FlowControlRequest.Builder.class);
+              com.google.cloud.pubsublite.proto.FlowControlRequest.class, com.google.cloud.pubsublite.proto.FlowControlRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.FlowControlRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -312,9 +289,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor;
     }
 
     @java.lang.Override
@@ -333,11 +310,8 @@ public com.google.cloud.pubsublite.proto.FlowControlRequest build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.FlowControlRequest buildPartial() {
-      com.google.cloud.pubsublite.proto.FlowControlRequest result =
-          new com.google.cloud.pubsublite.proto.FlowControlRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.pubsublite.proto.FlowControlRequest result = new com.google.cloud.pubsublite.proto.FlowControlRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -356,39 +330,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.FlowControlRequest
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.pubsublite.proto.FlowControlRequest) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.FlowControlRequest) other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.FlowControlRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -396,8 +369,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.FlowControlRequest other) {
-      if (other == com.google.cloud.pubsublite.proto.FlowControlRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.pubsublite.proto.FlowControlRequest.getDefaultInstance()) return this;
       if (other.getAllowedMessages() != 0L) {
         setAllowedMessages(other.getAllowedMessages());
       }
@@ -430,25 +402,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                allowedMessages_ = input.readInt64();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 16:
-              {
-                allowedBytes_ = input.readInt64();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              allowedMessages_ = input.readInt64();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 16: {
+              allowedBytes_ = input.readInt64();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -458,19 +427,15 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private long allowedMessages_;
+    private long allowedMessages_ ;
     /**
-     *
-     *
      * 
      * The number of message tokens to grant. Must be greater than or equal to 0.
      * 
* * int64 allowed_messages = 1; - * * @return The allowedMessages. */ @java.lang.Override @@ -478,14 +443,11 @@ public long getAllowedMessages() { return allowedMessages_; } /** - * - * *
      * The number of message tokens to grant. Must be greater than or equal to 0.
      * 
* * int64 allowed_messages = 1; - * * @param value The allowedMessages to set. * @return This builder for chaining. */ @@ -497,14 +459,11 @@ public Builder setAllowedMessages(long value) { return this; } /** - * - * *
      * The number of message tokens to grant. Must be greater than or equal to 0.
      * 
* * int64 allowed_messages = 1; - * * @return This builder for chaining. */ public Builder clearAllowedMessages() { @@ -514,16 +473,13 @@ public Builder clearAllowedMessages() { return this; } - private long allowedBytes_; + private long allowedBytes_ ; /** - * - * *
      * The number of byte tokens to grant. Must be greater than or equal to 0.
      * 
* * int64 allowed_bytes = 2; - * * @return The allowedBytes. */ @java.lang.Override @@ -531,14 +487,11 @@ public long getAllowedBytes() { return allowedBytes_; } /** - * - * *
      * The number of byte tokens to grant. Must be greater than or equal to 0.
      * 
* * int64 allowed_bytes = 2; - * * @param value The allowedBytes to set. * @return This builder for chaining. */ @@ -550,14 +503,11 @@ public Builder setAllowedBytes(long value) { return this; } /** - * - * *
      * The number of byte tokens to grant. Must be greater than or equal to 0.
      * 
* * int64 allowed_bytes = 2; - * * @return This builder for chaining. */ public Builder clearAllowedBytes() { @@ -566,9 +516,9 @@ public Builder clearAllowedBytes() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -578,12 +528,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.FlowControlRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.FlowControlRequest) private static final com.google.cloud.pubsublite.proto.FlowControlRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.FlowControlRequest(); } @@ -592,27 +542,27 @@ public static com.google.cloud.pubsublite.proto.FlowControlRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FlowControlRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FlowControlRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -627,4 +577,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.FlowControlRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequestOrBuilder.java similarity index 53% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequestOrBuilder.java index 08c7962b9..ccb8b1e14 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/FlowControlRequestOrBuilder.java @@ -1,51 +1,29 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface FlowControlRequestOrBuilder - extends +public interface FlowControlRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.FlowControlRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The number of message tokens to grant. Must be greater than or equal to 0.
    * 
* * int64 allowed_messages = 1; - * * @return The allowedMessages. */ long getAllowedMessages(); /** - * - * *
    * The number of byte tokens to grant. Must be greater than or equal to 0.
    * 
* * int64 allowed_bytes = 2; - * * @return The allowedBytes. */ long getAllowedBytes(); diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequest.java similarity index 63% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequest.java index 89e3ea1d2..b6fc09b4d 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -20,66 +5,56 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for GetReservation.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.GetReservationRequest} */ -public final class GetReservationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetReservationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.GetReservationRequest) GetReservationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetReservationRequest.newBuilder() to construct. private GetReservationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetReservationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetReservationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.GetReservationRequest.class, - com.google.cloud.pubsublite.proto.GetReservationRequest.Builder.class); + com.google.cloud.pubsublite.proto.GetReservationRequest.class, com.google.cloud.pubsublite.proto.GetReservationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the reservation whose configuration to return.
    * Structured like:
    * projects/{project_number}/locations/{location}/reservations/{reservation_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -88,33 +63,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the reservation whose configuration to return.
    * Structured like:
    * projects/{project_number}/locations/{location}/reservations/{reservation_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +107,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +132,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.GetReservationRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.GetReservationRequest other = - (com.google.cloud.pubsublite.proto.GetReservationRequest) obj; + com.google.cloud.pubsublite.proto.GetReservationRequest other = (com.google.cloud.pubsublite.proto.GetReservationRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +160,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.GetReservationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.GetReservationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.GetReservationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.GetReservationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.GetReservationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.GetReservationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.GetReservationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.GetReservationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.GetReservationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.GetReservationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.GetReservationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.GetReservationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.GetReservationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.GetReservationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.GetReservationRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.GetReservationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for GetReservation.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.GetReservationRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.GetReservationRequest) com.google.cloud.pubsublite.proto.GetReservationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.GetReservationRequest.class, - com.google.cloud.pubsublite.proto.GetReservationRequest.Builder.class); + com.google.cloud.pubsublite.proto.GetReservationRequest.class, com.google.cloud.pubsublite.proto.GetReservationRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.GetReservationRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +294,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor; } @java.lang.Override @@ -347,11 +315,8 @@ public com.google.cloud.pubsublite.proto.GetReservationRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.GetReservationRequest buildPartial() { - com.google.cloud.pubsublite.proto.GetReservationRequest result = - new com.google.cloud.pubsublite.proto.GetReservationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.GetReservationRequest result = new com.google.cloud.pubsublite.proto.GetReservationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -367,39 +332,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.GetReservationReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.GetReservationRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.GetReservationRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.GetReservationRequest)other); } else { super.mergeFrom(other); return this; @@ -407,8 +371,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.GetReservationRequest other) { - if (other == com.google.cloud.pubsublite.proto.GetReservationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.GetReservationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -440,19 +403,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,29 +423,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the reservation whose configuration to return.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -493,25 +449,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the reservation whose configuration to return.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -519,43 +472,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the reservation whose configuration to return.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the reservation whose configuration to return.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -565,34 +507,28 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the reservation whose configuration to return.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -602,12 +538,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.GetReservationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.GetReservationRequest) private static final com.google.cloud.pubsublite.proto.GetReservationRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.GetReservationRequest(); } @@ -616,27 +552,27 @@ public static com.google.cloud.pubsublite.proto.GetReservationRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetReservationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetReservationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -651,4 +587,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.GetReservationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequestOrBuilder.java new file mode 100644 index 000000000..56c655ea4 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequestOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.pubsublite.proto; + +public interface GetReservationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.GetReservationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the reservation whose configuration to return.
+   * Structured like:
+   * projects/{project_number}/locations/{location}/reservations/{reservation_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the reservation whose configuration to return.
+   * Structured like:
+   * projects/{project_number}/locations/{location}/reservations/{reservation_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequest.java similarity index 62% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequest.java index e165d3536..3f680dc00 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -20,64 +5,54 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for GetSubscription.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.GetSubscriptionRequest} */ -public final class GetSubscriptionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetSubscriptionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.GetSubscriptionRequest) GetSubscriptionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetSubscriptionRequest.newBuilder() to construct. private GetSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetSubscriptionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSubscriptionRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.GetSubscriptionRequest.class, - com.google.cloud.pubsublite.proto.GetSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.GetSubscriptionRequest.class, com.google.cloud.pubsublite.proto.GetSubscriptionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the subscription whose configuration to return.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -86,31 +61,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the subscription whose configuration to return.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -119,7 +92,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -131,7 +103,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -155,15 +128,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.GetSubscriptionRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.GetSubscriptionRequest other = - (com.google.cloud.pubsublite.proto.GetSubscriptionRequest) obj; + com.google.cloud.pubsublite.proto.GetSubscriptionRequest other = (com.google.cloud.pubsublite.proto.GetSubscriptionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -183,136 +156,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.GetSubscriptionRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.GetSubscriptionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.GetSubscriptionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.GetSubscriptionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.GetSubscriptionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.GetSubscriptionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.GetSubscriptionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.GetSubscriptionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.GetSubscriptionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.GetSubscriptionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.GetSubscriptionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.GetSubscriptionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.GetSubscriptionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.GetSubscriptionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.GetSubscriptionRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.GetSubscriptionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for GetSubscription.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.GetSubscriptionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.GetSubscriptionRequest) com.google.cloud.pubsublite.proto.GetSubscriptionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.GetSubscriptionRequest.class, - com.google.cloud.pubsublite.proto.GetSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.GetSubscriptionRequest.class, com.google.cloud.pubsublite.proto.GetSubscriptionRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.GetSubscriptionRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -322,9 +290,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor; } @java.lang.Override @@ -343,11 +311,8 @@ public com.google.cloud.pubsublite.proto.GetSubscriptionRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.GetSubscriptionRequest buildPartial() { - com.google.cloud.pubsublite.proto.GetSubscriptionRequest result = - new com.google.cloud.pubsublite.proto.GetSubscriptionRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.GetSubscriptionRequest result = new com.google.cloud.pubsublite.proto.GetSubscriptionRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -363,39 +328,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.GetSubscriptionRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.GetSubscriptionRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.GetSubscriptionRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.GetSubscriptionRequest)other); } else { super.mergeFrom(other); return this; @@ -403,8 +367,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.GetSubscriptionRequest other) { - if (other == com.google.cloud.pubsublite.proto.GetSubscriptionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.GetSubscriptionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -436,19 +399,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -458,27 +419,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the subscription whose configuration to return.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -487,23 +443,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the subscription whose configuration to return.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -511,39 +464,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the subscription whose configuration to return.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the subscription whose configuration to return.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -553,32 +495,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the subscription whose configuration to return.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -588,12 +524,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.GetSubscriptionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.GetSubscriptionRequest) private static final com.google.cloud.pubsublite.proto.GetSubscriptionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.GetSubscriptionRequest(); } @@ -602,27 +538,27 @@ public static com.google.cloud.pubsublite.proto.GetSubscriptionRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSubscriptionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSubscriptionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -637,4 +573,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.GetSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequestOrBuilder.java new file mode 100644 index 000000000..c13dcb367 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequestOrBuilder.java @@ -0,0 +1,30 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.pubsublite.proto; + +public interface GetSubscriptionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.GetSubscriptionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the subscription whose configuration to return.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the subscription whose configuration to return.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequest.java similarity index 61% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequest.java index cd4655d1a..6f7e6916c 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -20,64 +5,54 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for GetTopicPartitions.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.GetTopicPartitionsRequest} */ -public final class GetTopicPartitionsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetTopicPartitionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.GetTopicPartitionsRequest) GetTopicPartitionsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetTopicPartitionsRequest.newBuilder() to construct. private GetTopicPartitionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetTopicPartitionsRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetTopicPartitionsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.class, - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.Builder.class); + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.class, com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The topic whose partition information to return.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -86,31 +61,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The topic whose partition information to return.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -119,7 +92,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -131,7 +103,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -155,15 +128,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest other = - (com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest) obj; + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest other = (com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -183,136 +156,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for GetTopicPartitions.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.GetTopicPartitionsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.GetTopicPartitionsRequest) com.google.cloud.pubsublite.proto.GetTopicPartitionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.class, - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.Builder.class); + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.class, com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -322,9 +290,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor; } @java.lang.Override @@ -343,11 +311,8 @@ public com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest buildPartial() { - com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest result = - new com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest result = new com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -363,39 +328,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.GetTopicPartitionsR public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest)other); } else { super.mergeFrom(other); return this; @@ -403,8 +367,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest other) { - if (other == com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -436,19 +399,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -458,27 +419,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The topic whose partition information to return.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -487,23 +443,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The topic whose partition information to return.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -511,39 +464,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The topic whose partition information to return.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The topic whose partition information to return.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -553,32 +495,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The topic whose partition information to return.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -588,12 +524,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.GetTopicPartitionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.GetTopicPartitionsRequest) private static final com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest(); } @@ -602,27 +538,27 @@ public static com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTopicPartitionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTopicPartitionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -637,4 +573,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.pubsublite.proto.GetTopicPartitionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequestOrBuilder.java new file mode 100644 index 000000000..3c46ffbde --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequestOrBuilder.java @@ -0,0 +1,30 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.pubsublite.proto; + +public interface GetTopicPartitionsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.GetTopicPartitionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The topic whose partition information to return.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The topic whose partition information to return.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequest.java similarity index 61% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequest.java index af145ea70..96cf89992 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -20,64 +5,54 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for GetTopic.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.GetTopicRequest} */ -public final class GetTopicRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetTopicRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.GetTopicRequest) GetTopicRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetTopicRequest.newBuilder() to construct. private GetTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetTopicRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetTopicRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.GetTopicRequest.class, - com.google.cloud.pubsublite.proto.GetTopicRequest.Builder.class); + com.google.cloud.pubsublite.proto.GetTopicRequest.class, com.google.cloud.pubsublite.proto.GetTopicRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the topic whose configuration to return.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -86,31 +61,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the topic whose configuration to return.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -119,7 +92,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -131,7 +103,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -155,15 +128,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.GetTopicRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.GetTopicRequest other = - (com.google.cloud.pubsublite.proto.GetTopicRequest) obj; + com.google.cloud.pubsublite.proto.GetTopicRequest other = (com.google.cloud.pubsublite.proto.GetTopicRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -183,135 +156,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.GetTopicRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.GetTopicRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.GetTopicRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.GetTopicRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.GetTopicRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.GetTopicRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.GetTopicRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.GetTopicRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.GetTopicRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.GetTopicRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.GetTopicRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.GetTopicRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.GetTopicRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.GetTopicRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.pubsublite.proto.GetTopicRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for GetTopic.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.GetTopicRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.GetTopicRequest) com.google.cloud.pubsublite.proto.GetTopicRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.GetTopicRequest.class, - com.google.cloud.pubsublite.proto.GetTopicRequest.Builder.class); + com.google.cloud.pubsublite.proto.GetTopicRequest.class, com.google.cloud.pubsublite.proto.GetTopicRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.GetTopicRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -321,9 +290,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor; } @java.lang.Override @@ -342,11 +311,8 @@ public com.google.cloud.pubsublite.proto.GetTopicRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.GetTopicRequest buildPartial() { - com.google.cloud.pubsublite.proto.GetTopicRequest result = - new com.google.cloud.pubsublite.proto.GetTopicRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.GetTopicRequest result = new com.google.cloud.pubsublite.proto.GetTopicRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -362,39 +328,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.GetTopicRequest res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.GetTopicRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.GetTopicRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.GetTopicRequest)other); } else { super.mergeFrom(other); return this; @@ -402,8 +367,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.GetTopicRequest other) { - if (other == com.google.cloud.pubsublite.proto.GetTopicRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.GetTopicRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -435,19 +399,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -457,27 +419,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the topic whose configuration to return.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -486,23 +443,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the topic whose configuration to return.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -510,39 +464,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the topic whose configuration to return.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the topic whose configuration to return.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -552,32 +495,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the topic whose configuration to return.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -587,12 +524,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.GetTopicRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.GetTopicRequest) private static final com.google.cloud.pubsublite.proto.GetTopicRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.GetTopicRequest(); } @@ -601,27 +538,27 @@ public static com.google.cloud.pubsublite.proto.GetTopicRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTopicRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTopicRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -636,4 +573,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.GetTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequestOrBuilder.java new file mode 100644 index 000000000..71441b8c7 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequestOrBuilder.java @@ -0,0 +1,30 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.pubsublite.proto; + +public interface GetTopicRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.GetTopicRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the topic whose configuration to return.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the topic whose configuration to return.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequest.java similarity index 66% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequest.java index df1e83517..49cd6f8ea 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto @@ -20,8 +5,6 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * The first streaming request that must be sent on a newly-opened stream. The
  * client must wait for the response before sending subsequent requests on the
@@ -30,54 +13,48 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.InitialCommitCursorRequest}
  */
-public final class InitialCommitCursorRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class InitialCommitCursorRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.InitialCommitCursorRequest)
     InitialCommitCursorRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use InitialCommitCursorRequest.newBuilder() to construct.
   private InitialCommitCursorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private InitialCommitCursorRequest() {
     subscription_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new InitialCommitCursorRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.pubsublite.proto.CursorProto
-        .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.CursorProto
-        .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.class,
-            com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder.class);
+            com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.class, com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder.class);
   }
 
   public static final int SUBSCRIPTION_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object subscription_ = "";
   /**
-   *
-   *
    * 
    * The subscription for which to manage committed cursors.
    * 
* * string subscription = 1; - * * @return The subscription. */ @java.lang.Override @@ -86,29 +63,29 @@ public java.lang.String getSubscription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; } } /** - * - * *
    * The subscription for which to manage committed cursors.
    * 
* * string subscription = 1; - * * @return The bytes for subscription. */ @java.lang.Override - public com.google.protobuf.ByteString getSubscriptionBytes() { + public com.google.protobuf.ByteString + getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subscription_ = b; return b; } else { @@ -119,15 +96,12 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public static final int PARTITION_FIELD_NUMBER = 2; private long partition_ = 0L; /** - * - * *
    * The partition for which to manage committed cursors. Partitions are zero
    * indexed, so `partition` must be in the range [0, topic.num_partitions).
    * 
* * int64 partition = 2; - * * @return The partition. */ @java.lang.Override @@ -136,7 +110,6 @@ public long getPartition() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,7 +121,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); } @@ -168,7 +142,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } if (partition_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, partition_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, partition_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -178,16 +153,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.InitialCommitCursorRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.InitialCommitCursorRequest other = - (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) obj; + com.google.cloud.pubsublite.proto.InitialCommitCursorRequest other = (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) obj; - if (!getSubscription().equals(other.getSubscription())) return false; - if (getPartition() != other.getPartition()) return false; + if (!getSubscription() + .equals(other.getSubscription())) return false; + if (getPartition() + != other.getPartition()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -202,111 +178,106 @@ public int hashCode() { hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getSubscription().hashCode(); hash = (37 * hash) + PARTITION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartition()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPartition()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.InitialCommitCursorRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.InitialCommitCursorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The first streaming request that must be sent on a newly-opened stream. The
    * client must wait for the response before sending subsequent requests on the
@@ -315,32 +286,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.InitialCommitCursorRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.InitialCommitCursorRequest)
       com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.pubsublite.proto.CursorProto
-          .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.CursorProto
-          .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.class,
-              com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder.class);
+              com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.class, com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -351,14 +323,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.CursorProto
-          .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest getDefaultInstanceForType() {
       return com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.getDefaultInstance();
     }
 
@@ -373,17 +344,13 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest buildPartial() {
-      com.google.cloud.pubsublite.proto.InitialCommitCursorRequest result =
-          new com.google.cloud.pubsublite.proto.InitialCommitCursorRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.pubsublite.proto.InitialCommitCursorRequest result = new com.google.cloud.pubsublite.proto.InitialCommitCursorRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.pubsublite.proto.InitialCommitCursorRequest result) {
+    private void buildPartial0(com.google.cloud.pubsublite.proto.InitialCommitCursorRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.subscription_ = subscription_;
@@ -397,39 +364,38 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.InitialCommitCursorRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -437,9 +403,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.InitialCommitCursorRequest other) {
-      if (other
-          == com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.getDefaultInstance()) return this;
       if (!other.getSubscription().isEmpty()) {
         subscription_ = other.subscription_;
         bitField0_ |= 0x00000001;
@@ -474,25 +438,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                subscription_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                partition_ = input.readInt64();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              subscription_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              partition_ = input.readInt64();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -502,25 +463,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object subscription_ = "";
     /**
-     *
-     *
      * 
      * The subscription for which to manage committed cursors.
      * 
* * string subscription = 1; - * * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; @@ -529,21 +487,20 @@ public java.lang.String getSubscription() { } } /** - * - * *
      * The subscription for which to manage committed cursors.
      * 
* * string subscription = 1; - * * @return The bytes for subscription. */ - public com.google.protobuf.ByteString getSubscriptionBytes() { + public com.google.protobuf.ByteString + getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subscription_ = b; return b; } else { @@ -551,35 +508,28 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * The subscription for which to manage committed cursors.
      * 
* * string subscription = 1; - * * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubscription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } subscription_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The subscription for which to manage committed cursors.
      * 
* * string subscription = 1; - * * @return This builder for chaining. */ public Builder clearSubscription() { @@ -589,21 +539,17 @@ public Builder clearSubscription() { return this; } /** - * - * *
      * The subscription for which to manage committed cursors.
      * 
* * string subscription = 1; - * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subscription_ = value; bitField0_ |= 0x00000001; @@ -611,17 +557,14 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { return this; } - private long partition_; + private long partition_ ; /** - * - * *
      * The partition for which to manage committed cursors. Partitions are zero
      * indexed, so `partition` must be in the range [0, topic.num_partitions).
      * 
* * int64 partition = 2; - * * @return The partition. */ @java.lang.Override @@ -629,15 +572,12 @@ public long getPartition() { return partition_; } /** - * - * *
      * The partition for which to manage committed cursors. Partitions are zero
      * indexed, so `partition` must be in the range [0, topic.num_partitions).
      * 
* * int64 partition = 2; - * * @param value The partition to set. * @return This builder for chaining. */ @@ -649,15 +589,12 @@ public Builder setPartition(long value) { return this; } /** - * - * *
      * The partition for which to manage committed cursors. Partitions are zero
      * indexed, so `partition` must be in the range [0, topic.num_partitions).
      * 
* * int64 partition = 2; - * * @return This builder for chaining. */ public Builder clearPartition() { @@ -666,9 +603,9 @@ public Builder clearPartition() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -678,13 +615,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.InitialCommitCursorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.InitialCommitCursorRequest) - private static final com.google.cloud.pubsublite.proto.InitialCommitCursorRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.InitialCommitCursorRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.InitialCommitCursorRequest(); } @@ -693,27 +629,27 @@ public static com.google.cloud.pubsublite.proto.InitialCommitCursorRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InitialCommitCursorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InitialCommitCursorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -728,4 +664,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequestOrBuilder.java index 6e0cd9b7e..d87b223b6 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorRequestOrBuilder.java @@ -1,64 +1,40 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface InitialCommitCursorRequestOrBuilder - extends +public interface InitialCommitCursorRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.InitialCommitCursorRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The subscription for which to manage committed cursors.
    * 
* * string subscription = 1; - * * @return The subscription. */ java.lang.String getSubscription(); /** - * - * *
    * The subscription for which to manage committed cursors.
    * 
* * string subscription = 1; - * * @return The bytes for subscription. */ - com.google.protobuf.ByteString getSubscriptionBytes(); + com.google.protobuf.ByteString + getSubscriptionBytes(); /** - * - * *
    * The partition for which to manage committed cursors. Partitions are zero
    * indexed, so `partition` must be in the range [0, topic.num_partitions).
    * 
* * int64 partition = 2; - * * @return The partition. */ long getPartition(); diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponse.java similarity index 60% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponse.java index 8050fee6f..248f06231 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponse.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto @@ -20,49 +5,45 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response to an InitialCommitCursorRequest.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.InitialCommitCursorResponse} */ -public final class InitialCommitCursorResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InitialCommitCursorResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.InitialCommitCursorResponse) InitialCommitCursorResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InitialCommitCursorResponse.newBuilder() to construct. private InitialCommitCursorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private InitialCommitCursorResponse() {} + private InitialCommitCursorResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InitialCommitCursorResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.class, - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.class, com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -74,7 +55,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -92,13 +74,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.InitialCommitCursorResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse other = - (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) obj; + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse other = (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -117,136 +98,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.InitialCommitCursorResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response to an InitialCommitCursorRequest.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.InitialCommitCursorResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.InitialCommitCursorResponse) com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.class, - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.class, com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -254,14 +230,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.getDefaultInstance(); } @@ -276,8 +251,7 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse buildPartial() { - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse result = - new com.google.cloud.pubsublite.proto.InitialCommitCursorResponse(this); + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse result = new com.google.cloud.pubsublite.proto.InitialCommitCursorResponse(this); onBuilt(); return result; } @@ -286,39 +260,38 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.InitialCommitCursorResponse)other); } else { super.mergeFrom(other); return this; @@ -326,9 +299,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.InitialCommitCursorResponse other) { - if (other - == com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -355,13 +326,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -371,9 +341,9 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -383,13 +353,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.InitialCommitCursorResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.InitialCommitCursorResponse) - private static final com.google.cloud.pubsublite.proto.InitialCommitCursorResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.InitialCommitCursorResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.InitialCommitCursorResponse(); } @@ -398,27 +367,27 @@ public static com.google.cloud.pubsublite.proto.InitialCommitCursorResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InitialCommitCursorResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InitialCommitCursorResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -433,4 +402,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponseOrBuilder.java new file mode 100644 index 000000000..6548ecc40 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponseOrBuilder.java @@ -0,0 +1,10 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/cursor.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.pubsublite.proto; + +public interface InitialCommitCursorResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.InitialCommitCursorResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequest.java similarity index 66% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequest.java index 41a8bbc90..2a8246925 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto @@ -20,8 +5,6 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * The first request that must be sent on a newly-opened stream. The client must
  * wait for the response before sending subsequent requests on the stream.
@@ -29,17 +12,15 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest}
  */
-public final class InitialPartitionAssignmentRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class InitialPartitionAssignmentRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest)
     InitialPartitionAssignmentRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use InitialPartitionAssignmentRequest.newBuilder() to construct.
-  private InitialPartitionAssignmentRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private InitialPartitionAssignmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private InitialPartitionAssignmentRequest() {
     subscription_ = "";
     clientId_ = com.google.protobuf.ByteString.EMPTY;
@@ -47,32 +28,28 @@ private InitialPartitionAssignmentRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new InitialPartitionAssignmentRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.class,
-            com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder.class);
+            com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.class, com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder.class);
   }
 
   public static final int SUBSCRIPTION_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object subscription_ = "";
   /**
-   *
-   *
    * 
    * The subscription name. Structured like:
    * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -80,7 +57,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string subscription = 1; - * * @return The subscription. */ @java.lang.Override @@ -89,15 +65,14 @@ public java.lang.String getSubscription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; } } /** - * - * *
    * The subscription name. Structured like:
    * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -105,15 +80,16 @@ public java.lang.String getSubscription() {
    * 
* * string subscription = 1; - * * @return The bytes for subscription. */ @java.lang.Override - public com.google.protobuf.ByteString getSubscriptionBytes() { + public com.google.protobuf.ByteString + getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subscription_ = b; return b; } else { @@ -124,8 +100,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public static final int CLIENT_ID_FIELD_NUMBER = 2; private com.google.protobuf.ByteString clientId_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * An opaque, unique client identifier. This field must be exactly 16 bytes
    * long and is interpreted as an unsigned 128 bit integer. Other size values
@@ -138,7 +112,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() {
    * 
* * bytes client_id = 2; - * * @return The clientId. */ @java.lang.Override @@ -147,7 +120,6 @@ public com.google.protobuf.ByteString getClientId() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,7 +131,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); } @@ -179,7 +152,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } if (!clientId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, clientId_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, clientId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -189,16 +163,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest other = - (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) obj; + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest other = (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) obj; - if (!getSubscription().equals(other.getSubscription())) return false; - if (!getClientId().equals(other.getClientId())) return false; + if (!getSubscription() + .equals(other.getSubscription())) return false; + if (!getClientId() + .equals(other.getClientId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -220,105 +195,98 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The first request that must be sent on a newly-opened stream. The client must
    * wait for the response before sending subsequent requests on the stream.
@@ -326,33 +294,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest)
       com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.class,
-              com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder.class);
+              com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.class, com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.newBuilder()
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -363,16 +331,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest
-          .getDefaultInstance();
+    public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest getDefaultInstanceForType() {
+      return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -386,17 +352,13 @@ public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest build
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest buildPartial() {
-      com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest result =
-          new com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest result = new com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest result) {
+    private void buildPartial0(com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.subscription_ = subscription_;
@@ -410,51 +372,46 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) {
-        return mergeFrom(
-            (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest other) {
-      if (other
-          == com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest other) {
+      if (other == com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.getDefaultInstance()) return this;
       if (!other.getSubscription().isEmpty()) {
         subscription_ = other.subscription_;
         bitField0_ |= 0x00000001;
@@ -489,25 +446,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                subscription_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                clientId_ = input.readBytes();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              subscription_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              clientId_ = input.readBytes();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -517,13 +471,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object subscription_ = "";
     /**
-     *
-     *
      * 
      * The subscription name. Structured like:
      * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -531,13 +482,13 @@ public Builder mergeFrom(
      * 
* * string subscription = 1; - * * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; @@ -546,8 +497,6 @@ public java.lang.String getSubscription() { } } /** - * - * *
      * The subscription name. Structured like:
      * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -555,14 +504,15 @@ public java.lang.String getSubscription() {
      * 
* * string subscription = 1; - * * @return The bytes for subscription. */ - public com.google.protobuf.ByteString getSubscriptionBytes() { + public com.google.protobuf.ByteString + getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subscription_ = b; return b; } else { @@ -570,8 +520,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * The subscription name. Structured like:
      * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -579,22 +527,18 @@ public com.google.protobuf.ByteString getSubscriptionBytes() {
      * 
* * string subscription = 1; - * * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubscription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } subscription_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The subscription name. Structured like:
      * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -602,7 +546,6 @@ public Builder setSubscription(java.lang.String value) {
      * 
* * string subscription = 1; - * * @return This builder for chaining. */ public Builder clearSubscription() { @@ -612,8 +555,6 @@ public Builder clearSubscription() { return this; } /** - * - * *
      * The subscription name. Structured like:
      * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -621,14 +562,12 @@ public Builder clearSubscription() {
      * 
* * string subscription = 1; - * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subscription_ = value; bitField0_ |= 0x00000001; @@ -638,8 +577,6 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.ByteString clientId_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * An opaque, unique client identifier. This field must be exactly 16 bytes
      * long and is interpreted as an unsigned 128 bit integer. Other size values
@@ -652,7 +589,6 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) {
      * 
* * bytes client_id = 2; - * * @return The clientId. */ @java.lang.Override @@ -660,8 +596,6 @@ public com.google.protobuf.ByteString getClientId() { return clientId_; } /** - * - * *
      * An opaque, unique client identifier. This field must be exactly 16 bytes
      * long and is interpreted as an unsigned 128 bit integer. Other size values
@@ -674,22 +608,17 @@ public com.google.protobuf.ByteString getClientId() {
      * 
* * bytes client_id = 2; - * * @param value The clientId to set. * @return This builder for chaining. */ public Builder setClientId(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } clientId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * An opaque, unique client identifier. This field must be exactly 16 bytes
      * long and is interpreted as an unsigned 128 bit integer. Other size values
@@ -702,7 +631,6 @@ public Builder setClientId(com.google.protobuf.ByteString value) {
      * 
* * bytes client_id = 2; - * * @return This builder for chaining. */ public Builder clearClientId() { @@ -711,9 +639,9 @@ public Builder clearClientId() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -723,43 +651,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest) - private static final com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest(); } - public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest - getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InitialPartitionAssignmentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InitialPartitionAssignmentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -771,8 +697,9 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequestOrBuilder.java similarity index 67% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequestOrBuilder.java index 7ef0e06a1..065f11b6f 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPartitionAssignmentRequestOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface InitialPartitionAssignmentRequestOrBuilder - extends +public interface InitialPartitionAssignmentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The subscription name. Structured like:
    * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -34,13 +16,10 @@ public interface InitialPartitionAssignmentRequestOrBuilder
    * 
* * string subscription = 1; - * * @return The subscription. */ java.lang.String getSubscription(); /** - * - * *
    * The subscription name. Structured like:
    * projects/<project number>/locations/<zone name>/subscriptions/<subscription
@@ -48,14 +27,12 @@ public interface InitialPartitionAssignmentRequestOrBuilder
    * 
* * string subscription = 1; - * * @return The bytes for subscription. */ - com.google.protobuf.ByteString getSubscriptionBytes(); + com.google.protobuf.ByteString + getSubscriptionBytes(); /** - * - * *
    * An opaque, unique client identifier. This field must be exactly 16 bytes
    * long and is interpreted as an unsigned 128 bit integer. Other size values
@@ -68,7 +45,6 @@ public interface InitialPartitionAssignmentRequestOrBuilder
    * 
* * bytes client_id = 2; - * * @return The clientId. */ com.google.protobuf.ByteString getClientId(); diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequest.java similarity index 69% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequest.java index d8393becf..72fff0d26 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/publisher.proto @@ -20,24 +5,21 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * The first request that must be sent on a newly-opened stream.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.InitialPublishRequest} */ -public final class InitialPublishRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InitialPublishRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.InitialPublishRequest) InitialPublishRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InitialPublishRequest.newBuilder() to construct. private InitialPublishRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InitialPublishRequest() { topic_ = ""; clientId_ = com.google.protobuf.ByteString.EMPTY; @@ -45,38 +27,33 @@ private InitialPublishRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InitialPublishRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.InitialPublishRequest.class, - com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder.class); + com.google.cloud.pubsublite.proto.InitialPublishRequest.class, com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; /** - * - * *
    * The topic to which messages will be written.
    * 
* * string topic = 1; - * * @return The topic. */ @java.lang.Override @@ -85,29 +62,29 @@ public java.lang.String getTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; } } /** - * - * *
    * The topic to which messages will be written.
    * 
* * string topic = 1; - * * @return The bytes for topic. */ @java.lang.Override - public com.google.protobuf.ByteString getTopicBytes() { + public com.google.protobuf.ByteString + getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); topic_ = b; return b; } else { @@ -118,8 +95,6 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int PARTITION_FIELD_NUMBER = 2; private long partition_ = 0L; /** - * - * *
    * The partition within the topic to which messages will be written.
    * Partitions are zero indexed, so `partition` must be in the range [0,
@@ -127,7 +102,6 @@ public com.google.protobuf.ByteString getTopicBytes() {
    * 
* * int64 partition = 2; - * * @return The partition. */ @java.lang.Override @@ -138,8 +112,6 @@ public long getPartition() { public static final int CLIENT_ID_FIELD_NUMBER = 3; private com.google.protobuf.ByteString clientId_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * Unique identifier for a publisher client. If set, enables publish
    * idempotency within a publisher client session.
@@ -151,7 +123,6 @@ public long getPartition() {
    * 
* * bytes client_id = 3; - * * @return The clientId. */ @java.lang.Override @@ -160,7 +131,6 @@ public com.google.protobuf.ByteString getClientId() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,7 +142,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); } @@ -195,10 +166,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); } if (partition_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, partition_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, partition_); } if (!clientId_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, clientId_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, clientId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -208,17 +181,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.InitialPublishRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.InitialPublishRequest other = - (com.google.cloud.pubsublite.proto.InitialPublishRequest) obj; + com.google.cloud.pubsublite.proto.InitialPublishRequest other = (com.google.cloud.pubsublite.proto.InitialPublishRequest) obj; - if (!getTopic().equals(other.getTopic())) return false; - if (getPartition() != other.getPartition()) return false; - if (!getClientId().equals(other.getClientId())) return false; + if (!getTopic() + .equals(other.getTopic())) return false; + if (getPartition() + != other.getPartition()) return false; + if (!getClientId() + .equals(other.getClientId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,7 +208,8 @@ public int hashCode() { hash = (37 * hash) + TOPIC_FIELD_NUMBER; hash = (53 * hash) + getTopic().hashCode(); hash = (37 * hash) + PARTITION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartition()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPartition()); hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; hash = (53 * hash) + getClientId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -242,136 +218,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.InitialPublishRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialPublishRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.InitialPublishRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialPublishRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.InitialPublishRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialPublishRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.InitialPublishRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.InitialPublishRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.InitialPublishRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.InitialPublishRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.InitialPublishRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.InitialPublishRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.InitialPublishRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.InitialPublishRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.InitialPublishRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.InitialPublishRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The first request that must be sent on a newly-opened stream.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.InitialPublishRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.InitialPublishRequest) com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.InitialPublishRequest.class, - com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder.class); + com.google.cloud.pubsublite.proto.InitialPublishRequest.class, com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.InitialPublishRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -383,9 +354,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor; } @java.lang.Override @@ -404,11 +375,8 @@ public com.google.cloud.pubsublite.proto.InitialPublishRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.InitialPublishRequest buildPartial() { - com.google.cloud.pubsublite.proto.InitialPublishRequest result = - new com.google.cloud.pubsublite.proto.InitialPublishRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.InitialPublishRequest result = new com.google.cloud.pubsublite.proto.InitialPublishRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -430,39 +398,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.InitialPublishReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.InitialPublishRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.InitialPublishRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.InitialPublishRequest)other); } else { super.mergeFrom(other); return this; @@ -470,8 +437,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.InitialPublishRequest other) { - if (other == com.google.cloud.pubsublite.proto.InitialPublishRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.InitialPublishRequest.getDefaultInstance()) return this; if (!other.getTopic().isEmpty()) { topic_ = other.topic_; bitField0_ |= 0x00000001; @@ -509,31 +475,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - topic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - partition_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - clientId_ = input.readBytes(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + partition_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + clientId_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -543,25 +505,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object topic_ = ""; /** - * - * *
      * The topic to which messages will be written.
      * 
* * string topic = 1; - * * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; @@ -570,21 +529,20 @@ public java.lang.String getTopic() { } } /** - * - * *
      * The topic to which messages will be written.
      * 
* * string topic = 1; - * * @return The bytes for topic. */ - public com.google.protobuf.ByteString getTopicBytes() { + public com.google.protobuf.ByteString + getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); topic_ = b; return b; } else { @@ -592,35 +550,28 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
      * The topic to which messages will be written.
      * 
* * string topic = 1; - * * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopic( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } topic_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The topic to which messages will be written.
      * 
* * string topic = 1; - * * @return This builder for chaining. */ public Builder clearTopic() { @@ -630,21 +581,17 @@ public Builder clearTopic() { return this; } /** - * - * *
      * The topic to which messages will be written.
      * 
* * string topic = 1; - * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000001; @@ -652,10 +599,8 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { return this; } - private long partition_; + private long partition_ ; /** - * - * *
      * The partition within the topic to which messages will be written.
      * Partitions are zero indexed, so `partition` must be in the range [0,
@@ -663,7 +608,6 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) {
      * 
* * int64 partition = 2; - * * @return The partition. */ @java.lang.Override @@ -671,8 +615,6 @@ public long getPartition() { return partition_; } /** - * - * *
      * The partition within the topic to which messages will be written.
      * Partitions are zero indexed, so `partition` must be in the range [0,
@@ -680,7 +622,6 @@ public long getPartition() {
      * 
* * int64 partition = 2; - * * @param value The partition to set. * @return This builder for chaining. */ @@ -692,8 +633,6 @@ public Builder setPartition(long value) { return this; } /** - * - * *
      * The partition within the topic to which messages will be written.
      * Partitions are zero indexed, so `partition` must be in the range [0,
@@ -701,7 +640,6 @@ public Builder setPartition(long value) {
      * 
* * int64 partition = 2; - * * @return This builder for chaining. */ public Builder clearPartition() { @@ -713,8 +651,6 @@ public Builder clearPartition() { private com.google.protobuf.ByteString clientId_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Unique identifier for a publisher client. If set, enables publish
      * idempotency within a publisher client session.
@@ -726,7 +662,6 @@ public Builder clearPartition() {
      * 
* * bytes client_id = 3; - * * @return The clientId. */ @java.lang.Override @@ -734,8 +669,6 @@ public com.google.protobuf.ByteString getClientId() { return clientId_; } /** - * - * *
      * Unique identifier for a publisher client. If set, enables publish
      * idempotency within a publisher client session.
@@ -747,22 +680,17 @@ public com.google.protobuf.ByteString getClientId() {
      * 
* * bytes client_id = 3; - * * @param value The clientId to set. * @return This builder for chaining. */ public Builder setClientId(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } clientId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Unique identifier for a publisher client. If set, enables publish
      * idempotency within a publisher client session.
@@ -774,7 +702,6 @@ public Builder setClientId(com.google.protobuf.ByteString value) {
      * 
* * bytes client_id = 3; - * * @return This builder for chaining. */ public Builder clearClientId() { @@ -783,9 +710,9 @@ public Builder clearClientId() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -795,12 +722,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.InitialPublishRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.InitialPublishRequest) private static final com.google.cloud.pubsublite.proto.InitialPublishRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.InitialPublishRequest(); } @@ -809,27 +736,27 @@ public static com.google.cloud.pubsublite.proto.InitialPublishRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InitialPublishRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InitialPublishRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -844,4 +771,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.InitialPublishRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequestOrBuilder.java similarity index 66% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequestOrBuilder.java index 528295aa3..32cd8cf91 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishRequestOrBuilder.java @@ -1,57 +1,34 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/publisher.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface InitialPublishRequestOrBuilder - extends +public interface InitialPublishRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.InitialPublishRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The topic to which messages will be written.
    * 
* * string topic = 1; - * * @return The topic. */ java.lang.String getTopic(); /** - * - * *
    * The topic to which messages will be written.
    * 
* * string topic = 1; - * * @return The bytes for topic. */ - com.google.protobuf.ByteString getTopicBytes(); + com.google.protobuf.ByteString + getTopicBytes(); /** - * - * *
    * The partition within the topic to which messages will be written.
    * Partitions are zero indexed, so `partition` must be in the range [0,
@@ -59,14 +36,11 @@ public interface InitialPublishRequestOrBuilder
    * 
* * int64 partition = 2; - * * @return The partition. */ long getPartition(); /** - * - * *
    * Unique identifier for a publisher client. If set, enables publish
    * idempotency within a publisher client session.
@@ -78,7 +52,6 @@ public interface InitialPublishRequestOrBuilder
    * 
* * bytes client_id = 3; - * * @return The clientId. */ com.google.protobuf.ByteString getClientId(); diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponse.java similarity index 61% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponse.java index 037a95528..59a33b9af 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponse.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/publisher.proto @@ -20,49 +5,45 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response to an InitialPublishRequest.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.InitialPublishResponse} */ -public final class InitialPublishResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InitialPublishResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.InitialPublishResponse) InitialPublishResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InitialPublishResponse.newBuilder() to construct. private InitialPublishResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private InitialPublishResponse() {} + private InitialPublishResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InitialPublishResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.InitialPublishResponse.class, - com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder.class); + com.google.cloud.pubsublite.proto.InitialPublishResponse.class, com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -74,7 +55,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -92,13 +74,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.InitialPublishResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.InitialPublishResponse other = - (com.google.cloud.pubsublite.proto.InitialPublishResponse) obj; + com.google.cloud.pubsublite.proto.InitialPublishResponse other = (com.google.cloud.pubsublite.proto.InitialPublishResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -117,136 +98,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.InitialPublishResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialPublishResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.InitialPublishResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialPublishResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.InitialPublishResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialPublishResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.InitialPublishResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.InitialPublishResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.InitialPublishResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.InitialPublishResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.InitialPublishResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.InitialPublishResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.InitialPublishResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.InitialPublishResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.InitialPublishResponse prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.InitialPublishResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response to an InitialPublishRequest.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.InitialPublishResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.InitialPublishResponse) com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.InitialPublishResponse.class, - com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder.class); + com.google.cloud.pubsublite.proto.InitialPublishResponse.class, com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.InitialPublishResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -254,9 +230,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor; } @java.lang.Override @@ -275,8 +251,7 @@ public com.google.cloud.pubsublite.proto.InitialPublishResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.InitialPublishResponse buildPartial() { - com.google.cloud.pubsublite.proto.InitialPublishResponse result = - new com.google.cloud.pubsublite.proto.InitialPublishResponse(this); + com.google.cloud.pubsublite.proto.InitialPublishResponse result = new com.google.cloud.pubsublite.proto.InitialPublishResponse(this); onBuilt(); return result; } @@ -285,39 +260,38 @@ public com.google.cloud.pubsublite.proto.InitialPublishResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.InitialPublishResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.InitialPublishResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.InitialPublishResponse)other); } else { super.mergeFrom(other); return this; @@ -325,8 +299,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.InitialPublishResponse other) { - if (other == com.google.cloud.pubsublite.proto.InitialPublishResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.InitialPublishResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -353,13 +326,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -369,9 +341,9 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -381,12 +353,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.InitialPublishResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.InitialPublishResponse) private static final com.google.cloud.pubsublite.proto.InitialPublishResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.InitialPublishResponse(); } @@ -395,27 +367,27 @@ public static com.google.cloud.pubsublite.proto.InitialPublishResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InitialPublishResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InitialPublishResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -430,4 +402,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.InitialPublishResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponseOrBuilder.java new file mode 100644 index 000000000..efe8e1604 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponseOrBuilder.java @@ -0,0 +1,10 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/publisher.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.pubsublite.proto; + +public interface InitialPublishResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.InitialPublishResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequest.java similarity index 66% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequest.java index de54371cf..5cf706345 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto @@ -20,8 +5,6 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * The first request that must be sent on a newly-opened stream. The client must
  * wait for the response before sending subsequent requests on the stream.
@@ -29,55 +12,49 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.InitialSubscribeRequest}
  */
-public final class InitialSubscribeRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class InitialSubscribeRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.InitialSubscribeRequest)
     InitialSubscribeRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use InitialSubscribeRequest.newBuilder() to construct.
   private InitialSubscribeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private InitialSubscribeRequest() {
     subscription_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new InitialSubscribeRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.InitialSubscribeRequest.class,
-            com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder.class);
+            com.google.cloud.pubsublite.proto.InitialSubscribeRequest.class, com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder.class);
   }
 
   private int bitField0_;
   public static final int SUBSCRIPTION_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object subscription_ = "";
   /**
-   *
-   *
    * 
    * The subscription from which to receive messages.
    * 
* * string subscription = 1; - * * @return The subscription. */ @java.lang.Override @@ -86,29 +63,29 @@ public java.lang.String getSubscription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; } } /** - * - * *
    * The subscription from which to receive messages.
    * 
* * string subscription = 1; - * * @return The bytes for subscription. */ @java.lang.Override - public com.google.protobuf.ByteString getSubscriptionBytes() { + public com.google.protobuf.ByteString + getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subscription_ = b; return b; } else { @@ -119,15 +96,12 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public static final int PARTITION_FIELD_NUMBER = 2; private long partition_ = 0L; /** - * - * *
    * The partition from which to receive messages. Partitions are zero indexed,
    * so `partition` must be in the range [0, topic.num_partitions).
    * 
* * int64 partition = 2; - * * @return The partition. */ @java.lang.Override @@ -138,18 +112,13 @@ public long getPartition() { public static final int INITIAL_LOCATION_FIELD_NUMBER = 4; private com.google.cloud.pubsublite.proto.SeekRequest initialLocation_; /** - * - * *
    * Optional. Initial target location within the message backlog. If not set,
    * messages will be delivered from the commit cursor for the given
    * subscription and partition.
    * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the initialLocation field is set. */ @java.lang.Override @@ -157,48 +126,34 @@ public boolean hasInitialLocation() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Optional. Initial target location within the message backlog. If not set,
    * messages will be delivered from the commit cursor for the given
    * subscription and partition.
    * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The initialLocation. */ @java.lang.Override public com.google.cloud.pubsublite.proto.SeekRequest getInitialLocation() { - return initialLocation_ == null - ? com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance() - : initialLocation_; + return initialLocation_ == null ? com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance() : initialLocation_; } /** - * - * *
    * Optional. Initial target location within the message backlog. If not set,
    * messages will be delivered from the commit cursor for the given
    * subscription and partition.
    * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.pubsublite.proto.SeekRequestOrBuilder getInitialLocationOrBuilder() { - return initialLocation_ == null - ? com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance() - : initialLocation_; + return initialLocation_ == null ? com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance() : initialLocation_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +165,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); } @@ -233,10 +189,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } if (partition_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, partition_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, partition_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getInitialLocation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getInitialLocation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -246,19 +204,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.InitialSubscribeRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.InitialSubscribeRequest other = - (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) obj; + com.google.cloud.pubsublite.proto.InitialSubscribeRequest other = (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) obj; - if (!getSubscription().equals(other.getSubscription())) return false; - if (getPartition() != other.getPartition()) return false; + if (!getSubscription() + .equals(other.getSubscription())) return false; + if (getPartition() + != other.getPartition()) return false; if (hasInitialLocation() != other.hasInitialLocation()) return false; if (hasInitialLocation()) { - if (!getInitialLocation().equals(other.getInitialLocation())) return false; + if (!getInitialLocation() + .equals(other.getInitialLocation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -274,7 +234,8 @@ public int hashCode() { hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getSubscription().hashCode(); hash = (37 * hash) + PARTITION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartition()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPartition()); if (hasInitialLocation()) { hash = (37 * hash) + INITIAL_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getInitialLocation().hashCode(); @@ -285,104 +246,98 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.InitialSubscribeRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.InitialSubscribeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The first request that must be sent on a newly-opened stream. The client must
    * wait for the response before sending subsequent requests on the stream.
@@ -390,23 +345,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.InitialSubscribeRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.InitialSubscribeRequest)
       com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.InitialSubscribeRequest.class,
-              com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder.class);
+              com.google.cloud.pubsublite.proto.InitialSubscribeRequest.class, com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.InitialSubscribeRequest.newBuilder()
@@ -414,17 +367,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getInitialLocationFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -440,9 +393,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -461,11 +414,8 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.InitialSubscribeRequest buildPartial() {
-      com.google.cloud.pubsublite.proto.InitialSubscribeRequest result =
-          new com.google.cloud.pubsublite.proto.InitialSubscribeRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.pubsublite.proto.InitialSubscribeRequest result = new com.google.cloud.pubsublite.proto.InitialSubscribeRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -480,8 +430,9 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.InitialSubscribeReq
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.initialLocation_ =
-            initialLocationBuilder_ == null ? initialLocation_ : initialLocationBuilder_.build();
+        result.initialLocation_ = initialLocationBuilder_ == null
+            ? initialLocation_
+            : initialLocationBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       result.bitField0_ |= to_bitField0_;
@@ -491,39 +442,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.InitialSubscribeReq
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.pubsublite.proto.InitialSubscribeRequest) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.InitialSubscribeRequest) other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.InitialSubscribeRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -531,8 +481,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.InitialSubscribeRequest other) {
-      if (other == com.google.cloud.pubsublite.proto.InitialSubscribeRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.pubsublite.proto.InitialSubscribeRequest.getDefaultInstance()) return this;
       if (!other.getSubscription().isEmpty()) {
         subscription_ = other.subscription_;
         bitField0_ |= 0x00000001;
@@ -570,31 +519,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                subscription_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                partition_ = input.readInt64();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 34:
-              {
-                input.readMessage(getInitialLocationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              subscription_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              partition_ = input.readInt64();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 34: {
+              input.readMessage(
+                  getInitialLocationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -604,25 +551,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object subscription_ = "";
     /**
-     *
-     *
      * 
      * The subscription from which to receive messages.
      * 
* * string subscription = 1; - * * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; @@ -631,21 +575,20 @@ public java.lang.String getSubscription() { } } /** - * - * *
      * The subscription from which to receive messages.
      * 
* * string subscription = 1; - * * @return The bytes for subscription. */ - public com.google.protobuf.ByteString getSubscriptionBytes() { + public com.google.protobuf.ByteString + getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subscription_ = b; return b; } else { @@ -653,35 +596,28 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * The subscription from which to receive messages.
      * 
* * string subscription = 1; - * * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubscription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } subscription_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The subscription from which to receive messages.
      * 
* * string subscription = 1; - * * @return This builder for chaining. */ public Builder clearSubscription() { @@ -691,21 +627,17 @@ public Builder clearSubscription() { return this; } /** - * - * *
      * The subscription from which to receive messages.
      * 
* * string subscription = 1; - * * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subscription_ = value; bitField0_ |= 0x00000001; @@ -713,17 +645,14 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { return this; } - private long partition_; + private long partition_ ; /** - * - * *
      * The partition from which to receive messages. Partitions are zero indexed,
      * so `partition` must be in the range [0, topic.num_partitions).
      * 
* * int64 partition = 2; - * * @return The partition. */ @java.lang.Override @@ -731,15 +660,12 @@ public long getPartition() { return partition_; } /** - * - * *
      * The partition from which to receive messages. Partitions are zero indexed,
      * so `partition` must be in the range [0, topic.num_partitions).
      * 
* * int64 partition = 2; - * * @param value The partition to set. * @return This builder for chaining. */ @@ -751,15 +677,12 @@ public Builder setPartition(long value) { return this; } /** - * - * *
      * The partition from which to receive messages. Partitions are zero indexed,
      * so `partition` must be in the range [0, topic.num_partitions).
      * 
* * int64 partition = 2; - * * @return This builder for chaining. */ public Builder clearPartition() { @@ -771,64 +694,45 @@ public Builder clearPartition() { private com.google.cloud.pubsublite.proto.SeekRequest initialLocation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SeekRequest, - com.google.cloud.pubsublite.proto.SeekRequest.Builder, - com.google.cloud.pubsublite.proto.SeekRequestOrBuilder> - initialLocationBuilder_; + com.google.cloud.pubsublite.proto.SeekRequest, com.google.cloud.pubsublite.proto.SeekRequest.Builder, com.google.cloud.pubsublite.proto.SeekRequestOrBuilder> initialLocationBuilder_; /** - * - * *
      * Optional. Initial target location within the message backlog. If not set,
      * messages will be delivered from the commit cursor for the given
      * subscription and partition.
      * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the initialLocation field is set. */ public boolean hasInitialLocation() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Optional. Initial target location within the message backlog. If not set,
      * messages will be delivered from the commit cursor for the given
      * subscription and partition.
      * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The initialLocation. */ public com.google.cloud.pubsublite.proto.SeekRequest getInitialLocation() { if (initialLocationBuilder_ == null) { - return initialLocation_ == null - ? com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance() - : initialLocation_; + return initialLocation_ == null ? com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance() : initialLocation_; } else { return initialLocationBuilder_.getMessage(); } } /** - * - * *
      * Optional. Initial target location within the message backlog. If not set,
      * messages will be delivered from the commit cursor for the given
      * subscription and partition.
      * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setInitialLocation(com.google.cloud.pubsublite.proto.SeekRequest value) { if (initialLocationBuilder_ == null) { @@ -844,17 +748,13 @@ public Builder setInitialLocation(com.google.cloud.pubsublite.proto.SeekRequest return this; } /** - * - * *
      * Optional. Initial target location within the message backlog. If not set,
      * messages will be delivered from the commit cursor for the given
      * subscription and partition.
      * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setInitialLocation( com.google.cloud.pubsublite.proto.SeekRequest.Builder builderForValue) { @@ -868,24 +768,19 @@ public Builder setInitialLocation( return this; } /** - * - * *
      * Optional. Initial target location within the message backlog. If not set,
      * messages will be delivered from the commit cursor for the given
      * subscription and partition.
      * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeInitialLocation(com.google.cloud.pubsublite.proto.SeekRequest value) { if (initialLocationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && initialLocation_ != null - && initialLocation_ - != com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + initialLocation_ != null && + initialLocation_ != com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance()) { getInitialLocationBuilder().mergeFrom(value); } else { initialLocation_ = value; @@ -900,17 +795,13 @@ public Builder mergeInitialLocation(com.google.cloud.pubsublite.proto.SeekReques return this; } /** - * - * *
      * Optional. Initial target location within the message backlog. If not set,
      * messages will be delivered from the commit cursor for the given
      * subscription and partition.
      * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearInitialLocation() { bitField0_ = (bitField0_ & ~0x00000004); @@ -923,17 +814,13 @@ public Builder clearInitialLocation() { return this; } /** - * - * *
      * Optional. Initial target location within the message backlog. If not set,
      * messages will be delivered from the commit cursor for the given
      * subscription and partition.
      * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.pubsublite.proto.SeekRequest.Builder getInitialLocationBuilder() { bitField0_ |= 0x00000004; @@ -941,59 +828,47 @@ public com.google.cloud.pubsublite.proto.SeekRequest.Builder getInitialLocationB return getInitialLocationFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Initial target location within the message backlog. If not set,
      * messages will be delivered from the commit cursor for the given
      * subscription and partition.
      * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.pubsublite.proto.SeekRequestOrBuilder getInitialLocationOrBuilder() { if (initialLocationBuilder_ != null) { return initialLocationBuilder_.getMessageOrBuilder(); } else { - return initialLocation_ == null - ? com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance() - : initialLocation_; + return initialLocation_ == null ? + com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance() : initialLocation_; } } /** - * - * *
      * Optional. Initial target location within the message backlog. If not set,
      * messages will be delivered from the commit cursor for the given
      * subscription and partition.
      * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SeekRequest, - com.google.cloud.pubsublite.proto.SeekRequest.Builder, - com.google.cloud.pubsublite.proto.SeekRequestOrBuilder> + com.google.cloud.pubsublite.proto.SeekRequest, com.google.cloud.pubsublite.proto.SeekRequest.Builder, com.google.cloud.pubsublite.proto.SeekRequestOrBuilder> getInitialLocationFieldBuilder() { if (initialLocationBuilder_ == null) { - initialLocationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SeekRequest, - com.google.cloud.pubsublite.proto.SeekRequest.Builder, - com.google.cloud.pubsublite.proto.SeekRequestOrBuilder>( - getInitialLocation(), getParentForChildren(), isClean()); + initialLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.SeekRequest, com.google.cloud.pubsublite.proto.SeekRequest.Builder, com.google.cloud.pubsublite.proto.SeekRequestOrBuilder>( + getInitialLocation(), + getParentForChildren(), + isClean()); initialLocation_ = null; } return initialLocationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1003,12 +878,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.InitialSubscribeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.InitialSubscribeRequest) private static final com.google.cloud.pubsublite.proto.InitialSubscribeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.InitialSubscribeRequest(); } @@ -1017,27 +892,27 @@ public static com.google.cloud.pubsublite.proto.InitialSubscribeRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InitialSubscribeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InitialSubscribeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1052,4 +927,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.InitialSubscribeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequestOrBuilder.java index 383f003b9..0b04ffacc 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeRequestOrBuilder.java @@ -1,112 +1,74 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface InitialSubscribeRequestOrBuilder - extends +public interface InitialSubscribeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.InitialSubscribeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The subscription from which to receive messages.
    * 
* * string subscription = 1; - * * @return The subscription. */ java.lang.String getSubscription(); /** - * - * *
    * The subscription from which to receive messages.
    * 
* * string subscription = 1; - * * @return The bytes for subscription. */ - com.google.protobuf.ByteString getSubscriptionBytes(); + com.google.protobuf.ByteString + getSubscriptionBytes(); /** - * - * *
    * The partition from which to receive messages. Partitions are zero indexed,
    * so `partition` must be in the range [0, topic.num_partitions).
    * 
* * int64 partition = 2; - * * @return The partition. */ long getPartition(); /** - * - * *
    * Optional. Initial target location within the message backlog. If not set,
    * messages will be delivered from the commit cursor for the given
    * subscription and partition.
    * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the initialLocation field is set. */ boolean hasInitialLocation(); /** - * - * *
    * Optional. Initial target location within the message backlog. If not set,
    * messages will be delivered from the commit cursor for the given
    * subscription and partition.
    * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The initialLocation. */ com.google.cloud.pubsublite.proto.SeekRequest getInitialLocation(); /** - * - * *
    * Optional. Initial target location within the message backlog. If not set,
    * messages will be delivered from the commit cursor for the given
    * subscription and partition.
    * 
* - * - * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.pubsublite.v1.SeekRequest initial_location = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.pubsublite.proto.SeekRequestOrBuilder getInitialLocationOrBuilder(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponse.java similarity index 66% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponse.java index 0ff2b9eae..065a59576 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponse.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto @@ -20,60 +5,54 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response to an InitialSubscribeRequest.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.InitialSubscribeResponse} */ -public final class InitialSubscribeResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InitialSubscribeResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.InitialSubscribeResponse) InitialSubscribeResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InitialSubscribeResponse.newBuilder() to construct. private InitialSubscribeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private InitialSubscribeResponse() {} + private InitialSubscribeResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InitialSubscribeResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.InitialSubscribeResponse.class, - com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder.class); + com.google.cloud.pubsublite.proto.InitialSubscribeResponse.class, com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder.class); } private int bitField0_; public static final int CURSOR_FIELD_NUMBER = 1; private com.google.cloud.pubsublite.proto.Cursor cursor_; /** - * - * *
    * The cursor from which the subscriber will start receiving messages once
    * flow control tokens become available.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ @java.lang.Override @@ -81,26 +60,19 @@ public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The cursor from which the subscriber will start receiving messages once
    * flow control tokens become available.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getCursor() { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } /** - * - * *
    * The cursor from which the subscriber will start receiving messages once
    * flow control tokens become available.
@@ -110,13 +82,10 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() {
    */
   @java.lang.Override
   public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
-    return cursor_ == null
-        ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()
-        : cursor_;
+    return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -128,7 +97,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(1, getCursor());
     }
@@ -142,7 +112,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCursor());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getCursor());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -152,17 +123,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.pubsublite.proto.InitialSubscribeResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.InitialSubscribeResponse other =
-        (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) obj;
+    com.google.cloud.pubsublite.proto.InitialSubscribeResponse other = (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) obj;
 
     if (hasCursor() != other.hasCursor()) return false;
     if (hasCursor()) {
-      if (!getCursor().equals(other.getCursor())) return false;
+      if (!getCursor()
+          .equals(other.getCursor())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -185,127 +156,119 @@ public int hashCode() {
   }
 
   public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.pubsublite.proto.InitialSubscribeResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.pubsublite.proto.InitialSubscribeResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Response to an InitialSubscribeRequest.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.InitialSubscribeResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.InitialSubscribeResponse) com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.InitialSubscribeResponse.class, - com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder.class); + com.google.cloud.pubsublite.proto.InitialSubscribeResponse.class, com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.InitialSubscribeResponse.newBuilder() @@ -313,17 +276,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCursorFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -337,9 +300,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor; } @java.lang.Override @@ -358,11 +321,8 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.InitialSubscribeResponse buildPartial() { - com.google.cloud.pubsublite.proto.InitialSubscribeResponse result = - new com.google.cloud.pubsublite.proto.InitialSubscribeResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.InitialSubscribeResponse result = new com.google.cloud.pubsublite.proto.InitialSubscribeResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -371,7 +331,9 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.InitialSubscribeRes int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build(); + result.cursor_ = cursorBuilder_ == null + ? cursor_ + : cursorBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -381,39 +343,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.InitialSubscribeRes public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.InitialSubscribeResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.InitialSubscribeResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.InitialSubscribeResponse)other); } else { super.mergeFrom(other); return this; @@ -421,8 +382,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.InitialSubscribeResponse other) { - if (other == com.google.cloud.pubsublite.proto.InitialSubscribeResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.InitialSubscribeResponse.getDefaultInstance()) return this; if (other.hasCursor()) { mergeCursor(other.getCursor()); } @@ -452,19 +412,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCursorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCursorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -474,54 +434,40 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.pubsublite.proto.Cursor cursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> - cursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> cursorBuilder_; /** - * - * *
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ public com.google.cloud.pubsublite.proto.Cursor getCursor() { if (cursorBuilder_ == null) { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } else { return cursorBuilder_.getMessage(); } } /** - * - * *
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
@@ -543,8 +489,6 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
@@ -552,7 +496,8 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) {
      *
      * .google.cloud.pubsublite.v1.Cursor cursor = 1;
      */
-    public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
+    public Builder setCursor(
+        com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
       if (cursorBuilder_ == null) {
         cursor_ = builderForValue.build();
       } else {
@@ -563,8 +508,6 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde
       return this;
     }
     /**
-     *
-     *
      * 
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
@@ -574,9 +517,9 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde
      */
     public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       if (cursorBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && cursor_ != null
-            && cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          cursor_ != null &&
+          cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
           getCursorBuilder().mergeFrom(value);
         } else {
           cursor_ = value;
@@ -591,8 +534,6 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
@@ -611,8 +552,6 @@ public Builder clearCursor() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
@@ -626,8 +565,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() {
       return getCursorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
@@ -639,14 +576,11 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
       if (cursorBuilder_ != null) {
         return cursorBuilder_.getMessageOrBuilder();
       } else {
-        return cursor_ == null
-            ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()
-            : cursor_;
+        return cursor_ == null ?
+            com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_;
       }
     }
     /**
-     *
-     *
      * 
      * The cursor from which the subscriber will start receiving messages once
      * flow control tokens become available.
@@ -655,24 +589,21 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
      * .google.cloud.pubsublite.v1.Cursor cursor = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Cursor,
-            com.google.cloud.pubsublite.proto.Cursor.Builder,
-            com.google.cloud.pubsublite.proto.CursorOrBuilder>
+        com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> 
         getCursorFieldBuilder() {
       if (cursorBuilder_ == null) {
-        cursorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.pubsublite.proto.Cursor,
-                com.google.cloud.pubsublite.proto.Cursor.Builder,
-                com.google.cloud.pubsublite.proto.CursorOrBuilder>(
-                getCursor(), getParentForChildren(), isClean());
+        cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>(
+                getCursor(),
+                getParentForChildren(),
+                isClean());
         cursor_ = null;
       }
       return cursorBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -682,12 +613,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.InitialSubscribeResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.InitialSubscribeResponse)
   private static final com.google.cloud.pubsublite.proto.InitialSubscribeResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.InitialSubscribeResponse();
   }
@@ -696,27 +627,27 @@ public static com.google.cloud.pubsublite.proto.InitialSubscribeResponse getDefa
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public InitialSubscribeResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public InitialSubscribeResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -731,4 +662,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.pubsublite.proto.InitialSubscribeResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponseOrBuilder.java
similarity index 64%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponseOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponseOrBuilder.java
index e13f541b7..22d2e3883 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponseOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialSubscribeResponseOrBuilder.java
@@ -1,58 +1,34 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/subscriber.proto
 
 // Protobuf Java Version: 3.25.2
 package com.google.cloud.pubsublite.proto;
 
-public interface InitialSubscribeResponseOrBuilder
-    extends
+public interface InitialSubscribeResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.InitialSubscribeResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The cursor from which the subscriber will start receiving messages once
    * flow control tokens become available.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ boolean hasCursor(); /** - * - * *
    * The cursor from which the subscriber will start receiving messages once
    * flow control tokens become available.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ com.google.cloud.pubsublite.proto.Cursor getCursor(); /** - * - * *
    * The cursor from which the subscriber will start receiving messages once
    * flow control tokens become available.
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequest.java
similarity index 67%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequest.java
index 99db3a500..14361d925 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequest.java
@@ -1,18 +1,3 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/cursor.proto
 
@@ -20,24 +5,21 @@
 package com.google.cloud.pubsublite.proto;
 
 /**
- *
- *
  * 
  * Request for ListPartitionCursors.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListPartitionCursorsRequest} */ -public final class ListPartitionCursorsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListPartitionCursorsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ListPartitionCursorsRequest) ListPartitionCursorsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListPartitionCursorsRequest.newBuilder() to construct. private ListPartitionCursorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListPartitionCursorsRequest() { parent_ = ""; pageToken_ = ""; @@ -45,42 +27,35 @@ private ListPartitionCursorsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListPartitionCursorsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.class, - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.class, com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The subscription for which to retrieve cursors.
    * Structured like
    * `projects/{project_number}/locations/{location}/subscriptions/{subscription_id}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -89,33 +64,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The subscription for which to retrieve cursors.
    * Structured like
    * `projects/{project_number}/locations/{location}/subscriptions/{subscription_id}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -126,8 +99,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of cursors to return. The service may return fewer than
    * this value.
@@ -135,7 +106,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -144,12 +114,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListPartitionCursors` call.
    * Provide this to retrieve the subsequent page.
@@ -159,7 +126,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -168,15 +134,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A page token, received from a previous `ListPartitionCursors` call.
    * Provide this to retrieve the subsequent page.
@@ -186,15 +151,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -203,7 +169,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -215,7 +180,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -238,7 +204,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -251,17 +218,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest other = - (com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest) obj; + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest other = (com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,136 +254,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for ListPartitionCursors.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListPartitionCursorsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.ListPartitionCursorsRequest) com.google.cloud.pubsublite.proto.ListPartitionCursorsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.class, - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.class, com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -426,14 +390,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.getDefaultInstance(); } @@ -448,17 +411,13 @@ public com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest buildPartial() { - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest result = - new com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest result = new com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -475,39 +434,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest)other); } else { super.mergeFrom(other); return this; @@ -515,9 +473,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest other) { - if (other - == com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -557,31 +513,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -591,29 +543,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The subscription for which to retrieve cursors.
      * Structured like
      * `projects/{project_number}/locations/{location}/subscriptions/{subscription_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -622,25 +569,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The subscription for which to retrieve cursors.
      * Structured like
      * `projects/{project_number}/locations/{location}/subscriptions/{subscription_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -648,43 +592,32 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The subscription for which to retrieve cursors.
      * Structured like
      * `projects/{project_number}/locations/{location}/subscriptions/{subscription_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The subscription for which to retrieve cursors.
      * Structured like
      * `projects/{project_number}/locations/{location}/subscriptions/{subscription_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -694,25 +627,19 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The subscription for which to retrieve cursors.
      * Structured like
      * `projects/{project_number}/locations/{location}/subscriptions/{subscription_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -720,10 +647,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of cursors to return. The service may return fewer than
      * this value.
@@ -731,7 +656,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -739,8 +663,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of cursors to return. The service may return fewer than
      * this value.
@@ -748,7 +670,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -760,8 +681,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * The maximum number of cursors to return. The service may return fewer than
      * this value.
@@ -769,7 +688,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -781,8 +699,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListPartitionCursors` call.
      * Provide this to retrieve the subsequent page.
@@ -792,13 +708,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -807,8 +723,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListPartitionCursors` call.
      * Provide this to retrieve the subsequent page.
@@ -818,14 +732,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -833,8 +748,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListPartitionCursors` call.
      * Provide this to retrieve the subsequent page.
@@ -844,22 +757,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListPartitionCursors` call.
      * Provide this to retrieve the subsequent page.
@@ -869,7 +778,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -879,8 +787,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListPartitionCursors` call.
      * Provide this to retrieve the subsequent page.
@@ -890,23 +796,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -916,13 +820,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListPartitionCursorsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListPartitionCursorsRequest) - private static final com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest(); } @@ -931,27 +834,27 @@ public static com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPartitionCursorsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPartitionCursorsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -966,4 +869,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.pubsublite.proto.ListPartitionCursorsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequestOrBuilder.java index b8d372f47..e6b0fac19 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsRequestOrBuilder.java @@ -1,65 +1,38 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface ListPartitionCursorsRequestOrBuilder - extends +public interface ListPartitionCursorsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListPartitionCursorsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The subscription for which to retrieve cursors.
    * Structured like
    * `projects/{project_number}/locations/{location}/subscriptions/{subscription_id}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The subscription for which to retrieve cursors.
    * Structured like
    * `projects/{project_number}/locations/{location}/subscriptions/{subscription_id}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of cursors to return. The service may return fewer than
    * this value.
@@ -67,14 +40,11 @@ public interface ListPartitionCursorsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListPartitionCursors` call.
    * Provide this to retrieve the subsequent page.
@@ -84,13 +54,10 @@ public interface ListPartitionCursorsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListPartitionCursors` call.
    * Provide this to retrieve the subsequent page.
@@ -100,8 +67,8 @@ public interface ListPartitionCursorsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponse.java similarity index 71% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponse.java index 36a78f17d..ef438c75a 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponse.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto @@ -20,24 +5,21 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response for ListPartitionCursors
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListPartitionCursorsResponse} */ -public final class ListPartitionCursorsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListPartitionCursorsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ListPartitionCursorsResponse) ListPartitionCursorsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListPartitionCursorsResponse.newBuilder() to construct. private ListPartitionCursorsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListPartitionCursorsResponse() { partitionCursors_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,32 +27,28 @@ private ListPartitionCursorsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListPartitionCursorsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.class, - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.class, com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.Builder.class); } public static final int PARTITION_CURSORS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List partitionCursors_; /** - * - * *
    * The partition cursors from this request.
    * 
@@ -78,13 +56,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1; */ @java.lang.Override - public java.util.List - getPartitionCursorsList() { + public java.util.List getPartitionCursorsList() { return partitionCursors_; } /** - * - * *
    * The partition cursors from this request.
    * 
@@ -92,13 +67,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPartitionCursorsOrBuilderList() { return partitionCursors_; } /** - * - * *
    * The partition cursors from this request.
    * 
@@ -110,8 +83,6 @@ public int getPartitionCursorsCount() { return partitionCursors_.size(); } /** - * - * *
    * The partition cursors from this request.
    * 
@@ -123,8 +94,6 @@ public com.google.cloud.pubsublite.proto.PartitionCursor getPartitionCursors(int return partitionCursors_.get(index); } /** - * - * *
    * The partition cursors from this request.
    * 
@@ -138,19 +107,15 @@ public com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder getPartitionCu } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -159,30 +124,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -191,7 +156,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +167,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < partitionCursors_.size(); i++) { output.writeMessage(1, partitionCursors_.get(i)); } @@ -220,7 +185,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < partitionCursors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, partitionCursors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, partitionCursors_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -233,16 +199,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse other = - (com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse) obj; + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse other = (com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse) obj; - if (!getPartitionCursorsList().equals(other.getPartitionCursorsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getPartitionCursorsList() + .equals(other.getPartitionCursorsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -266,136 +233,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for ListPartitionCursors
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListPartitionCursorsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.ListPartitionCursorsResponse) com.google.cloud.pubsublite.proto.ListPartitionCursorsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.class, - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.class, com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -412,14 +374,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.getDefaultInstance(); } @@ -434,18 +395,14 @@ public com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse buildPartial() { - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse result = - new com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse(this); + com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse result = new com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse result) { if (partitionCursorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { partitionCursors_ = java.util.Collections.unmodifiableList(partitionCursors_); @@ -457,8 +414,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -469,39 +425,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse)other); } else { super.mergeFrom(other); return this; @@ -509,9 +464,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse other) { - if (other - == com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse.getDefaultInstance()) return this; if (partitionCursorsBuilder_ == null) { if (!other.partitionCursors_.isEmpty()) { if (partitionCursors_.isEmpty()) { @@ -530,10 +483,9 @@ public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListPartitionCursorsR partitionCursorsBuilder_ = null; partitionCursors_ = other.partitionCursors_; bitField0_ = (bitField0_ & ~0x00000001); - partitionCursorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPartitionCursorsFieldBuilder() - : null; + partitionCursorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPartitionCursorsFieldBuilder() : null; } else { partitionCursorsBuilder_.addAllMessages(other.partitionCursors_); } @@ -570,33 +522,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.pubsublite.proto.PartitionCursor m = - input.readMessage( - com.google.cloud.pubsublite.proto.PartitionCursor.parser(), - extensionRegistry); - if (partitionCursorsBuilder_ == null) { - ensurePartitionCursorsIsMutable(); - partitionCursors_.add(m); - } else { - partitionCursorsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.pubsublite.proto.PartitionCursor m = + input.readMessage( + com.google.cloud.pubsublite.proto.PartitionCursor.parser(), + extensionRegistry); + if (partitionCursorsBuilder_ == null) { + ensurePartitionCursorsIsMutable(); + partitionCursors_.add(m); + } else { + partitionCursorsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -606,38 +555,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List partitionCursors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePartitionCursorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - partitionCursors_ = - new java.util.ArrayList( - partitionCursors_); + partitionCursors_ = new java.util.ArrayList(partitionCursors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.PartitionCursor, - com.google.cloud.pubsublite.proto.PartitionCursor.Builder, - com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder> - partitionCursorsBuilder_; + com.google.cloud.pubsublite.proto.PartitionCursor, com.google.cloud.pubsublite.proto.PartitionCursor.Builder, com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder> partitionCursorsBuilder_; /** - * - * *
      * The partition cursors from this request.
      * 
* * repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1; */ - public java.util.List - getPartitionCursorsList() { + public java.util.List getPartitionCursorsList() { if (partitionCursorsBuilder_ == null) { return java.util.Collections.unmodifiableList(partitionCursors_); } else { @@ -645,8 +584,6 @@ private void ensurePartitionCursorsIsMutable() { } } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -661,8 +598,6 @@ public int getPartitionCursorsCount() { } } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -677,8 +612,6 @@ public com.google.cloud.pubsublite.proto.PartitionCursor getPartitionCursors(int } } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -700,8 +633,6 @@ public Builder setPartitionCursors( return this; } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -720,8 +651,6 @@ public Builder setPartitionCursors( return this; } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -742,8 +671,6 @@ public Builder addPartitionCursors(com.google.cloud.pubsublite.proto.PartitionCu return this; } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -765,8 +692,6 @@ public Builder addPartitionCursors( return this; } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -785,8 +710,6 @@ public Builder addPartitionCursors( return this; } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -805,8 +728,6 @@ public Builder addPartitionCursors( return this; } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -817,7 +738,8 @@ public Builder addAllPartitionCursors( java.lang.Iterable values) { if (partitionCursorsBuilder_ == null) { ensurePartitionCursorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partitionCursors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, partitionCursors_); onChanged(); } else { partitionCursorsBuilder_.addAllMessages(values); @@ -825,8 +747,6 @@ public Builder addAllPartitionCursors( return this; } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -844,8 +764,6 @@ public Builder clearPartitionCursors() { return this; } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -863,8 +781,6 @@ public Builder removePartitionCursors(int index) { return this; } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -876,8 +792,6 @@ public com.google.cloud.pubsublite.proto.PartitionCursor.Builder getPartitionCur return getPartitionCursorsFieldBuilder().getBuilder(index); } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -887,22 +801,19 @@ public com.google.cloud.pubsublite.proto.PartitionCursor.Builder getPartitionCur public com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder getPartitionCursorsOrBuilder( int index) { if (partitionCursorsBuilder_ == null) { - return partitionCursors_.get(index); - } else { + return partitionCursors_.get(index); } else { return partitionCursorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The partition cursors from this request.
      * 
* * repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1; */ - public java.util.List - getPartitionCursorsOrBuilderList() { + public java.util.List + getPartitionCursorsOrBuilderList() { if (partitionCursorsBuilder_ != null) { return partitionCursorsBuilder_.getMessageOrBuilderList(); } else { @@ -910,8 +821,6 @@ public com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder getPartitionCu } } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -919,12 +828,10 @@ public com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder getPartitionCu * repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1; */ public com.google.cloud.pubsublite.proto.PartitionCursor.Builder addPartitionCursorsBuilder() { - return getPartitionCursorsFieldBuilder() - .addBuilder(com.google.cloud.pubsublite.proto.PartitionCursor.getDefaultInstance()); + return getPartitionCursorsFieldBuilder().addBuilder( + com.google.cloud.pubsublite.proto.PartitionCursor.getDefaultInstance()); } /** - * - * *
      * The partition cursors from this request.
      * 
@@ -933,35 +840,26 @@ public com.google.cloud.pubsublite.proto.PartitionCursor.Builder addPartitionCur */ public com.google.cloud.pubsublite.proto.PartitionCursor.Builder addPartitionCursorsBuilder( int index) { - return getPartitionCursorsFieldBuilder() - .addBuilder( - index, com.google.cloud.pubsublite.proto.PartitionCursor.getDefaultInstance()); + return getPartitionCursorsFieldBuilder().addBuilder( + index, com.google.cloud.pubsublite.proto.PartitionCursor.getDefaultInstance()); } /** - * - * *
      * The partition cursors from this request.
      * 
* * repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1; */ - public java.util.List - getPartitionCursorsBuilderList() { + public java.util.List + getPartitionCursorsBuilderList() { return getPartitionCursorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.PartitionCursor, - com.google.cloud.pubsublite.proto.PartitionCursor.Builder, - com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder> + com.google.cloud.pubsublite.proto.PartitionCursor, com.google.cloud.pubsublite.proto.PartitionCursor.Builder, com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder> getPartitionCursorsFieldBuilder() { if (partitionCursorsBuilder_ == null) { - partitionCursorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.PartitionCursor, - com.google.cloud.pubsublite.proto.PartitionCursor.Builder, - com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder>( + partitionCursorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.pubsublite.proto.PartitionCursor, com.google.cloud.pubsublite.proto.PartitionCursor.Builder, com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder>( partitionCursors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -973,21 +871,19 @@ public com.google.cloud.pubsublite.proto.PartitionCursor.Builder addPartitionCur private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -996,22 +892,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1019,37 +914,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1059,31 +947,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1093,43 +977,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListPartitionCursorsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListPartitionCursorsResponse) - private static final com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse(); } - public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse - getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPartitionCursorsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPartitionCursorsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1141,8 +1023,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListPartitionCursorsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponseOrBuilder.java similarity index 72% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponseOrBuilder.java index 4275c9d93..619e9bfcf 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListPartitionCursorsResponseOrBuilder.java @@ -1,42 +1,23 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface ListPartitionCursorsResponseOrBuilder - extends +public interface ListPartitionCursorsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListPartitionCursorsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The partition cursors from this request.
    * 
* * repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1; */ - java.util.List getPartitionCursorsList(); + java.util.List + getPartitionCursorsList(); /** - * - * *
    * The partition cursors from this request.
    * 
@@ -45,8 +26,6 @@ public interface ListPartitionCursorsResponseOrBuilder */ com.google.cloud.pubsublite.proto.PartitionCursor getPartitionCursors(int index); /** - * - * *
    * The partition cursors from this request.
    * 
@@ -55,19 +34,15 @@ public interface ListPartitionCursorsResponseOrBuilder */ int getPartitionCursorsCount(); /** - * - * *
    * The partition cursors from this request.
    * 
* * repeated .google.cloud.pubsublite.v1.PartitionCursor partition_cursors = 1; */ - java.util.List + java.util.List getPartitionCursorsOrBuilderList(); /** - * - * *
    * The partition cursors from this request.
    * 
@@ -78,29 +53,24 @@ com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder getPartitionCursorsOr int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequest.java similarity index 67% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequest.java index 740e0ad50..acdc58df7 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -20,24 +5,21 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for ListReservationTopics.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListReservationTopicsRequest} */ -public final class ListReservationTopicsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListReservationTopicsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ListReservationTopicsRequest) ListReservationTopicsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListReservationTopicsRequest.newBuilder() to construct. private ListReservationTopicsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListReservationTopicsRequest() { name_ = ""; pageToken_ = ""; @@ -45,42 +27,35 @@ private ListReservationTopicsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListReservationTopicsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.class, - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.class, com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the reservation whose topics to list.
    * Structured like:
    * projects/{project_number}/locations/{location}/reservations/{reservation_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,33 +64,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the reservation whose topics to list.
    * Structured like:
    * projects/{project_number}/locations/{location}/reservations/{reservation_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -126,8 +99,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of topics to return. The service may return fewer
    * than this value.
@@ -135,7 +106,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -144,12 +114,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListReservationTopics` call.
    * Provide this to retrieve the subsequent page.
@@ -159,7 +126,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -168,15 +134,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A page token, received from a previous `ListReservationTopics` call.
    * Provide this to retrieve the subsequent page.
@@ -186,15 +151,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -203,7 +169,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -215,7 +180,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -238,7 +204,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -251,17 +218,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.ListReservationTopicsRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest other = - (com.google.cloud.pubsublite.proto.ListReservationTopicsRequest) obj; + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest other = (com.google.cloud.pubsublite.proto.ListReservationTopicsRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,136 +254,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.ListReservationTopicsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for ListReservationTopics.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListReservationTopicsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.ListReservationTopicsRequest) com.google.cloud.pubsublite.proto.ListReservationTopicsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.class, - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.class, com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -426,14 +390,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListReservationTopicsRequest - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListReservationTopicsRequest getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.getDefaultInstance(); } @@ -448,17 +411,13 @@ public com.google.cloud.pubsublite.proto.ListReservationTopicsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListReservationTopicsRequest buildPartial() { - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest result = - new com.google.cloud.pubsublite.proto.ListReservationTopicsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.ListReservationTopicsRequest result = new com.google.cloud.pubsublite.proto.ListReservationTopicsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.ListReservationTopicsRequest result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.ListReservationTopicsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -475,39 +434,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.ListReservationTopicsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationTopicsRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationTopicsRequest)other); } else { super.mergeFrom(other); return this; @@ -515,9 +473,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListReservationTopicsRequest other) { - if (other - == com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ListReservationTopicsRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -557,31 +513,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -591,29 +543,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the reservation whose topics to list.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -622,25 +569,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the reservation whose topics to list.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -648,43 +592,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the reservation whose topics to list.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the reservation whose topics to list.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -694,25 +627,19 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the reservation whose topics to list.
      * Structured like:
      * projects/{project_number}/locations/{location}/reservations/{reservation_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -720,10 +647,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of topics to return. The service may return fewer
      * than this value.
@@ -731,7 +656,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -739,8 +663,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of topics to return. The service may return fewer
      * than this value.
@@ -748,7 +670,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -760,8 +681,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * The maximum number of topics to return. The service may return fewer
      * than this value.
@@ -769,7 +688,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -781,8 +699,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListReservationTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -792,13 +708,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -807,8 +723,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListReservationTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -818,14 +732,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -833,8 +748,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListReservationTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -844,22 +757,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListReservationTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -869,7 +778,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -879,8 +787,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListReservationTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -890,23 +796,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -916,43 +820,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListReservationTopicsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListReservationTopicsRequest) - private static final com.google.cloud.pubsublite.proto.ListReservationTopicsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.ListReservationTopicsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListReservationTopicsRequest(); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest - getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.ListReservationTopicsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReservationTopicsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReservationTopicsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -964,8 +866,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListReservationTopicsRequest - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListReservationTopicsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequestOrBuilder.java index f5454d39e..d6dc772c1 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsRequestOrBuilder.java @@ -1,65 +1,38 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface ListReservationTopicsRequestOrBuilder - extends +public interface ListReservationTopicsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListReservationTopicsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the reservation whose topics to list.
    * Structured like:
    * projects/{project_number}/locations/{location}/reservations/{reservation_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the reservation whose topics to list.
    * Structured like:
    * projects/{project_number}/locations/{location}/reservations/{reservation_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The maximum number of topics to return. The service may return fewer
    * than this value.
@@ -67,14 +40,11 @@ public interface ListReservationTopicsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListReservationTopics` call.
    * Provide this to retrieve the subsequent page.
@@ -84,13 +54,10 @@ public interface ListReservationTopicsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListReservationTopics` call.
    * Provide this to retrieve the subsequent page.
@@ -100,8 +67,8 @@ public interface ListReservationTopicsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponse.java similarity index 67% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponse.java index 60bd94f54..a6def46d2 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponse.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -20,95 +5,83 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response for ListReservationTopics.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListReservationTopicsResponse} */ -public final class ListReservationTopicsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListReservationTopicsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ListReservationTopicsResponse) ListReservationTopicsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListReservationTopicsResponse.newBuilder() to construct. private ListReservationTopicsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListReservationTopicsResponse() { - topics_ = com.google.protobuf.LazyStringArrayList.emptyList(); + topics_ = + com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListReservationTopicsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.class, - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.class, com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.Builder.class); } public static final int TOPICS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList topics_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * The names of topics attached to the reservation. The order of the
    * topics is unspecified.
    * 
* * repeated string topics = 1; - * * @return A list containing the topics. */ - public com.google.protobuf.ProtocolStringList getTopicsList() { + public com.google.protobuf.ProtocolStringList + getTopicsList() { return topics_; } /** - * - * *
    * The names of topics attached to the reservation. The order of the
    * topics is unspecified.
    * 
* * repeated string topics = 1; - * * @return The count of topics. */ public int getTopicsCount() { return topics_.size(); } /** - * - * *
    * The names of topics attached to the reservation. The order of the
    * topics is unspecified.
    * 
* * repeated string topics = 1; - * * @param index The index of the element to return. * @return The topics at the given index. */ @@ -116,36 +89,30 @@ public java.lang.String getTopics(int index) { return topics_.get(index); } /** - * - * *
    * The names of topics attached to the reservation. The order of the
    * topics is unspecified.
    * 
* * repeated string topics = 1; - * * @param index The index of the value to return. * @return The bytes of the topics at the given index. */ - public com.google.protobuf.ByteString getTopicsBytes(int index) { + public com.google.protobuf.ByteString + getTopicsBytes(int index) { return topics_.getByteString(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -154,30 +121,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -186,7 +153,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,7 +164,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < topics_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topics_.getRaw(i)); } @@ -233,16 +200,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.ListReservationTopicsResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse other = - (com.google.cloud.pubsublite.proto.ListReservationTopicsResponse) obj; + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse other = (com.google.cloud.pubsublite.proto.ListReservationTopicsResponse) obj; - if (!getTopicsList().equals(other.getTopicsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getTopicsList() + .equals(other.getTopicsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -266,154 +234,149 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.ListReservationTopicsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for ListReservationTopics.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListReservationTopicsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.ListReservationTopicsResponse) com.google.cloud.pubsublite.proto.ListReservationTopicsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.class, - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.class, com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - topics_ = com.google.protobuf.LazyStringArrayList.emptyList(); + topics_ = + com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListReservationTopicsResponse - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListReservationTopicsResponse getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.getDefaultInstance(); } @@ -428,17 +391,13 @@ public com.google.cloud.pubsublite.proto.ListReservationTopicsResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListReservationTopicsResponse buildPartial() { - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse result = - new com.google.cloud.pubsublite.proto.ListReservationTopicsResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.ListReservationTopicsResponse result = new com.google.cloud.pubsublite.proto.ListReservationTopicsResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.ListReservationTopicsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { topics_.makeImmutable(); @@ -453,50 +412,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.ListReservationTopicsResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationTopicsResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationTopicsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.pubsublite.proto.ListReservationTopicsResponse other) { - if (other - == com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListReservationTopicsResponse other) { + if (other == com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.getDefaultInstance()) return this; if (!other.topics_.isEmpty()) { if (topics_.isEmpty()) { topics_ = other.topics_; @@ -538,26 +493,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureTopicsIsMutable(); - topics_.add(s); - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTopicsIsMutable(); + topics_.add(s); + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -567,12 +519,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList topics_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureTopicsIsMutable() { if (!topics_.isModifiable()) { topics_ = new com.google.protobuf.LazyStringArrayList(topics_); @@ -580,46 +530,38 @@ private void ensureTopicsIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
      * The names of topics attached to the reservation. The order of the
      * topics is unspecified.
      * 
* * repeated string topics = 1; - * * @return A list containing the topics. */ - public com.google.protobuf.ProtocolStringList getTopicsList() { + public com.google.protobuf.ProtocolStringList + getTopicsList() { topics_.makeImmutable(); return topics_; } /** - * - * *
      * The names of topics attached to the reservation. The order of the
      * topics is unspecified.
      * 
* * repeated string topics = 1; - * * @return The count of topics. */ public int getTopicsCount() { return topics_.size(); } /** - * - * *
      * The names of topics attached to the reservation. The order of the
      * topics is unspecified.
      * 
* * repeated string topics = 1; - * * @param index The index of the element to return. * @return The topics at the given index. */ @@ -627,39 +569,33 @@ public java.lang.String getTopics(int index) { return topics_.get(index); } /** - * - * *
      * The names of topics attached to the reservation. The order of the
      * topics is unspecified.
      * 
* * repeated string topics = 1; - * * @param index The index of the value to return. * @return The bytes of the topics at the given index. */ - public com.google.protobuf.ByteString getTopicsBytes(int index) { + public com.google.protobuf.ByteString + getTopicsBytes(int index) { return topics_.getByteString(index); } /** - * - * *
      * The names of topics attached to the reservation. The order of the
      * topics is unspecified.
      * 
* * repeated string topics = 1; - * * @param index The index to set the value at. * @param value The topics to set. * @return This builder for chaining. */ - public Builder setTopics(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopics( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTopicsIsMutable(); topics_.set(index, value); bitField0_ |= 0x00000001; @@ -667,22 +603,18 @@ public Builder setTopics(int index, java.lang.String value) { return this; } /** - * - * *
      * The names of topics attached to the reservation. The order of the
      * topics is unspecified.
      * 
* * repeated string topics = 1; - * * @param value The topics to add. * @return This builder for chaining. */ - public Builder addTopics(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTopics( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTopicsIsMutable(); topics_.add(value); bitField0_ |= 0x00000001; @@ -690,61 +622,53 @@ public Builder addTopics(java.lang.String value) { return this; } /** - * - * *
      * The names of topics attached to the reservation. The order of the
      * topics is unspecified.
      * 
* * repeated string topics = 1; - * * @param values The topics to add. * @return This builder for chaining. */ - public Builder addAllTopics(java.lang.Iterable values) { + public Builder addAllTopics( + java.lang.Iterable values) { ensureTopicsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topics_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, topics_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The names of topics attached to the reservation. The order of the
      * topics is unspecified.
      * 
* * repeated string topics = 1; - * * @return This builder for chaining. */ public Builder clearTopics() { - topics_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + topics_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * The names of topics attached to the reservation. The order of the
      * topics is unspecified.
      * 
* * repeated string topics = 1; - * * @param value The bytes of the topics to add. * @return This builder for chaining. */ - public Builder addTopicsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTopicsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTopicsIsMutable(); topics_.add(value); @@ -755,21 +679,19 @@ public Builder addTopicsBytes(com.google.protobuf.ByteString value) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -778,22 +700,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -801,37 +722,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -841,31 +755,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -875,43 +785,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListReservationTopicsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListReservationTopicsResponse) - private static final com.google.cloud.pubsublite.proto.ListReservationTopicsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.ListReservationTopicsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListReservationTopicsResponse(); } - public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse - getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.ListReservationTopicsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReservationTopicsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReservationTopicsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -923,8 +831,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListReservationTopicsResponse - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListReservationTopicsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponseOrBuilder.java similarity index 68% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponseOrBuilder.java index 8ca5374d0..c745279aa 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationTopicsResponseOrBuilder.java @@ -1,108 +1,77 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface ListReservationTopicsResponseOrBuilder - extends +public interface ListReservationTopicsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListReservationTopicsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The names of topics attached to the reservation. The order of the
    * topics is unspecified.
    * 
* * repeated string topics = 1; - * * @return A list containing the topics. */ - java.util.List getTopicsList(); + java.util.List + getTopicsList(); /** - * - * *
    * The names of topics attached to the reservation. The order of the
    * topics is unspecified.
    * 
* * repeated string topics = 1; - * * @return The count of topics. */ int getTopicsCount(); /** - * - * *
    * The names of topics attached to the reservation. The order of the
    * topics is unspecified.
    * 
* * repeated string topics = 1; - * * @param index The index of the element to return. * @return The topics at the given index. */ java.lang.String getTopics(int index); /** - * - * *
    * The names of topics attached to the reservation. The order of the
    * topics is unspecified.
    * 
* * repeated string topics = 1; - * * @param index The index of the value to return. * @return The bytes of the topics at the given index. */ - com.google.protobuf.ByteString getTopicsBytes(int index); + com.google.protobuf.ByteString + getTopicsBytes(int index); /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequest.java similarity index 68% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequest.java index 22e8c4db0..f21cb2ef3 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -20,24 +5,21 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for ListReservations.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListReservationsRequest} */ -public final class ListReservationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListReservationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ListReservationsRequest) ListReservationsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListReservationsRequest.newBuilder() to construct. private ListReservationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListReservationsRequest() { parent_ = ""; pageToken_ = ""; @@ -45,41 +27,34 @@ private ListReservationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListReservationsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListReservationsRequest.class, - com.google.cloud.pubsublite.proto.ListReservationsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListReservationsRequest.class, com.google.cloud.pubsublite.proto.ListReservationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent whose reservations are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -88,32 +63,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent whose reservations are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -124,8 +97,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of reservations to return. The service may return fewer
    * than this value. If unset or zero, all reservations for the parent will be
@@ -133,7 +104,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -142,12 +112,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListReservations` call.
    * Provide this to retrieve the subsequent page.
@@ -157,7 +124,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -166,15 +132,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A page token, received from a previous `ListReservations` call.
    * Provide this to retrieve the subsequent page.
@@ -184,15 +149,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -201,7 +167,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,7 +178,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -236,7 +202,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -249,17 +216,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.ListReservationsRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListReservationsRequest other = - (com.google.cloud.pubsublite.proto.ListReservationsRequest) obj; + com.google.cloud.pubsublite.proto.ListReservationsRequest other = (com.google.cloud.pubsublite.proto.ListReservationsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -283,136 +252,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListReservationsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.ListReservationsRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.ListReservationsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for ListReservations.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListReservationsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.ListReservationsRequest) com.google.cloud.pubsublite.proto.ListReservationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListReservationsRequest.class, - com.google.cloud.pubsublite.proto.ListReservationsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListReservationsRequest.class, com.google.cloud.pubsublite.proto.ListReservationsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListReservationsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -424,9 +388,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; } @java.lang.Override @@ -445,11 +409,8 @@ public com.google.cloud.pubsublite.proto.ListReservationsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListReservationsRequest buildPartial() { - com.google.cloud.pubsublite.proto.ListReservationsRequest result = - new com.google.cloud.pubsublite.proto.ListReservationsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.ListReservationsRequest result = new com.google.cloud.pubsublite.proto.ListReservationsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -471,39 +432,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListReservationsReq public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.ListReservationsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationsRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationsRequest)other); } else { super.mergeFrom(other); return this; @@ -511,8 +471,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListReservationsRequest other) { - if (other == com.google.cloud.pubsublite.proto.ListReservationsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ListReservationsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -552,31 +511,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -586,28 +541,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent whose reservations are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -616,24 +566,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent whose reservations are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -641,41 +588,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent whose reservations are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent whose reservations are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -685,24 +621,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent whose reservations are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -710,10 +640,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of reservations to return. The service may return fewer
      * than this value. If unset or zero, all reservations for the parent will be
@@ -721,7 +649,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -729,8 +656,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of reservations to return. The service may return fewer
      * than this value. If unset or zero, all reservations for the parent will be
@@ -738,7 +663,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -750,8 +674,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * The maximum number of reservations to return. The service may return fewer
      * than this value. If unset or zero, all reservations for the parent will be
@@ -759,7 +681,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -771,8 +692,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListReservations` call.
      * Provide this to retrieve the subsequent page.
@@ -782,13 +701,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -797,8 +716,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListReservations` call.
      * Provide this to retrieve the subsequent page.
@@ -808,14 +725,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -823,8 +741,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListReservations` call.
      * Provide this to retrieve the subsequent page.
@@ -834,22 +750,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListReservations` call.
      * Provide this to retrieve the subsequent page.
@@ -859,7 +771,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -869,8 +780,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListReservations` call.
      * Provide this to retrieve the subsequent page.
@@ -880,23 +789,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -906,12 +813,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListReservationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListReservationsRequest) private static final com.google.cloud.pubsublite.proto.ListReservationsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListReservationsRequest(); } @@ -920,27 +827,27 @@ public static com.google.cloud.pubsublite.proto.ListReservationsRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReservationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReservationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -955,4 +862,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.ListReservationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequestOrBuilder.java index 47f63cfde..85f1467b2 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsRequestOrBuilder.java @@ -1,63 +1,36 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface ListReservationsRequestOrBuilder - extends +public interface ListReservationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListReservationsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent whose reservations are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent whose reservations are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of reservations to return. The service may return fewer
    * than this value. If unset or zero, all reservations for the parent will be
@@ -65,14 +38,11 @@ public interface ListReservationsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListReservations` call.
    * Provide this to retrieve the subsequent page.
@@ -82,13 +52,10 @@ public interface ListReservationsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListReservations` call.
    * Provide this to retrieve the subsequent page.
@@ -98,8 +65,8 @@ public interface ListReservationsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponse.java similarity index 73% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponse.java index 6670e794c..e912a5b58 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponse.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -20,24 +5,21 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response for ListReservations.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListReservationsResponse} */ -public final class ListReservationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListReservationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ListReservationsResponse) ListReservationsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListReservationsResponse.newBuilder() to construct. private ListReservationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListReservationsResponse() { reservations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,32 +27,28 @@ private ListReservationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListReservationsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListReservationsResponse.class, - com.google.cloud.pubsublite.proto.ListReservationsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListReservationsResponse.class, com.google.cloud.pubsublite.proto.ListReservationsResponse.Builder.class); } public static final int RESERVATIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List reservations_; /** - * - * *
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -83,8 +61,6 @@ public java.util.List getReservat
     return reservations_;
   }
   /**
-   *
-   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -93,13 +69,11 @@ public java.util.List getReservat
    * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getReservationsOrBuilderList() {
     return reservations_;
   }
   /**
-   *
-   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -112,8 +86,6 @@ public int getReservationsCount() {
     return reservations_.size();
   }
   /**
-   *
-   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -126,8 +98,6 @@ public com.google.cloud.pubsublite.proto.Reservation getReservations(int index)
     return reservations_.get(index);
   }
   /**
-   *
-   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -142,19 +112,15 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationsOrB
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object nextPageToken_ = "";
   /**
-   *
-   *
    * 
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -163,30 +129,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -195,7 +161,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < reservations_.size(); i++) { output.writeMessage(1, reservations_.get(i)); } @@ -224,7 +190,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < reservations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, reservations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, reservations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -237,16 +204,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.ListReservationsResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListReservationsResponse other = - (com.google.cloud.pubsublite.proto.ListReservationsResponse) obj; + com.google.cloud.pubsublite.proto.ListReservationsResponse other = (com.google.cloud.pubsublite.proto.ListReservationsResponse) obj; - if (!getReservationsList().equals(other.getReservationsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getReservationsList() + .equals(other.getReservationsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -270,136 +238,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListReservationsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListReservationsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListReservationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListReservationsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListReservationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListReservationsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.ListReservationsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListReservationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListReservationsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListReservationsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListReservationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.ListReservationsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListReservationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListReservationsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.ListReservationsResponse prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.ListReservationsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for ListReservations.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListReservationsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.ListReservationsResponse) com.google.cloud.pubsublite.proto.ListReservationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListReservationsResponse.class, - com.google.cloud.pubsublite.proto.ListReservationsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListReservationsResponse.class, com.google.cloud.pubsublite.proto.ListReservationsResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListReservationsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -416,9 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor; } @java.lang.Override @@ -437,18 +400,14 @@ public com.google.cloud.pubsublite.proto.ListReservationsResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListReservationsResponse buildPartial() { - com.google.cloud.pubsublite.proto.ListReservationsResponse result = - new com.google.cloud.pubsublite.proto.ListReservationsResponse(this); + com.google.cloud.pubsublite.proto.ListReservationsResponse result = new com.google.cloud.pubsublite.proto.ListReservationsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.pubsublite.proto.ListReservationsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.ListReservationsResponse result) { if (reservationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { reservations_ = java.util.Collections.unmodifiableList(reservations_); @@ -471,39 +430,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListReservationsRes public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.ListReservationsResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationsResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListReservationsResponse)other); } else { super.mergeFrom(other); return this; @@ -511,8 +469,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListReservationsResponse other) { - if (other == com.google.cloud.pubsublite.proto.ListReservationsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ListReservationsResponse.getDefaultInstance()) return this; if (reservationsBuilder_ == null) { if (!other.reservations_.isEmpty()) { if (reservations_.isEmpty()) { @@ -531,10 +488,9 @@ public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListReservationsRespo reservationsBuilder_ = null; reservations_ = other.reservations_; bitField0_ = (bitField0_ & ~0x00000001); - reservationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getReservationsFieldBuilder() - : null; + reservationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getReservationsFieldBuilder() : null; } else { reservationsBuilder_.addAllMessages(other.reservations_); } @@ -571,32 +527,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.pubsublite.proto.Reservation m = - input.readMessage( - com.google.cloud.pubsublite.proto.Reservation.parser(), extensionRegistry); - if (reservationsBuilder_ == null) { - ensureReservationsIsMutable(); - reservations_.add(m); - } else { - reservationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.pubsublite.proto.Reservation m = + input.readMessage( + com.google.cloud.pubsublite.proto.Reservation.parser(), + extensionRegistry); + if (reservationsBuilder_ == null) { + ensureReservationsIsMutable(); + reservations_.add(m); + } else { + reservationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -606,29 +560,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List reservations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureReservationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - reservations_ = - new java.util.ArrayList(reservations_); + reservations_ = new java.util.ArrayList(reservations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.Reservation, - com.google.cloud.pubsublite.proto.Reservation.Builder, - com.google.cloud.pubsublite.proto.ReservationOrBuilder> - reservationsBuilder_; + com.google.cloud.pubsublite.proto.Reservation, com.google.cloud.pubsublite.proto.Reservation.Builder, com.google.cloud.pubsublite.proto.ReservationOrBuilder> reservationsBuilder_; /** - * - * *
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -644,8 +590,6 @@ public java.util.List getReservat
       }
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -661,8 +605,6 @@ public int getReservationsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -678,8 +620,6 @@ public com.google.cloud.pubsublite.proto.Reservation getReservations(int index)
       }
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -687,7 +627,8 @@ public com.google.cloud.pubsublite.proto.Reservation getReservations(int index)
      *
      * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
      */
-    public Builder setReservations(int index, com.google.cloud.pubsublite.proto.Reservation value) {
+    public Builder setReservations(
+        int index, com.google.cloud.pubsublite.proto.Reservation value) {
       if (reservationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -701,8 +642,6 @@ public Builder setReservations(int index, com.google.cloud.pubsublite.proto.Rese
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -722,8 +661,6 @@ public Builder setReservations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -745,8 +682,6 @@ public Builder addReservations(com.google.cloud.pubsublite.proto.Reservation val
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -754,7 +689,8 @@ public Builder addReservations(com.google.cloud.pubsublite.proto.Reservation val
      *
      * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
      */
-    public Builder addReservations(int index, com.google.cloud.pubsublite.proto.Reservation value) {
+    public Builder addReservations(
+        int index, com.google.cloud.pubsublite.proto.Reservation value) {
       if (reservationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -768,8 +704,6 @@ public Builder addReservations(int index, com.google.cloud.pubsublite.proto.Rese
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -789,8 +723,6 @@ public Builder addReservations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -810,8 +742,6 @@ public Builder addReservations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -823,7 +753,8 @@ public Builder addAllReservations(
         java.lang.Iterable values) {
       if (reservationsBuilder_ == null) {
         ensureReservationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reservations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, reservations_);
         onChanged();
       } else {
         reservationsBuilder_.addAllMessages(values);
@@ -831,8 +762,6 @@ public Builder addAllReservations(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -851,8 +780,6 @@ public Builder clearReservations() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -871,8 +798,6 @@ public Builder removeReservations(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -880,12 +805,11 @@ public Builder removeReservations(int index) {
      *
      * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
      */
-    public com.google.cloud.pubsublite.proto.Reservation.Builder getReservationsBuilder(int index) {
+    public com.google.cloud.pubsublite.proto.Reservation.Builder getReservationsBuilder(
+        int index) {
       return getReservationsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -896,14 +820,11 @@ public com.google.cloud.pubsublite.proto.Reservation.Builder getReservationsBuil
     public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationsOrBuilder(
         int index) {
       if (reservationsBuilder_ == null) {
-        return reservations_.get(index);
-      } else {
+        return reservations_.get(index);  } else {
         return reservationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -911,8 +832,8 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationsOrB
      *
      * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
      */
-    public java.util.List
-        getReservationsOrBuilderList() {
+    public java.util.List 
+         getReservationsOrBuilderList() {
       if (reservationsBuilder_ != null) {
         return reservationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -920,8 +841,6 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationsOrB
       }
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -930,12 +849,10 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationsOrB
      * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
      */
     public com.google.cloud.pubsublite.proto.Reservation.Builder addReservationsBuilder() {
-      return getReservationsFieldBuilder()
-          .addBuilder(com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance());
+      return getReservationsFieldBuilder().addBuilder(
+          com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -943,13 +860,12 @@ public com.google.cloud.pubsublite.proto.Reservation.Builder addReservationsBuil
      *
      * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
      */
-    public com.google.cloud.pubsublite.proto.Reservation.Builder addReservationsBuilder(int index) {
-      return getReservationsFieldBuilder()
-          .addBuilder(index, com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance());
+    public com.google.cloud.pubsublite.proto.Reservation.Builder addReservationsBuilder(
+        int index) {
+      return getReservationsFieldBuilder().addBuilder(
+          index, com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of reservation in the requested parent. The order of the
      * reservations is unspecified.
@@ -957,23 +873,20 @@ public com.google.cloud.pubsublite.proto.Reservation.Builder addReservationsBuil
      *
      * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
      */
-    public java.util.List
-        getReservationsBuilderList() {
+    public java.util.List 
+         getReservationsBuilderList() {
       return getReservationsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Reservation,
-            com.google.cloud.pubsublite.proto.Reservation.Builder,
-            com.google.cloud.pubsublite.proto.ReservationOrBuilder>
+        com.google.cloud.pubsublite.proto.Reservation, com.google.cloud.pubsublite.proto.Reservation.Builder, com.google.cloud.pubsublite.proto.ReservationOrBuilder> 
         getReservationsFieldBuilder() {
       if (reservationsBuilder_ == null) {
-        reservationsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.pubsublite.proto.Reservation,
-                com.google.cloud.pubsublite.proto.Reservation.Builder,
-                com.google.cloud.pubsublite.proto.ReservationOrBuilder>(
-                reservations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        reservationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.pubsublite.proto.Reservation, com.google.cloud.pubsublite.proto.Reservation.Builder, com.google.cloud.pubsublite.proto.ReservationOrBuilder>(
+                reservations_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         reservations_ = null;
       }
       return reservationsBuilder_;
@@ -981,21 +894,19 @@ public com.google.cloud.pubsublite.proto.Reservation.Builder addReservationsBuil
 
     private java.lang.Object nextPageToken_ = "";
     /**
-     *
-     *
      * 
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1004,22 +915,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1027,37 +937,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1067,31 +970,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1101,12 +1000,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListReservationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListReservationsResponse) private static final com.google.cloud.pubsublite.proto.ListReservationsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListReservationsResponse(); } @@ -1115,27 +1014,27 @@ public static com.google.cloud.pubsublite.proto.ListReservationsResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReservationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReservationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1150,4 +1049,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.ListReservationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponseOrBuilder.java similarity index 73% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponseOrBuilder.java index 00e36ea03..2038a7131 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListReservationsResponseOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface ListReservationsResponseOrBuilder - extends +public interface ListReservationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListReservationsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -34,10 +16,9 @@ public interface ListReservationsResponseOrBuilder
    *
    * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
    */
-  java.util.List getReservationsList();
+  java.util.List 
+      getReservationsList();
   /**
-   *
-   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -47,8 +28,6 @@ public interface ListReservationsResponseOrBuilder
    */
   com.google.cloud.pubsublite.proto.Reservation getReservations(int index);
   /**
-   *
-   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -58,8 +37,6 @@ public interface ListReservationsResponseOrBuilder
    */
   int getReservationsCount();
   /**
-   *
-   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -67,11 +44,9 @@ public interface ListReservationsResponseOrBuilder
    *
    * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
    */
-  java.util.List
+  java.util.List 
       getReservationsOrBuilderList();
   /**
-   *
-   *
    * 
    * The list of reservation in the requested parent. The order of the
    * reservations is unspecified.
@@ -79,32 +54,28 @@ public interface ListReservationsResponseOrBuilder
    *
    * repeated .google.cloud.pubsublite.v1.Reservation reservations = 1;
    */
-  com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationsOrBuilder(int index);
+  com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequest.java similarity index 68% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequest.java index 2a4a4106c..c18b9fdac 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -20,24 +5,21 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for ListSubscriptions.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListSubscriptionsRequest} */ -public final class ListSubscriptionsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSubscriptionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ListSubscriptionsRequest) ListSubscriptionsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSubscriptionsRequest.newBuilder() to construct. private ListSubscriptionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSubscriptionsRequest() { parent_ = ""; pageToken_ = ""; @@ -45,41 +27,34 @@ private ListSubscriptionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSubscriptionsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.class, - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.class, com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent whose subscriptions are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -88,32 +63,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent whose subscriptions are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -124,8 +97,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of subscriptions to return. The service may return fewer
    * than this value.
@@ -133,7 +104,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -142,12 +112,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListSubscriptions` call.
    * Provide this to retrieve the subsequent page.
@@ -157,7 +124,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -166,15 +132,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A page token, received from a previous `ListSubscriptions` call.
    * Provide this to retrieve the subsequent page.
@@ -184,15 +149,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -201,7 +167,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,7 +178,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -236,7 +202,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -249,17 +216,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.ListSubscriptionsRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest other = - (com.google.cloud.pubsublite.proto.ListSubscriptionsRequest) obj; + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest other = (com.google.cloud.pubsublite.proto.ListSubscriptionsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -283,136 +252,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.ListSubscriptionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for ListSubscriptions.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListSubscriptionsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.ListSubscriptionsRequest) com.google.cloud.pubsublite.proto.ListSubscriptionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.class, - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.class, com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -424,9 +388,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; } @java.lang.Override @@ -445,11 +409,8 @@ public com.google.cloud.pubsublite.proto.ListSubscriptionsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListSubscriptionsRequest buildPartial() { - com.google.cloud.pubsublite.proto.ListSubscriptionsRequest result = - new com.google.cloud.pubsublite.proto.ListSubscriptionsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.ListSubscriptionsRequest result = new com.google.cloud.pubsublite.proto.ListSubscriptionsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -471,39 +432,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListSubscriptionsRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.ListSubscriptionsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListSubscriptionsRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListSubscriptionsRequest)other); } else { super.mergeFrom(other); return this; @@ -511,8 +471,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListSubscriptionsRequest other) { - if (other == com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ListSubscriptionsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -552,31 +511,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -586,28 +541,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent whose subscriptions are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -616,24 +566,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent whose subscriptions are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -641,41 +588,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent whose subscriptions are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent whose subscriptions are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -685,24 +621,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent whose subscriptions are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -710,10 +640,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -721,7 +649,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -729,8 +656,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -738,7 +663,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -750,8 +674,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -759,7 +681,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -771,8 +692,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -782,13 +701,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -797,8 +716,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -808,14 +725,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -823,8 +741,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -834,22 +750,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -859,7 +771,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -869,8 +780,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -880,23 +789,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -906,12 +813,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListSubscriptionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListSubscriptionsRequest) private static final com.google.cloud.pubsublite.proto.ListSubscriptionsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListSubscriptionsRequest(); } @@ -920,27 +827,27 @@ public static com.google.cloud.pubsublite.proto.ListSubscriptionsRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSubscriptionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSubscriptionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -955,4 +862,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.ListSubscriptionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequestOrBuilder.java index 0b7b919d9..1e7ec621d 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsRequestOrBuilder.java @@ -1,63 +1,36 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface ListSubscriptionsRequestOrBuilder - extends +public interface ListSubscriptionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListSubscriptionsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent whose subscriptions are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent whose subscriptions are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of subscriptions to return. The service may return fewer
    * than this value.
@@ -65,14 +38,11 @@ public interface ListSubscriptionsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListSubscriptions` call.
    * Provide this to retrieve the subsequent page.
@@ -82,13 +52,10 @@ public interface ListSubscriptionsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListSubscriptions` call.
    * Provide this to retrieve the subsequent page.
@@ -98,8 +65,8 @@ public interface ListSubscriptionsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponse.java similarity index 74% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponse.java index 207a0e70f..8f78e9a6b 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponse.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -20,24 +5,21 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response for ListSubscriptions.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListSubscriptionsResponse} */ -public final class ListSubscriptionsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSubscriptionsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ListSubscriptionsResponse) ListSubscriptionsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSubscriptionsResponse.newBuilder() to construct. private ListSubscriptionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSubscriptionsResponse() { subscriptions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,32 +27,28 @@ private ListSubscriptionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSubscriptionsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.class, - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.class, com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.Builder.class); } public static final int SUBSCRIPTIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List subscriptions_; /** - * - * *
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -83,8 +61,6 @@ public java.util.List getSubscri
     return subscriptions_;
   }
   /**
-   *
-   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -93,13 +69,11 @@ public java.util.List getSubscri
    * repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getSubscriptionsOrBuilderList() {
     return subscriptions_;
   }
   /**
-   *
-   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -112,8 +86,6 @@ public int getSubscriptionsCount() {
     return subscriptions_.size();
   }
   /**
-   *
-   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -126,8 +98,6 @@ public com.google.cloud.pubsublite.proto.Subscription getSubscriptions(int index
     return subscriptions_.get(index);
   }
   /**
-   *
-   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -142,19 +112,15 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionsO
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object nextPageToken_ = "";
   /**
-   *
-   *
    * 
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -163,30 +129,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -195,7 +161,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < subscriptions_.size(); i++) { output.writeMessage(1, subscriptions_.get(i)); } @@ -224,7 +190,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < subscriptions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, subscriptions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, subscriptions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -237,16 +204,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.ListSubscriptionsResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse other = - (com.google.cloud.pubsublite.proto.ListSubscriptionsResponse) obj; + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse other = (com.google.cloud.pubsublite.proto.ListSubscriptionsResponse) obj; - if (!getSubscriptionsList().equals(other.getSubscriptionsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getSubscriptionsList() + .equals(other.getSubscriptionsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -270,136 +238,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListSubscriptionsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListSubscriptionsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListSubscriptionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListSubscriptionsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListSubscriptionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListSubscriptionsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.ListSubscriptionsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListSubscriptionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListSubscriptionsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListSubscriptionsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListSubscriptionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.ListSubscriptionsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListSubscriptionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListSubscriptionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.ListSubscriptionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for ListSubscriptions.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListSubscriptionsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.ListSubscriptionsResponse) com.google.cloud.pubsublite.proto.ListSubscriptionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.class, - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.class, com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -416,9 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor; } @java.lang.Override @@ -437,18 +400,14 @@ public com.google.cloud.pubsublite.proto.ListSubscriptionsResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListSubscriptionsResponse buildPartial() { - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse result = - new com.google.cloud.pubsublite.proto.ListSubscriptionsResponse(this); + com.google.cloud.pubsublite.proto.ListSubscriptionsResponse result = new com.google.cloud.pubsublite.proto.ListSubscriptionsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.pubsublite.proto.ListSubscriptionsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.ListSubscriptionsResponse result) { if (subscriptionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { subscriptions_ = java.util.Collections.unmodifiableList(subscriptions_); @@ -471,39 +430,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListSubscriptionsRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.ListSubscriptionsResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListSubscriptionsResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListSubscriptionsResponse)other); } else { super.mergeFrom(other); return this; @@ -511,8 +469,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListSubscriptionsResponse other) { - if (other == com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ListSubscriptionsResponse.getDefaultInstance()) return this; if (subscriptionsBuilder_ == null) { if (!other.subscriptions_.isEmpty()) { if (subscriptions_.isEmpty()) { @@ -531,10 +488,9 @@ public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListSubscriptionsResp subscriptionsBuilder_ = null; subscriptions_ = other.subscriptions_; bitField0_ = (bitField0_ & ~0x00000001); - subscriptionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSubscriptionsFieldBuilder() - : null; + subscriptionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSubscriptionsFieldBuilder() : null; } else { subscriptionsBuilder_.addAllMessages(other.subscriptions_); } @@ -571,32 +527,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.pubsublite.proto.Subscription m = - input.readMessage( - com.google.cloud.pubsublite.proto.Subscription.parser(), extensionRegistry); - if (subscriptionsBuilder_ == null) { - ensureSubscriptionsIsMutable(); - subscriptions_.add(m); - } else { - subscriptionsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.pubsublite.proto.Subscription m = + input.readMessage( + com.google.cloud.pubsublite.proto.Subscription.parser(), + extensionRegistry); + if (subscriptionsBuilder_ == null) { + ensureSubscriptionsIsMutable(); + subscriptions_.add(m); + } else { + subscriptionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -606,29 +560,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List subscriptions_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSubscriptionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - subscriptions_ = - new java.util.ArrayList(subscriptions_); + subscriptions_ = new java.util.ArrayList(subscriptions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription, - com.google.cloud.pubsublite.proto.Subscription.Builder, - com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> - subscriptionsBuilder_; + com.google.cloud.pubsublite.proto.Subscription, com.google.cloud.pubsublite.proto.Subscription.Builder, com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> subscriptionsBuilder_; /** - * - * *
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -644,8 +590,6 @@ public java.util.List getSubscri
       }
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -661,8 +605,6 @@ public int getSubscriptionsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -678,8 +620,6 @@ public com.google.cloud.pubsublite.proto.Subscription getSubscriptions(int index
       }
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -702,8 +642,6 @@ public Builder setSubscriptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -723,8 +661,6 @@ public Builder setSubscriptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -746,8 +682,6 @@ public Builder addSubscriptions(com.google.cloud.pubsublite.proto.Subscription v
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -770,8 +704,6 @@ public Builder addSubscriptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -791,8 +723,6 @@ public Builder addSubscriptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -812,8 +742,6 @@ public Builder addSubscriptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -825,7 +753,8 @@ public Builder addAllSubscriptions(
         java.lang.Iterable values) {
       if (subscriptionsBuilder_ == null) {
         ensureSubscriptionsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subscriptions_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, subscriptions_);
         onChanged();
       } else {
         subscriptionsBuilder_.addAllMessages(values);
@@ -833,8 +762,6 @@ public Builder addAllSubscriptions(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -853,8 +780,6 @@ public Builder clearSubscriptions() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -873,8 +798,6 @@ public Builder removeSubscriptions(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -887,8 +810,6 @@ public com.google.cloud.pubsublite.proto.Subscription.Builder getSubscriptionsBu
       return getSubscriptionsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -899,14 +820,11 @@ public com.google.cloud.pubsublite.proto.Subscription.Builder getSubscriptionsBu
     public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionsOrBuilder(
         int index) {
       if (subscriptionsBuilder_ == null) {
-        return subscriptions_.get(index);
-      } else {
+        return subscriptions_.get(index);  } else {
         return subscriptionsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -914,8 +832,8 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionsO
      *
      * repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
      */
-    public java.util.List
-        getSubscriptionsOrBuilderList() {
+    public java.util.List 
+         getSubscriptionsOrBuilderList() {
       if (subscriptionsBuilder_ != null) {
         return subscriptionsBuilder_.getMessageOrBuilderList();
       } else {
@@ -923,8 +841,6 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionsO
       }
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -933,12 +849,10 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionsO
      * repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
      */
     public com.google.cloud.pubsublite.proto.Subscription.Builder addSubscriptionsBuilder() {
-      return getSubscriptionsFieldBuilder()
-          .addBuilder(com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance());
+      return getSubscriptionsFieldBuilder().addBuilder(
+          com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -948,12 +862,10 @@ public com.google.cloud.pubsublite.proto.Subscription.Builder addSubscriptionsBu
      */
     public com.google.cloud.pubsublite.proto.Subscription.Builder addSubscriptionsBuilder(
         int index) {
-      return getSubscriptionsFieldBuilder()
-          .addBuilder(index, com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance());
+      return getSubscriptionsFieldBuilder().addBuilder(
+          index, com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of subscriptions in the requested parent. The order of the
      * subscriptions is unspecified.
@@ -961,22 +873,16 @@ public com.google.cloud.pubsublite.proto.Subscription.Builder addSubscriptionsBu
      *
      * repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
      */
-    public java.util.List
-        getSubscriptionsBuilderList() {
+    public java.util.List 
+         getSubscriptionsBuilderList() {
       return getSubscriptionsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Subscription,
-            com.google.cloud.pubsublite.proto.Subscription.Builder,
-            com.google.cloud.pubsublite.proto.SubscriptionOrBuilder>
+        com.google.cloud.pubsublite.proto.Subscription, com.google.cloud.pubsublite.proto.Subscription.Builder, com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> 
         getSubscriptionsFieldBuilder() {
       if (subscriptionsBuilder_ == null) {
-        subscriptionsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.pubsublite.proto.Subscription,
-                com.google.cloud.pubsublite.proto.Subscription.Builder,
-                com.google.cloud.pubsublite.proto.SubscriptionOrBuilder>(
+        subscriptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.pubsublite.proto.Subscription, com.google.cloud.pubsublite.proto.Subscription.Builder, com.google.cloud.pubsublite.proto.SubscriptionOrBuilder>(
                 subscriptions_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -988,21 +894,19 @@ public com.google.cloud.pubsublite.proto.Subscription.Builder addSubscriptionsBu
 
     private java.lang.Object nextPageToken_ = "";
     /**
-     *
-     *
      * 
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1011,22 +915,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1034,37 +937,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1074,31 +970,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1108,12 +1000,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListSubscriptionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListSubscriptionsResponse) private static final com.google.cloud.pubsublite.proto.ListSubscriptionsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListSubscriptionsResponse(); } @@ -1122,27 +1014,27 @@ public static com.google.cloud.pubsublite.proto.ListSubscriptionsResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSubscriptionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSubscriptionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1157,4 +1049,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.pubsublite.proto.ListSubscriptionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponseOrBuilder.java similarity index 73% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponseOrBuilder.java index 4a633bb57..6f7d268b9 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListSubscriptionsResponseOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface ListSubscriptionsResponseOrBuilder - extends +public interface ListSubscriptionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListSubscriptionsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -34,10 +16,9 @@ public interface ListSubscriptionsResponseOrBuilder
    *
    * repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
    */
-  java.util.List getSubscriptionsList();
+  java.util.List 
+      getSubscriptionsList();
   /**
-   *
-   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -47,8 +28,6 @@ public interface ListSubscriptionsResponseOrBuilder
    */
   com.google.cloud.pubsublite.proto.Subscription getSubscriptions(int index);
   /**
-   *
-   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -58,8 +37,6 @@ public interface ListSubscriptionsResponseOrBuilder
    */
   int getSubscriptionsCount();
   /**
-   *
-   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -67,11 +44,9 @@ public interface ListSubscriptionsResponseOrBuilder
    *
    * repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
    */
-  java.util.List
+  java.util.List 
       getSubscriptionsOrBuilderList();
   /**
-   *
-   *
    * 
    * The list of subscriptions in the requested parent. The order of the
    * subscriptions is unspecified.
@@ -79,32 +54,28 @@ public interface ListSubscriptionsResponseOrBuilder
    *
    * repeated .google.cloud.pubsublite.v1.Subscription subscriptions = 1;
    */
-  com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionsOrBuilder(int index);
+  com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequest.java similarity index 65% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequest.java index 88c893acb..f9a6da444 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -20,24 +5,21 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for ListTopicSubscriptions.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListTopicSubscriptionsRequest} */ -public final class ListTopicSubscriptionsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListTopicSubscriptionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ListTopicSubscriptionsRequest) ListTopicSubscriptionsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListTopicSubscriptionsRequest.newBuilder() to construct. private ListTopicSubscriptionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListTopicSubscriptionsRequest() { name_ = ""; pageToken_ = ""; @@ -45,40 +27,33 @@ private ListTopicSubscriptionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTopicSubscriptionsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.class, - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.class, com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the topic whose subscriptions to list.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -87,31 +62,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the topic whose subscriptions to list.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -122,8 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of subscriptions to return. The service may return fewer
    * than this value.
@@ -131,7 +102,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -140,12 +110,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListTopicSubscriptions` call.
    * Provide this to retrieve the subsequent page.
@@ -155,7 +122,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -164,15 +130,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A page token, received from a previous `ListTopicSubscriptions` call.
    * Provide this to retrieve the subsequent page.
@@ -182,15 +147,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -199,7 +165,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -211,7 +176,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -234,7 +200,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -247,17 +214,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest other = - (com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest) obj; + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest other = (com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -281,136 +250,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for ListTopicSubscriptions.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListTopicSubscriptionsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.ListTopicSubscriptionsRequest) com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.class, - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.class, com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -422,14 +386,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.getDefaultInstance(); } @@ -444,17 +407,13 @@ public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest buildPartial() { - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest result = - new com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest result = new com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -471,50 +430,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest other) { - if (other - == com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest other) { + if (other == com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -554,31 +509,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -588,27 +539,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the topic whose subscriptions to list.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -617,23 +563,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the topic whose subscriptions to list.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -641,39 +584,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the topic whose subscriptions to list.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the topic whose subscriptions to list.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -683,23 +615,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the topic whose subscriptions to list.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -707,10 +633,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -718,7 +642,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -726,8 +649,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -735,7 +656,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -747,8 +667,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * The maximum number of subscriptions to return. The service may return fewer
      * than this value.
@@ -756,7 +674,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -768,8 +685,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListTopicSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -779,13 +694,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -794,8 +709,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListTopicSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -805,14 +718,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -820,8 +734,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListTopicSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -831,22 +743,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListTopicSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -856,7 +764,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -866,8 +773,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListTopicSubscriptions` call.
      * Provide this to retrieve the subsequent page.
@@ -877,23 +782,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -903,43 +806,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListTopicSubscriptionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListTopicSubscriptionsRequest) - private static final com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest(); } - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest - getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTopicSubscriptionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTopicSubscriptionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -951,8 +852,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequestOrBuilder.java index 4522ea44d..ab479ecc5 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsRequestOrBuilder.java @@ -1,61 +1,34 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface ListTopicSubscriptionsRequestOrBuilder - extends +public interface ListTopicSubscriptionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListTopicSubscriptionsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the topic whose subscriptions to list.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the topic whose subscriptions to list.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The maximum number of subscriptions to return. The service may return fewer
    * than this value.
@@ -63,14 +36,11 @@ public interface ListTopicSubscriptionsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListTopicSubscriptions` call.
    * Provide this to retrieve the subsequent page.
@@ -80,13 +50,10 @@ public interface ListTopicSubscriptionsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListTopicSubscriptions` call.
    * Provide this to retrieve the subsequent page.
@@ -96,8 +63,8 @@ public interface ListTopicSubscriptionsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponse.java similarity index 67% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponse.java index b44b0654f..d6b6eaf5d 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponse.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -20,96 +5,83 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response for ListTopicSubscriptions.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListTopicSubscriptionsResponse} */ -public final class ListTopicSubscriptionsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListTopicSubscriptionsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ListTopicSubscriptionsResponse) ListTopicSubscriptionsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListTopicSubscriptionsResponse.newBuilder() to construct. - private ListTopicSubscriptionsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListTopicSubscriptionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListTopicSubscriptionsResponse() { - subscriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + subscriptions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTopicSubscriptionsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.class, - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.class, com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.Builder.class); } public static final int SUBSCRIPTIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList subscriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * The names of subscriptions attached to the topic. The order of the
    * subscriptions is unspecified.
    * 
* * repeated string subscriptions = 1; - * * @return A list containing the subscriptions. */ - public com.google.protobuf.ProtocolStringList getSubscriptionsList() { + public com.google.protobuf.ProtocolStringList + getSubscriptionsList() { return subscriptions_; } /** - * - * *
    * The names of subscriptions attached to the topic. The order of the
    * subscriptions is unspecified.
    * 
* * repeated string subscriptions = 1; - * * @return The count of subscriptions. */ public int getSubscriptionsCount() { return subscriptions_.size(); } /** - * - * *
    * The names of subscriptions attached to the topic. The order of the
    * subscriptions is unspecified.
    * 
* * repeated string subscriptions = 1; - * * @param index The index of the element to return. * @return The subscriptions at the given index. */ @@ -117,36 +89,30 @@ public java.lang.String getSubscriptions(int index) { return subscriptions_.get(index); } /** - * - * *
    * The names of subscriptions attached to the topic. The order of the
    * subscriptions is unspecified.
    * 
* * repeated string subscriptions = 1; - * * @param index The index of the value to return. * @return The bytes of the subscriptions at the given index. */ - public com.google.protobuf.ByteString getSubscriptionsBytes(int index) { + public com.google.protobuf.ByteString + getSubscriptionsBytes(int index) { return subscriptions_.getByteString(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -155,30 +121,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -187,7 +153,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -199,7 +164,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < subscriptions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscriptions_.getRaw(i)); } @@ -234,16 +200,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse other = - (com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse) obj; + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse other = (com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse) obj; - if (!getSubscriptionsList().equals(other.getSubscriptionsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getSubscriptionsList() + .equals(other.getSubscriptionsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -267,154 +234,149 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for ListTopicSubscriptions.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListTopicSubscriptionsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.ListTopicSubscriptionsResponse) com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.class, - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.class, com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - subscriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + subscriptions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.getDefaultInstance(); } @@ -429,17 +391,13 @@ public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse build() @java.lang.Override public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse buildPartial() { - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse result = - new com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse result = new com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { subscriptions_.makeImmutable(); @@ -454,50 +412,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse other) { - if (other - == com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse other) { + if (other == com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse.getDefaultInstance()) return this; if (!other.subscriptions_.isEmpty()) { if (subscriptions_.isEmpty()) { subscriptions_ = other.subscriptions_; @@ -539,26 +493,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureSubscriptionsIsMutable(); - subscriptions_.add(s); - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureSubscriptionsIsMutable(); + subscriptions_.add(s); + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -568,12 +519,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList subscriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureSubscriptionsIsMutable() { if (!subscriptions_.isModifiable()) { subscriptions_ = new com.google.protobuf.LazyStringArrayList(subscriptions_); @@ -581,46 +530,38 @@ private void ensureSubscriptionsIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
      * The names of subscriptions attached to the topic. The order of the
      * subscriptions is unspecified.
      * 
* * repeated string subscriptions = 1; - * * @return A list containing the subscriptions. */ - public com.google.protobuf.ProtocolStringList getSubscriptionsList() { + public com.google.protobuf.ProtocolStringList + getSubscriptionsList() { subscriptions_.makeImmutable(); return subscriptions_; } /** - * - * *
      * The names of subscriptions attached to the topic. The order of the
      * subscriptions is unspecified.
      * 
* * repeated string subscriptions = 1; - * * @return The count of subscriptions. */ public int getSubscriptionsCount() { return subscriptions_.size(); } /** - * - * *
      * The names of subscriptions attached to the topic. The order of the
      * subscriptions is unspecified.
      * 
* * repeated string subscriptions = 1; - * * @param index The index of the element to return. * @return The subscriptions at the given index. */ @@ -628,39 +569,33 @@ public java.lang.String getSubscriptions(int index) { return subscriptions_.get(index); } /** - * - * *
      * The names of subscriptions attached to the topic. The order of the
      * subscriptions is unspecified.
      * 
* * repeated string subscriptions = 1; - * * @param index The index of the value to return. * @return The bytes of the subscriptions at the given index. */ - public com.google.protobuf.ByteString getSubscriptionsBytes(int index) { + public com.google.protobuf.ByteString + getSubscriptionsBytes(int index) { return subscriptions_.getByteString(index); } /** - * - * *
      * The names of subscriptions attached to the topic. The order of the
      * subscriptions is unspecified.
      * 
* * repeated string subscriptions = 1; - * * @param index The index to set the value at. * @param value The subscriptions to set. * @return This builder for chaining. */ - public Builder setSubscriptions(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubscriptions( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSubscriptionsIsMutable(); subscriptions_.set(index, value); bitField0_ |= 0x00000001; @@ -668,22 +603,18 @@ public Builder setSubscriptions(int index, java.lang.String value) { return this; } /** - * - * *
      * The names of subscriptions attached to the topic. The order of the
      * subscriptions is unspecified.
      * 
* * repeated string subscriptions = 1; - * * @param value The subscriptions to add. * @return This builder for chaining. */ - public Builder addSubscriptions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addSubscriptions( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSubscriptionsIsMutable(); subscriptions_.add(value); bitField0_ |= 0x00000001; @@ -691,61 +622,53 @@ public Builder addSubscriptions(java.lang.String value) { return this; } /** - * - * *
      * The names of subscriptions attached to the topic. The order of the
      * subscriptions is unspecified.
      * 
* * repeated string subscriptions = 1; - * * @param values The subscriptions to add. * @return This builder for chaining. */ - public Builder addAllSubscriptions(java.lang.Iterable values) { + public Builder addAllSubscriptions( + java.lang.Iterable values) { ensureSubscriptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subscriptions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subscriptions_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The names of subscriptions attached to the topic. The order of the
      * subscriptions is unspecified.
      * 
* * repeated string subscriptions = 1; - * * @return This builder for chaining. */ public Builder clearSubscriptions() { - subscriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + subscriptions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
      * The names of subscriptions attached to the topic. The order of the
      * subscriptions is unspecified.
      * 
* * repeated string subscriptions = 1; - * * @param value The bytes of the subscriptions to add. * @return This builder for chaining. */ - public Builder addSubscriptionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addSubscriptionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSubscriptionsIsMutable(); subscriptions_.add(value); @@ -756,21 +679,19 @@ public Builder addSubscriptionsBytes(com.google.protobuf.ByteString value) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -779,22 +700,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -802,37 +722,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -842,31 +755,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -876,43 +785,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListTopicSubscriptionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListTopicSubscriptionsResponse) - private static final com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse(); } - public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse - getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTopicSubscriptionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTopicSubscriptionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -924,8 +831,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.ListTopicSubscriptionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponseOrBuilder.java index da14ea724..4a858d085 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicSubscriptionsResponseOrBuilder.java @@ -1,108 +1,77 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface ListTopicSubscriptionsResponseOrBuilder - extends +public interface ListTopicSubscriptionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListTopicSubscriptionsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The names of subscriptions attached to the topic. The order of the
    * subscriptions is unspecified.
    * 
* * repeated string subscriptions = 1; - * * @return A list containing the subscriptions. */ - java.util.List getSubscriptionsList(); + java.util.List + getSubscriptionsList(); /** - * - * *
    * The names of subscriptions attached to the topic. The order of the
    * subscriptions is unspecified.
    * 
* * repeated string subscriptions = 1; - * * @return The count of subscriptions. */ int getSubscriptionsCount(); /** - * - * *
    * The names of subscriptions attached to the topic. The order of the
    * subscriptions is unspecified.
    * 
* * repeated string subscriptions = 1; - * * @param index The index of the element to return. * @return The subscriptions at the given index. */ java.lang.String getSubscriptions(int index); /** - * - * *
    * The names of subscriptions attached to the topic. The order of the
    * subscriptions is unspecified.
    * 
* * repeated string subscriptions = 1; - * * @param index The index of the value to return. * @return The bytes of the subscriptions at the given index. */ - com.google.protobuf.ByteString getSubscriptionsBytes(int index); + com.google.protobuf.ByteString + getSubscriptionsBytes(int index); /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequest.java similarity index 68% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequest.java index a2110e498..653cb6165 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -20,24 +5,21 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for ListTopics.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListTopicsRequest} */ -public final class ListTopicsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListTopicsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ListTopicsRequest) ListTopicsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListTopicsRequest.newBuilder() to construct. private ListTopicsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListTopicsRequest() { parent_ = ""; pageToken_ = ""; @@ -45,41 +27,34 @@ private ListTopicsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTopicsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListTopicsRequest.class, - com.google.cloud.pubsublite.proto.ListTopicsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListTopicsRequest.class, com.google.cloud.pubsublite.proto.ListTopicsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent whose topics are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -88,32 +63,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent whose topics are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -124,8 +97,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of topics to return. The service may return fewer than
    * this value.
@@ -133,7 +104,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -142,12 +112,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListTopics` call.
    * Provide this to retrieve the subsequent page.
@@ -157,7 +124,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -166,15 +132,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A page token, received from a previous `ListTopics` call.
    * Provide this to retrieve the subsequent page.
@@ -184,15 +149,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -201,7 +167,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,7 +178,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -236,7 +202,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -249,17 +216,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.ListTopicsRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListTopicsRequest other = - (com.google.cloud.pubsublite.proto.ListTopicsRequest) obj; + com.google.cloud.pubsublite.proto.ListTopicsRequest other = (com.google.cloud.pubsublite.proto.ListTopicsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -283,135 +252,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListTopicsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.pubsublite.proto.ListTopicsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for ListTopics.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListTopicsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.ListTopicsRequest) com.google.cloud.pubsublite.proto.ListTopicsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListTopicsRequest.class, - com.google.cloud.pubsublite.proto.ListTopicsRequest.Builder.class); + com.google.cloud.pubsublite.proto.ListTopicsRequest.class, com.google.cloud.pubsublite.proto.ListTopicsRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListTopicsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -423,9 +388,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; } @java.lang.Override @@ -444,11 +409,8 @@ public com.google.cloud.pubsublite.proto.ListTopicsRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListTopicsRequest buildPartial() { - com.google.cloud.pubsublite.proto.ListTopicsRequest result = - new com.google.cloud.pubsublite.proto.ListTopicsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.ListTopicsRequest result = new com.google.cloud.pubsublite.proto.ListTopicsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -470,39 +432,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListTopicsRequest r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.ListTopicsRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicsRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicsRequest)other); } else { super.mergeFrom(other); return this; @@ -510,8 +471,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListTopicsRequest other) { - if (other == com.google.cloud.pubsublite.proto.ListTopicsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ListTopicsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -551,31 +511,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -585,28 +541,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent whose topics are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -615,24 +566,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent whose topics are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -640,41 +588,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent whose topics are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent whose topics are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -684,24 +621,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent whose topics are to be listed.
      * Structured like `projects/{project_number}/locations/{location}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -709,10 +640,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of topics to return. The service may return fewer than
      * this value.
@@ -720,7 +649,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -728,8 +656,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of topics to return. The service may return fewer than
      * this value.
@@ -737,7 +663,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -749,8 +674,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * The maximum number of topics to return. The service may return fewer than
      * this value.
@@ -758,7 +681,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -770,8 +692,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -781,13 +701,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -796,8 +716,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -807,14 +725,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -822,8 +741,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -833,22 +750,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -858,7 +771,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -868,8 +780,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListTopics` call.
      * Provide this to retrieve the subsequent page.
@@ -879,23 +789,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -905,12 +813,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListTopicsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListTopicsRequest) private static final com.google.cloud.pubsublite.proto.ListTopicsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListTopicsRequest(); } @@ -919,27 +827,27 @@ public static com.google.cloud.pubsublite.proto.ListTopicsRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTopicsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTopicsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -954,4 +862,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.ListTopicsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequestOrBuilder.java index de7c1e66e..6b3f974b6 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsRequestOrBuilder.java @@ -1,63 +1,36 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface ListTopicsRequestOrBuilder - extends +public interface ListTopicsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListTopicsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent whose topics are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent whose topics are to be listed.
    * Structured like `projects/{project_number}/locations/{location}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of topics to return. The service may return fewer than
    * this value.
@@ -65,14 +38,11 @@ public interface ListTopicsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListTopics` call.
    * Provide this to retrieve the subsequent page.
@@ -82,13 +52,10 @@ public interface ListTopicsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListTopics` call.
    * Provide this to retrieve the subsequent page.
@@ -98,8 +65,8 @@ public interface ListTopicsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponse.java similarity index 72% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponse.java index 08126591a..f15ddf7cd 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponse.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -20,24 +5,21 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response for ListTopics.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListTopicsResponse} */ -public final class ListTopicsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListTopicsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.ListTopicsResponse) ListTopicsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListTopicsResponse.newBuilder() to construct. private ListTopicsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListTopicsResponse() { topics_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,32 +27,28 @@ private ListTopicsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTopicsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListTopicsResponse.class, - com.google.cloud.pubsublite.proto.ListTopicsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListTopicsResponse.class, com.google.cloud.pubsublite.proto.ListTopicsResponse.Builder.class); } public static final int TOPICS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List topics_; /** - * - * *
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -83,8 +61,6 @@ public java.util.List getTopicsList() {
     return topics_;
   }
   /**
-   *
-   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -93,13 +69,11 @@ public java.util.List getTopicsList() {
    * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getTopicsOrBuilderList() {
     return topics_;
   }
   /**
-   *
-   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -112,8 +86,6 @@ public int getTopicsCount() {
     return topics_.size();
   }
   /**
-   *
-   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -126,8 +98,6 @@ public com.google.cloud.pubsublite.proto.Topic getTopics(int index) {
     return topics_.get(index);
   }
   /**
-   *
-   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -136,24 +106,21 @@ public com.google.cloud.pubsublite.proto.Topic getTopics(int index) {
    * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
    */
   @java.lang.Override
-  public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(int index) {
+  public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(
+      int index) {
     return topics_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object nextPageToken_ = "";
   /**
-   *
-   *
    * 
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -162,30 +129,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -194,7 +161,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < topics_.size(); i++) { output.writeMessage(1, topics_.get(i)); } @@ -223,7 +190,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < topics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, topics_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, topics_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -236,16 +204,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.ListTopicsResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.ListTopicsResponse other = - (com.google.cloud.pubsublite.proto.ListTopicsResponse) obj; + com.google.cloud.pubsublite.proto.ListTopicsResponse other = (com.google.cloud.pubsublite.proto.ListTopicsResponse) obj; - if (!getTopicsList().equals(other.getTopicsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getTopicsList() + .equals(other.getTopicsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -269,135 +238,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.ListTopicsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListTopicsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListTopicsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListTopicsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListTopicsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.ListTopicsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.ListTopicsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListTopicsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListTopicsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListTopicsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.ListTopicsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.ListTopicsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.ListTopicsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.ListTopicsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.pubsublite.proto.ListTopicsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for ListTopics.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.ListTopicsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.ListTopicsResponse) com.google.cloud.pubsublite.proto.ListTopicsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.ListTopicsResponse.class, - com.google.cloud.pubsublite.proto.ListTopicsResponse.Builder.class); + com.google.cloud.pubsublite.proto.ListTopicsResponse.class, com.google.cloud.pubsublite.proto.ListTopicsResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.ListTopicsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -414,9 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor; } @java.lang.Override @@ -435,18 +400,14 @@ public com.google.cloud.pubsublite.proto.ListTopicsResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.ListTopicsResponse buildPartial() { - com.google.cloud.pubsublite.proto.ListTopicsResponse result = - new com.google.cloud.pubsublite.proto.ListTopicsResponse(this); + com.google.cloud.pubsublite.proto.ListTopicsResponse result = new com.google.cloud.pubsublite.proto.ListTopicsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.pubsublite.proto.ListTopicsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.ListTopicsResponse result) { if (topicsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { topics_ = java.util.Collections.unmodifiableList(topics_); @@ -469,39 +430,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.ListTopicsResponse public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.ListTopicsResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicsResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.ListTopicsResponse)other); } else { super.mergeFrom(other); return this; @@ -509,8 +469,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListTopicsResponse other) { - if (other == com.google.cloud.pubsublite.proto.ListTopicsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.ListTopicsResponse.getDefaultInstance()) return this; if (topicsBuilder_ == null) { if (!other.topics_.isEmpty()) { if (topics_.isEmpty()) { @@ -529,10 +488,9 @@ public Builder mergeFrom(com.google.cloud.pubsublite.proto.ListTopicsResponse ot topicsBuilder_ = null; topics_ = other.topics_; bitField0_ = (bitField0_ & ~0x00000001); - topicsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTopicsFieldBuilder() - : null; + topicsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTopicsFieldBuilder() : null; } else { topicsBuilder_.addAllMessages(other.topics_); } @@ -569,32 +527,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.pubsublite.proto.Topic m = - input.readMessage( - com.google.cloud.pubsublite.proto.Topic.parser(), extensionRegistry); - if (topicsBuilder_ == null) { - ensureTopicsIsMutable(); - topics_.add(m); - } else { - topicsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.pubsublite.proto.Topic m = + input.readMessage( + com.google.cloud.pubsublite.proto.Topic.parser(), + extensionRegistry); + if (topicsBuilder_ == null) { + ensureTopicsIsMutable(); + topics_.add(m); + } else { + topicsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -604,28 +560,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List topics_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureTopicsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { topics_ = new java.util.ArrayList(topics_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic, - com.google.cloud.pubsublite.proto.Topic.Builder, - com.google.cloud.pubsublite.proto.TopicOrBuilder> - topicsBuilder_; + com.google.cloud.pubsublite.proto.Topic, com.google.cloud.pubsublite.proto.Topic.Builder, com.google.cloud.pubsublite.proto.TopicOrBuilder> topicsBuilder_; /** - * - * *
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -641,8 +590,6 @@ public java.util.List getTopicsList() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -658,8 +605,6 @@ public int getTopicsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -675,8 +620,6 @@ public com.google.cloud.pubsublite.proto.Topic getTopics(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -684,7 +627,8 @@ public com.google.cloud.pubsublite.proto.Topic getTopics(int index) {
      *
      * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
      */
-    public Builder setTopics(int index, com.google.cloud.pubsublite.proto.Topic value) {
+    public Builder setTopics(
+        int index, com.google.cloud.pubsublite.proto.Topic value) {
       if (topicsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -698,8 +642,6 @@ public Builder setTopics(int index, com.google.cloud.pubsublite.proto.Topic valu
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -719,8 +661,6 @@ public Builder setTopics(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -742,8 +682,6 @@ public Builder addTopics(com.google.cloud.pubsublite.proto.Topic value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -751,7 +689,8 @@ public Builder addTopics(com.google.cloud.pubsublite.proto.Topic value) {
      *
      * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
      */
-    public Builder addTopics(int index, com.google.cloud.pubsublite.proto.Topic value) {
+    public Builder addTopics(
+        int index, com.google.cloud.pubsublite.proto.Topic value) {
       if (topicsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -765,8 +704,6 @@ public Builder addTopics(int index, com.google.cloud.pubsublite.proto.Topic valu
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -774,7 +711,8 @@ public Builder addTopics(int index, com.google.cloud.pubsublite.proto.Topic valu
      *
      * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
      */
-    public Builder addTopics(com.google.cloud.pubsublite.proto.Topic.Builder builderForValue) {
+    public Builder addTopics(
+        com.google.cloud.pubsublite.proto.Topic.Builder builderForValue) {
       if (topicsBuilder_ == null) {
         ensureTopicsIsMutable();
         topics_.add(builderForValue.build());
@@ -785,8 +723,6 @@ public Builder addTopics(com.google.cloud.pubsublite.proto.Topic.Builder builder
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -806,8 +742,6 @@ public Builder addTopics(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -819,7 +753,8 @@ public Builder addAllTopics(
         java.lang.Iterable values) {
       if (topicsBuilder_ == null) {
         ensureTopicsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topics_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, topics_);
         onChanged();
       } else {
         topicsBuilder_.addAllMessages(values);
@@ -827,8 +762,6 @@ public Builder addAllTopics(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -847,8 +780,6 @@ public Builder clearTopics() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -867,8 +798,6 @@ public Builder removeTopics(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -876,12 +805,11 @@ public Builder removeTopics(int index) {
      *
      * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
      */
-    public com.google.cloud.pubsublite.proto.Topic.Builder getTopicsBuilder(int index) {
+    public com.google.cloud.pubsublite.proto.Topic.Builder getTopicsBuilder(
+        int index) {
       return getTopicsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -889,16 +817,14 @@ public com.google.cloud.pubsublite.proto.Topic.Builder getTopicsBuilder(int inde
      *
      * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
      */
-    public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(int index) {
+    public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(
+        int index) {
       if (topicsBuilder_ == null) {
-        return topics_.get(index);
-      } else {
+        return topics_.get(index);  } else {
         return topicsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -906,8 +832,8 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(int i
      *
      * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
      */
-    public java.util.List
-        getTopicsOrBuilderList() {
+    public java.util.List 
+         getTopicsOrBuilderList() {
       if (topicsBuilder_ != null) {
         return topicsBuilder_.getMessageOrBuilderList();
       } else {
@@ -915,8 +841,6 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(int i
       }
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -925,12 +849,10 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(int i
      * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
      */
     public com.google.cloud.pubsublite.proto.Topic.Builder addTopicsBuilder() {
-      return getTopicsFieldBuilder()
-          .addBuilder(com.google.cloud.pubsublite.proto.Topic.getDefaultInstance());
+      return getTopicsFieldBuilder().addBuilder(
+          com.google.cloud.pubsublite.proto.Topic.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -938,13 +860,12 @@ public com.google.cloud.pubsublite.proto.Topic.Builder addTopicsBuilder() {
      *
      * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
      */
-    public com.google.cloud.pubsublite.proto.Topic.Builder addTopicsBuilder(int index) {
-      return getTopicsFieldBuilder()
-          .addBuilder(index, com.google.cloud.pubsublite.proto.Topic.getDefaultInstance());
+    public com.google.cloud.pubsublite.proto.Topic.Builder addTopicsBuilder(
+        int index) {
+      return getTopicsFieldBuilder().addBuilder(
+          index, com.google.cloud.pubsublite.proto.Topic.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of topic in the requested parent. The order of the topics is
      * unspecified.
@@ -952,22 +873,20 @@ public com.google.cloud.pubsublite.proto.Topic.Builder addTopicsBuilder(int inde
      *
      * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
      */
-    public java.util.List getTopicsBuilderList() {
+    public java.util.List 
+         getTopicsBuilderList() {
       return getTopicsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Topic,
-            com.google.cloud.pubsublite.proto.Topic.Builder,
-            com.google.cloud.pubsublite.proto.TopicOrBuilder>
+        com.google.cloud.pubsublite.proto.Topic, com.google.cloud.pubsublite.proto.Topic.Builder, com.google.cloud.pubsublite.proto.TopicOrBuilder> 
         getTopicsFieldBuilder() {
       if (topicsBuilder_ == null) {
-        topicsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.pubsublite.proto.Topic,
-                com.google.cloud.pubsublite.proto.Topic.Builder,
-                com.google.cloud.pubsublite.proto.TopicOrBuilder>(
-                topics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        topicsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.pubsublite.proto.Topic, com.google.cloud.pubsublite.proto.Topic.Builder, com.google.cloud.pubsublite.proto.TopicOrBuilder>(
+                topics_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         topics_ = null;
       }
       return topicsBuilder_;
@@ -975,21 +894,19 @@ public java.util.List getTopics
 
     private java.lang.Object nextPageToken_ = "";
     /**
-     *
-     *
      * 
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -998,22 +915,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1021,37 +937,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1061,31 +970,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page of
      * results. If this field is omitted, there are no more results.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1095,12 +1000,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.ListTopicsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.ListTopicsResponse) private static final com.google.cloud.pubsublite.proto.ListTopicsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.ListTopicsResponse(); } @@ -1109,27 +1014,27 @@ public static com.google.cloud.pubsublite.proto.ListTopicsResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTopicsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTopicsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1144,4 +1049,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.ListTopicsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponseOrBuilder.java similarity index 70% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponseOrBuilder.java index 2037d52dd..bb69fbdd9 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ListTopicsResponseOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface ListTopicsResponseOrBuilder - extends +public interface ListTopicsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ListTopicsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -34,10 +16,9 @@ public interface ListTopicsResponseOrBuilder
    *
    * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
    */
-  java.util.List getTopicsList();
+  java.util.List 
+      getTopicsList();
   /**
-   *
-   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -47,8 +28,6 @@ public interface ListTopicsResponseOrBuilder
    */
   com.google.cloud.pubsublite.proto.Topic getTopics(int index);
   /**
-   *
-   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -58,8 +37,6 @@ public interface ListTopicsResponseOrBuilder
    */
   int getTopicsCount();
   /**
-   *
-   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -67,11 +44,9 @@ public interface ListTopicsResponseOrBuilder
    *
    * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
    */
-  java.util.List
+  java.util.List 
       getTopicsOrBuilderList();
   /**
-   *
-   *
    * 
    * The list of topic in the requested parent. The order of the topics is
    * unspecified.
@@ -79,32 +54,28 @@ public interface ListTopicsResponseOrBuilder
    *
    * repeated .google.cloud.pubsublite.v1.Topic topics = 1;
    */
-  com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(int index);
+  com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page of
    * results. If this field is omitted, there are no more results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/LocationName.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/LocationName.java similarity index 100% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/LocationName.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/LocationName.java diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequest.java similarity index 72% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequest.java index 8feeaced4..16bf4b06d 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/publisher.proto @@ -20,56 +5,49 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request to publish messages to the topic.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.MessagePublishRequest} */ -public final class MessagePublishRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MessagePublishRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.MessagePublishRequest) MessagePublishRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MessagePublishRequest.newBuilder() to construct. private MessagePublishRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MessagePublishRequest() { messages_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MessagePublishRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.MessagePublishRequest.class, - com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder.class); + com.google.cloud.pubsublite.proto.MessagePublishRequest.class, com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder.class); } public static final int MESSAGES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List messages_; /** - * - * *
    * The messages to publish.
    * 
@@ -81,8 +59,6 @@ public java.util.List getMessag return messages_; } /** - * - * *
    * The messages to publish.
    * 
@@ -90,13 +66,11 @@ public java.util.List getMessag * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ @java.lang.Override - public java.util.List + public java.util.List getMessagesOrBuilderList() { return messages_; } /** - * - * *
    * The messages to publish.
    * 
@@ -108,8 +82,6 @@ public int getMessagesCount() { return messages_.size(); } /** - * - * *
    * The messages to publish.
    * 
@@ -121,8 +93,6 @@ public com.google.cloud.pubsublite.proto.PubSubMessage getMessages(int index) { return messages_.get(index); } /** - * - * *
    * The messages to publish.
    * 
@@ -130,15 +100,14 @@ public com.google.cloud.pubsublite.proto.PubSubMessage getMessages(int index) { * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBuilder(int index) { + public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBuilder( + int index) { return messages_.get(index); } public static final int FIRST_SEQUENCE_NUMBER_FIELD_NUMBER = 2; private long firstSequenceNumber_ = 0L; /** - * - * *
    * The sequence number corresponding to the first message in `messages`.
    * Messages within a batch are ordered and the sequence numbers of all
@@ -154,7 +123,6 @@ public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBui
    * 
* * int64 first_sequence_number = 2; - * * @return The firstSequenceNumber. */ @java.lang.Override @@ -163,7 +131,6 @@ public long getFirstSequenceNumber() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,7 +142,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < messages_.size(); i++) { output.writeMessage(1, messages_.get(i)); } @@ -192,10 +160,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < messages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, messages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, messages_.get(i)); } if (firstSequenceNumber_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, firstSequenceNumber_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, firstSequenceNumber_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -205,16 +175,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.MessagePublishRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.MessagePublishRequest other = - (com.google.cloud.pubsublite.proto.MessagePublishRequest) obj; + com.google.cloud.pubsublite.proto.MessagePublishRequest other = (com.google.cloud.pubsublite.proto.MessagePublishRequest) obj; - if (!getMessagesList().equals(other.getMessagesList())) return false; - if (getFirstSequenceNumber() != other.getFirstSequenceNumber()) return false; + if (!getMessagesList() + .equals(other.getMessagesList())) return false; + if (getFirstSequenceNumber() + != other.getFirstSequenceNumber()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -231,143 +202,139 @@ public int hashCode() { hash = (53 * hash) + getMessagesList().hashCode(); } hash = (37 * hash) + FIRST_SEQUENCE_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFirstSequenceNumber()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFirstSequenceNumber()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.pubsublite.proto.MessagePublishRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.MessagePublishRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.MessagePublishRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.MessagePublishRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.MessagePublishRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.MessagePublishRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.MessagePublishRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.MessagePublishRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.MessagePublishRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.MessagePublishRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.MessagePublishRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.MessagePublishRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.MessagePublishRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.MessagePublishRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.MessagePublishRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.MessagePublishRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request to publish messages to the topic.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.MessagePublishRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.MessagePublishRequest) com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.MessagePublishRequest.class, - com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder.class); + com.google.cloud.pubsublite.proto.MessagePublishRequest.class, com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.MessagePublishRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -384,9 +351,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor; } @java.lang.Override @@ -405,18 +372,14 @@ public com.google.cloud.pubsublite.proto.MessagePublishRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.MessagePublishRequest buildPartial() { - com.google.cloud.pubsublite.proto.MessagePublishRequest result = - new com.google.cloud.pubsublite.proto.MessagePublishRequest(this); + com.google.cloud.pubsublite.proto.MessagePublishRequest result = new com.google.cloud.pubsublite.proto.MessagePublishRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.pubsublite.proto.MessagePublishRequest result) { + private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.MessagePublishRequest result) { if (messagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { messages_ = java.util.Collections.unmodifiableList(messages_); @@ -439,39 +402,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.MessagePublishReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.MessagePublishRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.MessagePublishRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.MessagePublishRequest)other); } else { super.mergeFrom(other); return this; @@ -479,8 +441,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.MessagePublishRequest other) { - if (other == com.google.cloud.pubsublite.proto.MessagePublishRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.MessagePublishRequest.getDefaultInstance()) return this; if (messagesBuilder_ == null) { if (!other.messages_.isEmpty()) { if (messages_.isEmpty()) { @@ -499,10 +460,9 @@ public Builder mergeFrom(com.google.cloud.pubsublite.proto.MessagePublishRequest messagesBuilder_ = null; messages_ = other.messages_; bitField0_ = (bitField0_ & ~0x00000001); - messagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMessagesFieldBuilder() - : null; + messagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMessagesFieldBuilder() : null; } else { messagesBuilder_.addAllMessages(other.messages_); } @@ -537,33 +497,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.pubsublite.proto.PubSubMessage m = - input.readMessage( - com.google.cloud.pubsublite.proto.PubSubMessage.parser(), - extensionRegistry); - if (messagesBuilder_ == null) { - ensureMessagesIsMutable(); - messages_.add(m); - } else { - messagesBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: - { - firstSequenceNumber_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.pubsublite.proto.PubSubMessage m = + input.readMessage( + com.google.cloud.pubsublite.proto.PubSubMessage.parser(), + extensionRegistry); + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(m); + } else { + messagesBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: { + firstSequenceNumber_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -573,29 +530,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List messages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMessagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - messages_ = - new java.util.ArrayList(messages_); + messages_ = new java.util.ArrayList(messages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.PubSubMessage, - com.google.cloud.pubsublite.proto.PubSubMessage.Builder, - com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder> - messagesBuilder_; + com.google.cloud.pubsublite.proto.PubSubMessage, com.google.cloud.pubsublite.proto.PubSubMessage.Builder, com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder> messagesBuilder_; /** - * - * *
      * The messages to publish.
      * 
@@ -610,8 +559,6 @@ public java.util.List getMessag } } /** - * - * *
      * The messages to publish.
      * 
@@ -626,8 +573,6 @@ public int getMessagesCount() { } } /** - * - * *
      * The messages to publish.
      * 
@@ -642,15 +587,14 @@ public com.google.cloud.pubsublite.proto.PubSubMessage getMessages(int index) { } } /** - * - * *
      * The messages to publish.
      * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - public Builder setMessages(int index, com.google.cloud.pubsublite.proto.PubSubMessage value) { + public Builder setMessages( + int index, com.google.cloud.pubsublite.proto.PubSubMessage value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -664,8 +608,6 @@ public Builder setMessages(int index, com.google.cloud.pubsublite.proto.PubSubMe return this; } /** - * - * *
      * The messages to publish.
      * 
@@ -684,8 +626,6 @@ public Builder setMessages( return this; } /** - * - * *
      * The messages to publish.
      * 
@@ -706,15 +646,14 @@ public Builder addMessages(com.google.cloud.pubsublite.proto.PubSubMessage value return this; } /** - * - * *
      * The messages to publish.
      * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - public Builder addMessages(int index, com.google.cloud.pubsublite.proto.PubSubMessage value) { + public Builder addMessages( + int index, com.google.cloud.pubsublite.proto.PubSubMessage value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -728,8 +667,6 @@ public Builder addMessages(int index, com.google.cloud.pubsublite.proto.PubSubMe return this; } /** - * - * *
      * The messages to publish.
      * 
@@ -748,8 +685,6 @@ public Builder addMessages( return this; } /** - * - * *
      * The messages to publish.
      * 
@@ -768,8 +703,6 @@ public Builder addMessages( return this; } /** - * - * *
      * The messages to publish.
      * 
@@ -780,7 +713,8 @@ public Builder addAllMessages( java.lang.Iterable values) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, messages_); onChanged(); } else { messagesBuilder_.addAllMessages(values); @@ -788,8 +722,6 @@ public Builder addAllMessages( return this; } /** - * - * *
      * The messages to publish.
      * 
@@ -807,8 +739,6 @@ public Builder clearMessages() { return this; } /** - * - * *
      * The messages to publish.
      * 
@@ -826,20 +756,17 @@ public Builder removeMessages(int index) { return this; } /** - * - * *
      * The messages to publish.
      * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - public com.google.cloud.pubsublite.proto.PubSubMessage.Builder getMessagesBuilder(int index) { + public com.google.cloud.pubsublite.proto.PubSubMessage.Builder getMessagesBuilder( + int index) { return getMessagesFieldBuilder().getBuilder(index); } /** - * - * *
      * The messages to publish.
      * 
@@ -849,22 +776,19 @@ public com.google.cloud.pubsublite.proto.PubSubMessage.Builder getMessagesBuilde public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBuilder( int index) { if (messagesBuilder_ == null) { - return messages_.get(index); - } else { + return messages_.get(index); } else { return messagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The messages to publish.
      * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - public java.util.List - getMessagesOrBuilderList() { + public java.util.List + getMessagesOrBuilderList() { if (messagesBuilder_ != null) { return messagesBuilder_.getMessageOrBuilderList(); } else { @@ -872,8 +796,6 @@ public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBui } } /** - * - * *
      * The messages to publish.
      * 
@@ -881,57 +803,49 @@ public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBui * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ public com.google.cloud.pubsublite.proto.PubSubMessage.Builder addMessagesBuilder() { - return getMessagesFieldBuilder() - .addBuilder(com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()); + return getMessagesFieldBuilder().addBuilder( + com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()); } /** - * - * *
      * The messages to publish.
      * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - public com.google.cloud.pubsublite.proto.PubSubMessage.Builder addMessagesBuilder(int index) { - return getMessagesFieldBuilder() - .addBuilder(index, com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()); + public com.google.cloud.pubsublite.proto.PubSubMessage.Builder addMessagesBuilder( + int index) { + return getMessagesFieldBuilder().addBuilder( + index, com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()); } /** - * - * *
      * The messages to publish.
      * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - public java.util.List - getMessagesBuilderList() { + public java.util.List + getMessagesBuilderList() { return getMessagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.PubSubMessage, - com.google.cloud.pubsublite.proto.PubSubMessage.Builder, - com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder> + com.google.cloud.pubsublite.proto.PubSubMessage, com.google.cloud.pubsublite.proto.PubSubMessage.Builder, com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder> getMessagesFieldBuilder() { if (messagesBuilder_ == null) { - messagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.PubSubMessage, - com.google.cloud.pubsublite.proto.PubSubMessage.Builder, - com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder>( - messages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + messagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.pubsublite.proto.PubSubMessage, com.google.cloud.pubsublite.proto.PubSubMessage.Builder, com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder>( + messages_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); messages_ = null; } return messagesBuilder_; } - private long firstSequenceNumber_; + private long firstSequenceNumber_ ; /** - * - * *
      * The sequence number corresponding to the first message in `messages`.
      * Messages within a batch are ordered and the sequence numbers of all
@@ -947,7 +861,6 @@ public com.google.cloud.pubsublite.proto.PubSubMessage.Builder addMessagesBuilde
      * 
* * int64 first_sequence_number = 2; - * * @return The firstSequenceNumber. */ @java.lang.Override @@ -955,8 +868,6 @@ public long getFirstSequenceNumber() { return firstSequenceNumber_; } /** - * - * *
      * The sequence number corresponding to the first message in `messages`.
      * Messages within a batch are ordered and the sequence numbers of all
@@ -972,7 +883,6 @@ public long getFirstSequenceNumber() {
      * 
* * int64 first_sequence_number = 2; - * * @param value The firstSequenceNumber to set. * @return This builder for chaining. */ @@ -984,8 +894,6 @@ public Builder setFirstSequenceNumber(long value) { return this; } /** - * - * *
      * The sequence number corresponding to the first message in `messages`.
      * Messages within a batch are ordered and the sequence numbers of all
@@ -1001,7 +909,6 @@ public Builder setFirstSequenceNumber(long value) {
      * 
* * int64 first_sequence_number = 2; - * * @return This builder for chaining. */ public Builder clearFirstSequenceNumber() { @@ -1010,9 +917,9 @@ public Builder clearFirstSequenceNumber() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1022,12 +929,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.MessagePublishRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.MessagePublishRequest) private static final com.google.cloud.pubsublite.proto.MessagePublishRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.MessagePublishRequest(); } @@ -1036,27 +943,27 @@ public static com.google.cloud.pubsublite.proto.MessagePublishRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MessagePublishRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MessagePublishRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1071,4 +978,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.MessagePublishRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequestOrBuilder.java similarity index 74% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequestOrBuilder.java index 663d7c3f9..28bcd657e 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishRequestOrBuilder.java @@ -1,42 +1,23 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/publisher.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface MessagePublishRequestOrBuilder - extends +public interface MessagePublishRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.MessagePublishRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The messages to publish.
    * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - java.util.List getMessagesList(); + java.util.List + getMessagesList(); /** - * - * *
    * The messages to publish.
    * 
@@ -45,8 +26,6 @@ public interface MessagePublishRequestOrBuilder */ com.google.cloud.pubsublite.proto.PubSubMessage getMessages(int index); /** - * - * *
    * The messages to publish.
    * 
@@ -55,30 +34,25 @@ public interface MessagePublishRequestOrBuilder */ int getMessagesCount(); /** - * - * *
    * The messages to publish.
    * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - java.util.List + java.util.List getMessagesOrBuilderList(); /** - * - * *
    * The messages to publish.
    * 
* * repeated .google.cloud.pubsublite.v1.PubSubMessage messages = 1; */ - com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBuilder(int index); + com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessagesOrBuilder( + int index); /** - * - * *
    * The sequence number corresponding to the first message in `messages`.
    * Messages within a batch are ordered and the sequence numbers of all
@@ -94,7 +68,6 @@ public interface MessagePublishRequestOrBuilder
    * 
* * int64 first_sequence_number = 2; - * * @return The firstSequenceNumber. */ long getFirstSequenceNumber(); diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponse.java similarity index 71% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponse.java index decb93110..d60aa06fa 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponse.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/publisher.proto @@ -20,83 +5,70 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response to a MessagePublishRequest.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.MessagePublishResponse} */ -public final class MessagePublishResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MessagePublishResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.MessagePublishResponse) MessagePublishResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MessagePublishResponse.newBuilder() to construct. private MessagePublishResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MessagePublishResponse() { cursorRanges_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MessagePublishResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.MessagePublishResponse.class, - com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder.class); + com.google.cloud.pubsublite.proto.MessagePublishResponse.class, com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder.class); } - public interface CursorRangeOrBuilder - extends + public interface CursorRangeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The cursor of the message at the start index. The cursors for remaining
      * messages up to the end index (exclusive) are sequential.
      * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; - * * @return Whether the startCursor field is set. */ boolean hasStartCursor(); /** - * - * *
      * The cursor of the message at the start index. The cursors for remaining
      * messages up to the end index (exclusive) are sequential.
      * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; - * * @return The startCursor. */ com.google.cloud.pubsublite.proto.Cursor getStartCursor(); /** - * - * *
      * The cursor of the message at the start index. The cursors for remaining
      * messages up to the end index (exclusive) are sequential.
@@ -107,87 +79,75 @@ public interface CursorRangeOrBuilder
     com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder();
 
     /**
-     *
-     *
      * 
      * Index of the message in the published batch that corresponds to the
      * start cursor. Inclusive.
      * 
* * int32 start_index = 2; - * * @return The startIndex. */ int getStartIndex(); /** - * - * *
      * Index of the last message in this range. Exclusive.
      * 
* * int32 end_index = 3; - * * @return The endIndex. */ int getEndIndex(); } /** - * - * *
    * Cursors for a subrange of published messages.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange} */ - public static final class CursorRange extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class CursorRange extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange) CursorRangeOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CursorRange.newBuilder() to construct. private CursorRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CursorRange() {} + private CursorRange() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CursorRange(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.class, - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder.class); + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.class, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder.class); } private int bitField0_; public static final int START_CURSOR_FIELD_NUMBER = 1; private com.google.cloud.pubsublite.proto.Cursor startCursor_; /** - * - * *
      * The cursor of the message at the start index. The cursors for remaining
      * messages up to the end index (exclusive) are sequential.
      * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; - * * @return Whether the startCursor field is set. */ @java.lang.Override @@ -195,26 +155,19 @@ public boolean hasStartCursor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The cursor of the message at the start index. The cursors for remaining
      * messages up to the end index (exclusive) are sequential.
      * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; - * * @return The startCursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getStartCursor() { - return startCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : startCursor_; + return startCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; } /** - * - * *
      * The cursor of the message at the start index. The cursors for remaining
      * messages up to the end index (exclusive) are sequential.
@@ -224,23 +177,18 @@ public com.google.cloud.pubsublite.proto.Cursor getStartCursor() {
      */
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder() {
-      return startCursor_ == null
-          ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()
-          : startCursor_;
+      return startCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_;
     }
 
     public static final int START_INDEX_FIELD_NUMBER = 2;
     private int startIndex_ = 0;
     /**
-     *
-     *
      * 
      * Index of the message in the published batch that corresponds to the
      * start cursor. Inclusive.
      * 
* * int32 start_index = 2; - * * @return The startIndex. */ @java.lang.Override @@ -251,14 +199,11 @@ public int getStartIndex() { public static final int END_INDEX_FIELD_NUMBER = 3; private int endIndex_ = 0; /** - * - * *
      * Index of the last message in this range. Exclusive.
      * 
* * int32 end_index = 3; - * * @return The endIndex. */ @java.lang.Override @@ -267,7 +212,6 @@ public int getEndIndex() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -279,7 +223,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getStartCursor()); } @@ -299,13 +244,16 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartCursor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStartCursor()); } if (startIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, startIndex_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, startIndex_); } if (endIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, endIndex_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, endIndex_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -315,20 +263,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange other = - (com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange) obj; + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange other = (com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange) obj; if (hasStartCursor() != other.hasStartCursor()) return false; if (hasStartCursor()) { - if (!getStartCursor().equals(other.getStartCursor())) return false; + if (!getStartCursor() + .equals(other.getStartCursor())) return false; } - if (getStartIndex() != other.getStartIndex()) return false; - if (getEndIndex() != other.getEndIndex()) return false; + if (getStartIndex() + != other.getStartIndex()) return false; + if (getEndIndex() + != other.getEndIndex()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -354,95 +304,89 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -452,51 +396,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Cursors for a subrange of published messages.
      * 
* * Protobuf type {@code google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange) com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.class, - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder.class); + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.class, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder.class); } - // Construct using - // com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.newBuilder() + // Construct using com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getStartCursorFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -512,22 +450,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange - getDefaultInstanceForType() { - return com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange - .getDefaultInstance(); + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getDefaultInstanceForType() { + return com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.getDefaultInstance(); } @java.lang.Override public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange build() { - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange result = - buildPartial(); + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -536,22 +471,19 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange buil @java.lang.Override public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange buildPartial() { - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange result = - new com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange result = new com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startCursor_ = - startCursorBuilder_ == null ? startCursor_ : startCursorBuilder_.build(); + result.startCursor_ = startCursorBuilder_ == null + ? startCursor_ + : startCursorBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { @@ -567,53 +499,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange) { - return mergeFrom( - (com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange) other); + return mergeFrom((com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange other) { - if (other - == com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange other) { + if (other == com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.getDefaultInstance()) return this; if (other.hasStartCursor()) { mergeStartCursor(other.getStartCursor()); } @@ -649,31 +574,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getStartCursorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - startIndex_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - endIndex_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getStartCursorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + startIndex_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + endIndex_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -683,54 +606,40 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.pubsublite.proto.Cursor startCursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> - startCursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> startCursorBuilder_; /** - * - * *
        * The cursor of the message at the start index. The cursors for remaining
        * messages up to the end index (exclusive) are sequential.
        * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; - * * @return Whether the startCursor field is set. */ public boolean hasStartCursor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * The cursor of the message at the start index. The cursors for remaining
        * messages up to the end index (exclusive) are sequential.
        * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; - * * @return The startCursor. */ public com.google.cloud.pubsublite.proto.Cursor getStartCursor() { if (startCursorBuilder_ == null) { - return startCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : startCursor_; + return startCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; } else { return startCursorBuilder_.getMessage(); } } /** - * - * *
        * The cursor of the message at the start index. The cursors for remaining
        * messages up to the end index (exclusive) are sequential.
@@ -752,8 +661,6 @@ public Builder setStartCursor(com.google.cloud.pubsublite.proto.Cursor value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * The cursor of the message at the start index. The cursors for remaining
        * messages up to the end index (exclusive) are sequential.
@@ -773,8 +680,6 @@ public Builder setStartCursor(
         return this;
       }
       /**
-       *
-       *
        * 
        * The cursor of the message at the start index. The cursors for remaining
        * messages up to the end index (exclusive) are sequential.
@@ -784,9 +689,9 @@ public Builder setStartCursor(
        */
       public Builder mergeStartCursor(com.google.cloud.pubsublite.proto.Cursor value) {
         if (startCursorBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0)
-              && startCursor_ != null
-              && startCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0) &&
+            startCursor_ != null &&
+            startCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
             getStartCursorBuilder().mergeFrom(value);
           } else {
             startCursor_ = value;
@@ -801,8 +706,6 @@ public Builder mergeStartCursor(com.google.cloud.pubsublite.proto.Cursor value)
         return this;
       }
       /**
-       *
-       *
        * 
        * The cursor of the message at the start index. The cursors for remaining
        * messages up to the end index (exclusive) are sequential.
@@ -821,8 +724,6 @@ public Builder clearStartCursor() {
         return this;
       }
       /**
-       *
-       *
        * 
        * The cursor of the message at the start index. The cursors for remaining
        * messages up to the end index (exclusive) are sequential.
@@ -836,8 +737,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getStartCursorBuilder()
         return getStartCursorFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * The cursor of the message at the start index. The cursors for remaining
        * messages up to the end index (exclusive) are sequential.
@@ -849,14 +748,11 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder
         if (startCursorBuilder_ != null) {
           return startCursorBuilder_.getMessageOrBuilder();
         } else {
-          return startCursor_ == null
-              ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()
-              : startCursor_;
+          return startCursor_ == null ?
+              com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_;
         }
       }
       /**
-       *
-       *
        * 
        * The cursor of the message at the start index. The cursors for remaining
        * messages up to the end index (exclusive) are sequential.
@@ -865,33 +761,27 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder
        * .google.cloud.pubsublite.v1.Cursor start_cursor = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.pubsublite.proto.Cursor,
-              com.google.cloud.pubsublite.proto.Cursor.Builder,
-              com.google.cloud.pubsublite.proto.CursorOrBuilder>
+          com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> 
           getStartCursorFieldBuilder() {
         if (startCursorBuilder_ == null) {
-          startCursorBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.cloud.pubsublite.proto.Cursor,
-                  com.google.cloud.pubsublite.proto.Cursor.Builder,
-                  com.google.cloud.pubsublite.proto.CursorOrBuilder>(
-                  getStartCursor(), getParentForChildren(), isClean());
+          startCursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>(
+                  getStartCursor(),
+                  getParentForChildren(),
+                  isClean());
           startCursor_ = null;
         }
         return startCursorBuilder_;
       }
 
-      private int startIndex_;
+      private int startIndex_ ;
       /**
-       *
-       *
        * 
        * Index of the message in the published batch that corresponds to the
        * start cursor. Inclusive.
        * 
* * int32 start_index = 2; - * * @return The startIndex. */ @java.lang.Override @@ -899,15 +789,12 @@ public int getStartIndex() { return startIndex_; } /** - * - * *
        * Index of the message in the published batch that corresponds to the
        * start cursor. Inclusive.
        * 
* * int32 start_index = 2; - * * @param value The startIndex to set. * @return This builder for chaining. */ @@ -919,15 +806,12 @@ public Builder setStartIndex(int value) { return this; } /** - * - * *
        * Index of the message in the published batch that corresponds to the
        * start cursor. Inclusive.
        * 
* * int32 start_index = 2; - * * @return This builder for chaining. */ public Builder clearStartIndex() { @@ -937,16 +821,13 @@ public Builder clearStartIndex() { return this; } - private int endIndex_; + private int endIndex_ ; /** - * - * *
        * Index of the last message in this range. Exclusive.
        * 
* * int32 end_index = 3; - * * @return The endIndex. */ @java.lang.Override @@ -954,14 +835,11 @@ public int getEndIndex() { return endIndex_; } /** - * - * *
        * Index of the last message in this range. Exclusive.
        * 
* * int32 end_index = 3; - * * @param value The endIndex to set. * @return This builder for chaining. */ @@ -973,14 +851,11 @@ public Builder setEndIndex(int value) { return this; } /** - * - * *
        * Index of the last message in this range. Exclusive.
        * 
* * int32 end_index = 3; - * * @return This builder for chaining. */ public Builder clearEndIndex() { @@ -989,7 +864,6 @@ public Builder clearEndIndex() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1002,44 +876,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange) - private static final com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange(); } - public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange - getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CursorRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CursorRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1051,25 +922,22 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int bitField0_; public static final int START_CURSOR_FIELD_NUMBER = 1; private com.google.cloud.pubsublite.proto.Cursor startCursor_; /** - * - * *
    * The cursor of the first published message in the batch. The cursors for any
    * remaining messages in the batch are guaranteed to be sequential.
    * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; - * * @return Whether the startCursor field is set. */ @java.lang.Override @@ -1077,26 +945,19 @@ public boolean hasStartCursor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The cursor of the first published message in the batch. The cursors for any
    * remaining messages in the batch are guaranteed to be sequential.
    * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; - * * @return The startCursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getStartCursor() { - return startCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : startCursor_; + return startCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; } /** - * - * *
    * The cursor of the first published message in the batch. The cursors for any
    * remaining messages in the batch are guaranteed to be sequential.
@@ -1106,19 +967,13 @@ public com.google.cloud.pubsublite.proto.Cursor getStartCursor() {
    */
   @java.lang.Override
   public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder() {
-    return startCursor_ == null
-        ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()
-        : startCursor_;
+    return startCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_;
   }
 
   public static final int CURSOR_RANGES_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
-  private java.util.List
-      cursorRanges_;
+  private java.util.List cursorRanges_;
   /**
-   *
-   *
    * 
    * Cursors for messages published in the batch. There will exist multiple
    * ranges when cursors are not contiguous within the batch.
@@ -1130,18 +985,13 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder
    * These messages will have offsets when received by a subscriber.
    * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ @java.lang.Override - public java.util.List - getCursorRangesList() { + public java.util.List getCursorRangesList() { return cursorRanges_; } /** - * - * *
    * Cursors for messages published in the batch. There will exist multiple
    * ranges when cursors are not contiguous within the batch.
@@ -1153,19 +1003,14 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder
    * These messages will have offsets when received by a subscriber.
    * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder> + public java.util.List getCursorRangesOrBuilderList() { return cursorRanges_; } /** - * - * *
    * Cursors for messages published in the batch. There will exist multiple
    * ranges when cursors are not contiguous within the batch.
@@ -1177,17 +1022,13 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder
    * These messages will have offsets when received by a subscriber.
    * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ @java.lang.Override public int getCursorRangesCount() { return cursorRanges_.size(); } /** - * - * *
    * Cursors for messages published in the batch. There will exist multiple
    * ranges when cursors are not contiguous within the batch.
@@ -1199,18 +1040,13 @@ public int getCursorRangesCount() {
    * These messages will have offsets when received by a subscriber.
    * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getCursorRanges( - int index) { + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getCursorRanges(int index) { return cursorRanges_.get(index); } /** - * - * *
    * Cursors for messages published in the batch. There will exist multiple
    * ranges when cursors are not contiguous within the batch.
@@ -1222,18 +1058,15 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getC
    * These messages will have offsets when received by a subscriber.
    * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder - getCursorRangesOrBuilder(int index) { + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder getCursorRangesOrBuilder( + int index) { return cursorRanges_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1245,7 +1078,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getStartCursor()); } @@ -1262,10 +1096,12 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartCursor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStartCursor()); } for (int i = 0; i < cursorRanges_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, cursorRanges_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, cursorRanges_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1275,19 +1111,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.MessagePublishResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.MessagePublishResponse other = - (com.google.cloud.pubsublite.proto.MessagePublishResponse) obj; + com.google.cloud.pubsublite.proto.MessagePublishResponse other = (com.google.cloud.pubsublite.proto.MessagePublishResponse) obj; if (hasStartCursor() != other.hasStartCursor()) return false; if (hasStartCursor()) { - if (!getStartCursor().equals(other.getStartCursor())) return false; + if (!getStartCursor() + .equals(other.getStartCursor())) return false; } - if (!getCursorRangesList().equals(other.getCursorRangesList())) return false; + if (!getCursorRangesList() + .equals(other.getCursorRangesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1313,127 +1150,119 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.MessagePublishResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.MessagePublishResponse prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.MessagePublishResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response to a MessagePublishRequest.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.MessagePublishResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.MessagePublishResponse) com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.MessagePublishResponse.class, - com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder.class); + com.google.cloud.pubsublite.proto.MessagePublishResponse.class, com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.MessagePublishResponse.newBuilder() @@ -1441,18 +1270,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getStartCursorFieldBuilder(); getCursorRangesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1473,9 +1302,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor; } @java.lang.Override @@ -1494,18 +1323,14 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.MessagePublishResponse buildPartial() { - com.google.cloud.pubsublite.proto.MessagePublishResponse result = - new com.google.cloud.pubsublite.proto.MessagePublishResponse(this); + com.google.cloud.pubsublite.proto.MessagePublishResponse result = new com.google.cloud.pubsublite.proto.MessagePublishResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.pubsublite.proto.MessagePublishResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.MessagePublishResponse result) { if (cursorRangesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { cursorRanges_ = java.util.Collections.unmodifiableList(cursorRanges_); @@ -1521,8 +1346,9 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.MessagePublishRespo int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startCursor_ = - startCursorBuilder_ == null ? startCursor_ : startCursorBuilder_.build(); + result.startCursor_ = startCursorBuilder_ == null + ? startCursor_ + : startCursorBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -1532,39 +1358,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.MessagePublishRespo public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.MessagePublishResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.MessagePublishResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.MessagePublishResponse)other); } else { super.mergeFrom(other); return this; @@ -1572,8 +1397,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.MessagePublishResponse other) { - if (other == com.google.cloud.pubsublite.proto.MessagePublishResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.MessagePublishResponse.getDefaultInstance()) return this; if (other.hasStartCursor()) { mergeStartCursor(other.getStartCursor()); } @@ -1595,10 +1419,9 @@ public Builder mergeFrom(com.google.cloud.pubsublite.proto.MessagePublishRespons cursorRangesBuilder_ = null; cursorRanges_ = other.cursorRanges_; bitField0_ = (bitField0_ & ~0x00000002); - cursorRangesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCursorRangesFieldBuilder() - : null; + cursorRangesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCursorRangesFieldBuilder() : null; } else { cursorRangesBuilder_.addAllMessages(other.cursorRanges_); } @@ -1630,34 +1453,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getStartCursorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange m = - input.readMessage( - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange - .parser(), - extensionRegistry); - if (cursorRangesBuilder_ == null) { - ensureCursorRangesIsMutable(); - cursorRanges_.add(m); - } else { - cursorRangesBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getStartCursorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange m = + input.readMessage( + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.parser(), + extensionRegistry); + if (cursorRangesBuilder_ == null) { + ensureCursorRangesIsMutable(); + cursorRanges_.add(m); + } else { + cursorRangesBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1667,54 +1488,40 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.pubsublite.proto.Cursor startCursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> - startCursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> startCursorBuilder_; /** - * - * *
      * The cursor of the first published message in the batch. The cursors for any
      * remaining messages in the batch are guaranteed to be sequential.
      * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; - * * @return Whether the startCursor field is set. */ public boolean hasStartCursor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The cursor of the first published message in the batch. The cursors for any
      * remaining messages in the batch are guaranteed to be sequential.
      * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; - * * @return The startCursor. */ public com.google.cloud.pubsublite.proto.Cursor getStartCursor() { if (startCursorBuilder_ == null) { - return startCursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : startCursor_; + return startCursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_; } else { return startCursorBuilder_.getMessage(); } } /** - * - * *
      * The cursor of the first published message in the batch. The cursors for any
      * remaining messages in the batch are guaranteed to be sequential.
@@ -1736,8 +1543,6 @@ public Builder setStartCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The cursor of the first published message in the batch. The cursors for any
      * remaining messages in the batch are guaranteed to be sequential.
@@ -1757,8 +1562,6 @@ public Builder setStartCursor(
       return this;
     }
     /**
-     *
-     *
      * 
      * The cursor of the first published message in the batch. The cursors for any
      * remaining messages in the batch are guaranteed to be sequential.
@@ -1768,9 +1571,9 @@ public Builder setStartCursor(
      */
     public Builder mergeStartCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       if (startCursorBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && startCursor_ != null
-            && startCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          startCursor_ != null &&
+          startCursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
           getStartCursorBuilder().mergeFrom(value);
         } else {
           startCursor_ = value;
@@ -1785,8 +1588,6 @@ public Builder mergeStartCursor(com.google.cloud.pubsublite.proto.Cursor value)
       return this;
     }
     /**
-     *
-     *
      * 
      * The cursor of the first published message in the batch. The cursors for any
      * remaining messages in the batch are guaranteed to be sequential.
@@ -1805,8 +1606,6 @@ public Builder clearStartCursor() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The cursor of the first published message in the batch. The cursors for any
      * remaining messages in the batch are guaranteed to be sequential.
@@ -1820,8 +1619,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getStartCursorBuilder()
       return getStartCursorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The cursor of the first published message in the batch. The cursors for any
      * remaining messages in the batch are guaranteed to be sequential.
@@ -1833,14 +1630,11 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder
       if (startCursorBuilder_ != null) {
         return startCursorBuilder_.getMessageOrBuilder();
       } else {
-        return startCursor_ == null
-            ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()
-            : startCursor_;
+        return startCursor_ == null ?
+            com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : startCursor_;
       }
     }
     /**
-     *
-     *
      * 
      * The cursor of the first published message in the batch. The cursors for any
      * remaining messages in the batch are guaranteed to be sequential.
@@ -1849,44 +1643,32 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder
      * .google.cloud.pubsublite.v1.Cursor start_cursor = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Cursor,
-            com.google.cloud.pubsublite.proto.Cursor.Builder,
-            com.google.cloud.pubsublite.proto.CursorOrBuilder>
+        com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> 
         getStartCursorFieldBuilder() {
       if (startCursorBuilder_ == null) {
-        startCursorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.pubsublite.proto.Cursor,
-                com.google.cloud.pubsublite.proto.Cursor.Builder,
-                com.google.cloud.pubsublite.proto.CursorOrBuilder>(
-                getStartCursor(), getParentForChildren(), isClean());
+        startCursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>(
+                getStartCursor(),
+                getParentForChildren(),
+                isClean());
         startCursor_ = null;
       }
       return startCursorBuilder_;
     }
 
-    private java.util.List
-        cursorRanges_ = java.util.Collections.emptyList();
-
+    private java.util.List cursorRanges_ =
+      java.util.Collections.emptyList();
     private void ensureCursorRangesIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        cursorRanges_ =
-            new java.util.ArrayList<
-                com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange>(
-                cursorRanges_);
+        cursorRanges_ = new java.util.ArrayList(cursorRanges_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange,
-            com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder,
-            com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder>
-        cursorRangesBuilder_;
+        com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder> cursorRangesBuilder_;
 
     /**
-     *
-     *
      * 
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -1898,12 +1680,9 @@ private void ensureCursorRangesIsMutable() {
      * These messages will have offsets when received by a subscriber.
      * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ - public java.util.List - getCursorRangesList() { + public java.util.List getCursorRangesList() { if (cursorRangesBuilder_ == null) { return java.util.Collections.unmodifiableList(cursorRanges_); } else { @@ -1911,8 +1690,6 @@ private void ensureCursorRangesIsMutable() { } } /** - * - * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -1924,9 +1701,7 @@ private void ensureCursorRangesIsMutable() {
      * These messages will have offsets when received by a subscriber.
      * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ public int getCursorRangesCount() { if (cursorRangesBuilder_ == null) { @@ -1936,8 +1711,6 @@ public int getCursorRangesCount() { } } /** - * - * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -1949,12 +1722,9 @@ public int getCursorRangesCount() {
      * These messages will have offsets when received by a subscriber.
      * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ - public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getCursorRanges( - int index) { + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getCursorRanges(int index) { if (cursorRangesBuilder_ == null) { return cursorRanges_.get(index); } else { @@ -1962,8 +1732,6 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getC } } /** - * - * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -1975,9 +1743,7 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getC
      * These messages will have offsets when received by a subscriber.
      * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ public Builder setCursorRanges( int index, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange value) { @@ -1994,8 +1760,6 @@ public Builder setCursorRanges( return this; } /** - * - * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -2007,14 +1771,10 @@ public Builder setCursorRanges(
      * These messages will have offsets when received by a subscriber.
      * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ public Builder setCursorRanges( - int index, - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder - builderForValue) { + int index, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder builderForValue) { if (cursorRangesBuilder_ == null) { ensureCursorRangesIsMutable(); cursorRanges_.set(index, builderForValue.build()); @@ -2025,8 +1785,6 @@ public Builder setCursorRanges( return this; } /** - * - * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -2038,12 +1796,9 @@ public Builder setCursorRanges(
      * These messages will have offsets when received by a subscriber.
      * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ - public Builder addCursorRanges( - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange value) { + public Builder addCursorRanges(com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange value) { if (cursorRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2057,8 +1812,6 @@ public Builder addCursorRanges( return this; } /** - * - * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -2070,9 +1823,7 @@ public Builder addCursorRanges(
      * These messages will have offsets when received by a subscriber.
      * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ public Builder addCursorRanges( int index, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange value) { @@ -2089,8 +1840,6 @@ public Builder addCursorRanges( return this; } /** - * - * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -2102,13 +1851,10 @@ public Builder addCursorRanges(
      * These messages will have offsets when received by a subscriber.
      * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ public Builder addCursorRanges( - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder - builderForValue) { + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder builderForValue) { if (cursorRangesBuilder_ == null) { ensureCursorRangesIsMutable(); cursorRanges_.add(builderForValue.build()); @@ -2119,8 +1865,6 @@ public Builder addCursorRanges( return this; } /** - * - * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -2132,14 +1876,10 @@ public Builder addCursorRanges(
      * These messages will have offsets when received by a subscriber.
      * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ public Builder addCursorRanges( - int index, - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder - builderForValue) { + int index, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder builderForValue) { if (cursorRangesBuilder_ == null) { ensureCursorRangesIsMutable(); cursorRanges_.add(index, builderForValue.build()); @@ -2150,8 +1890,6 @@ public Builder addCursorRanges( return this; } /** - * - * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -2163,17 +1901,14 @@ public Builder addCursorRanges(
      * These messages will have offsets when received by a subscriber.
      * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ public Builder addAllCursorRanges( - java.lang.Iterable< - ? extends com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange> - values) { + java.lang.Iterable values) { if (cursorRangesBuilder_ == null) { ensureCursorRangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cursorRanges_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, cursorRanges_); onChanged(); } else { cursorRangesBuilder_.addAllMessages(values); @@ -2181,8 +1916,6 @@ public Builder addAllCursorRanges( return this; } /** - * - * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -2194,9 +1927,7 @@ public Builder addAllCursorRanges(
      * These messages will have offsets when received by a subscriber.
      * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ public Builder clearCursorRanges() { if (cursorRangesBuilder_ == null) { @@ -2209,8 +1940,6 @@ public Builder clearCursorRanges() { return this; } /** - * - * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -2222,9 +1951,7 @@ public Builder clearCursorRanges() {
      * These messages will have offsets when received by a subscriber.
      * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ public Builder removeCursorRanges(int index) { if (cursorRangesBuilder_ == null) { @@ -2237,8 +1964,6 @@ public Builder removeCursorRanges(int index) { return this; } /** - * - * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -2250,17 +1975,13 @@ public Builder removeCursorRanges(int index) {
      * These messages will have offsets when received by a subscriber.
      * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ - public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder - getCursorRangesBuilder(int index) { + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder getCursorRangesBuilder( + int index) { return getCursorRangesFieldBuilder().getBuilder(index); } /** - * - * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -2272,21 +1993,16 @@ public Builder removeCursorRanges(int index) {
      * These messages will have offsets when received by a subscriber.
      * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ - public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder - getCursorRangesOrBuilder(int index) { + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder getCursorRangesOrBuilder( + int index) { if (cursorRangesBuilder_ == null) { - return cursorRanges_.get(index); - } else { + return cursorRanges_.get(index); } else { return cursorRangesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -2298,13 +2014,10 @@ public Builder removeCursorRanges(int index) {
      * These messages will have offsets when received by a subscriber.
      * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ - public java.util.List< - ? extends com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder> - getCursorRangesOrBuilderList() { + public java.util.List + getCursorRangesOrBuilderList() { if (cursorRangesBuilder_ != null) { return cursorRangesBuilder_.getMessageOrBuilderList(); } else { @@ -2312,8 +2025,6 @@ public Builder removeCursorRanges(int index) { } } /** - * - * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -2325,20 +2036,13 @@ public Builder removeCursorRanges(int index) {
      * These messages will have offsets when received by a subscriber.
      * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ - public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder - addCursorRangesBuilder() { - return getCursorRangesFieldBuilder() - .addBuilder( - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange - .getDefaultInstance()); + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder addCursorRangesBuilder() { + return getCursorRangesFieldBuilder().addBuilder( + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.getDefaultInstance()); } /** - * - * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -2350,21 +2054,14 @@ public Builder removeCursorRanges(int index) {
      * These messages will have offsets when received by a subscriber.
      * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ - public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder - addCursorRangesBuilder(int index) { - return getCursorRangesFieldBuilder() - .addBuilder( - index, - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange - .getDefaultInstance()); + public com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder addCursorRangesBuilder( + int index) { + return getCursorRangesFieldBuilder().addBuilder( + index, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.getDefaultInstance()); } /** - * - * *
      * Cursors for messages published in the batch. There will exist multiple
      * ranges when cursors are not contiguous within the batch.
@@ -2376,35 +2073,29 @@ public Builder removeCursorRanges(int index) {
      * These messages will have offsets when received by a subscriber.
      * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ - public java.util.List< - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder> - getCursorRangesBuilderList() { + public java.util.List + getCursorRangesBuilderList() { return getCursorRangesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange, - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder, - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder> + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder> getCursorRangesFieldBuilder() { if (cursorRangesBuilder_ == null) { - cursorRangesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange, - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder, - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder>( - cursorRanges_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + cursorRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange.Builder, com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder>( + cursorRanges_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); cursorRanges_ = null; } return cursorRangesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2414,12 +2105,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.MessagePublishResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.MessagePublishResponse) private static final com.google.cloud.pubsublite.proto.MessagePublishResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.MessagePublishResponse(); } @@ -2428,27 +2119,27 @@ public static com.google.cloud.pubsublite.proto.MessagePublishResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MessagePublishResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MessagePublishResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2463,4 +2154,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.MessagePublishResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponseOrBuilder.java similarity index 74% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponseOrBuilder.java index 6530dc325..1f99bf418 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessagePublishResponseOrBuilder.java @@ -1,58 +1,34 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/publisher.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface MessagePublishResponseOrBuilder - extends +public interface MessagePublishResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.MessagePublishResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The cursor of the first published message in the batch. The cursors for any
    * remaining messages in the batch are guaranteed to be sequential.
    * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; - * * @return Whether the startCursor field is set. */ boolean hasStartCursor(); /** - * - * *
    * The cursor of the first published message in the batch. The cursors for any
    * remaining messages in the batch are guaranteed to be sequential.
    * 
* * .google.cloud.pubsublite.v1.Cursor start_cursor = 1; - * * @return The startCursor. */ com.google.cloud.pubsublite.proto.Cursor getStartCursor(); /** - * - * *
    * The cursor of the first published message in the batch. The cursors for any
    * remaining messages in the batch are guaranteed to be sequential.
@@ -63,8 +39,6 @@ public interface MessagePublishResponseOrBuilder
   com.google.cloud.pubsublite.proto.CursorOrBuilder getStartCursorOrBuilder();
 
   /**
-   *
-   *
    * 
    * Cursors for messages published in the batch. There will exist multiple
    * ranges when cursors are not contiguous within the batch.
@@ -76,15 +50,11 @@ public interface MessagePublishResponseOrBuilder
    * These messages will have offsets when received by a subscriber.
    * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ - java.util.List + java.util.List getCursorRangesList(); /** - * - * *
    * Cursors for messages published in the batch. There will exist multiple
    * ranges when cursors are not contiguous within the batch.
@@ -96,14 +66,10 @@ public interface MessagePublishResponseOrBuilder
    * These messages will have offsets when received by a subscriber.
    * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange getCursorRanges(int index); /** - * - * *
    * Cursors for messages published in the batch. There will exist multiple
    * ranges when cursors are not contiguous within the batch.
@@ -115,14 +81,10 @@ public interface MessagePublishResponseOrBuilder
    * These messages will have offsets when received by a subscriber.
    * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ int getCursorRangesCount(); /** - * - * *
    * Cursors for messages published in the batch. There will exist multiple
    * ranges when cursors are not contiguous within the batch.
@@ -134,16 +96,11 @@ public interface MessagePublishResponseOrBuilder
    * These messages will have offsets when received by a subscriber.
    * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ - java.util.List< - ? extends com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder> + java.util.List getCursorRangesOrBuilderList(); /** - * - * *
    * Cursors for messages published in the batch. There will exist multiple
    * ranges when cursors are not contiguous within the batch.
@@ -155,10 +112,8 @@ public interface MessagePublishResponseOrBuilder
    * These messages will have offsets when received by a subscriber.
    * 
* - * - * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; - * + * repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2; */ - com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder - getCursorRangesOrBuilder(int index); + com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder getCursorRangesOrBuilder( + int index); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponse.java similarity index 71% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponse.java index 359ebad82..9c8915ddc 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponse.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto @@ -20,8 +5,6 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response containing a list of messages. Upon delivering a MessageResponse to
  * the client, the server:
@@ -33,48 +16,43 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.MessageResponse}
  */
-public final class MessageResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class MessageResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.MessageResponse)
     MessageResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use MessageResponse.newBuilder() to construct.
   private MessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private MessageResponse() {
     messages_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new MessageResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.MessageResponse.class,
-            com.google.cloud.pubsublite.proto.MessageResponse.Builder.class);
+            com.google.cloud.pubsublite.proto.MessageResponse.class, com.google.cloud.pubsublite.proto.MessageResponse.Builder.class);
   }
 
   public static final int MESSAGES_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List messages_;
   /**
-   *
-   *
    * 
    * Messages from the topic partition.
    * 
@@ -86,8 +64,6 @@ public java.util.List getMes return messages_; } /** - * - * *
    * Messages from the topic partition.
    * 
@@ -95,13 +71,11 @@ public java.util.List getMes * repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1; */ @java.lang.Override - public java.util.List + public java.util.List getMessagesOrBuilderList() { return messages_; } /** - * - * *
    * Messages from the topic partition.
    * 
@@ -113,8 +87,6 @@ public int getMessagesCount() { return messages_.size(); } /** - * - * *
    * Messages from the topic partition.
    * 
@@ -126,8 +98,6 @@ public com.google.cloud.pubsublite.proto.SequencedMessage getMessages(int index) return messages_.get(index); } /** - * - * *
    * Messages from the topic partition.
    * 
@@ -141,7 +111,6 @@ public com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder getMessagesOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,7 +122,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < messages_.size(); i++) { output.writeMessage(1, messages_.get(i)); } @@ -167,7 +137,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < messages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, messages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, messages_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,15 +148,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.MessageResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.MessageResponse other = - (com.google.cloud.pubsublite.proto.MessageResponse) obj; + com.google.cloud.pubsublite.proto.MessageResponse other = (com.google.cloud.pubsublite.proto.MessageResponse) obj; - if (!getMessagesList().equals(other.getMessagesList())) return false; + if (!getMessagesList() + .equals(other.getMessagesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -207,103 +178,98 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.MessageResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.MessageResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.MessageResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.MessageResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.MessageResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.MessageResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.MessageResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.MessageResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.MessageResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.MessageResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.MessageResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.MessageResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.MessageResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.MessageResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.pubsublite.proto.MessageResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response containing a list of messages. Upon delivering a MessageResponse to
    * the client, the server:
@@ -315,32 +281,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.MessageResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.MessageResponse)
       com.google.cloud.pubsublite.proto.MessageResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.MessageResponse.class,
-              com.google.cloud.pubsublite.proto.MessageResponse.Builder.class);
+              com.google.cloud.pubsublite.proto.MessageResponse.class, com.google.cloud.pubsublite.proto.MessageResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.MessageResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -356,9 +323,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor;
     }
 
     @java.lang.Override
@@ -377,18 +344,14 @@ public com.google.cloud.pubsublite.proto.MessageResponse build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.MessageResponse buildPartial() {
-      com.google.cloud.pubsublite.proto.MessageResponse result =
-          new com.google.cloud.pubsublite.proto.MessageResponse(this);
+      com.google.cloud.pubsublite.proto.MessageResponse result = new com.google.cloud.pubsublite.proto.MessageResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.pubsublite.proto.MessageResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.pubsublite.proto.MessageResponse result) {
       if (messagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           messages_ = java.util.Collections.unmodifiableList(messages_);
@@ -408,39 +371,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.MessageResponse res
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.pubsublite.proto.MessageResponse) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.MessageResponse) other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.MessageResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -448,8 +410,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.MessageResponse other) {
-      if (other == com.google.cloud.pubsublite.proto.MessageResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.pubsublite.proto.MessageResponse.getDefaultInstance()) return this;
       if (messagesBuilder_ == null) {
         if (!other.messages_.isEmpty()) {
           if (messages_.isEmpty()) {
@@ -468,10 +429,9 @@ public Builder mergeFrom(com.google.cloud.pubsublite.proto.MessageResponse other
             messagesBuilder_ = null;
             messages_ = other.messages_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            messagesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getMessagesFieldBuilder()
-                    : null;
+            messagesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getMessagesFieldBuilder() : null;
           } else {
             messagesBuilder_.addAllMessages(other.messages_);
           }
@@ -503,27 +463,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.pubsublite.proto.SequencedMessage m =
-                    input.readMessage(
-                        com.google.cloud.pubsublite.proto.SequencedMessage.parser(),
-                        extensionRegistry);
-                if (messagesBuilder_ == null) {
-                  ensureMessagesIsMutable();
-                  messages_.add(m);
-                } else {
-                  messagesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.pubsublite.proto.SequencedMessage m =
+                  input.readMessage(
+                      com.google.cloud.pubsublite.proto.SequencedMessage.parser(),
+                      extensionRegistry);
+              if (messagesBuilder_ == null) {
+                ensureMessagesIsMutable();
+                messages_.add(m);
+              } else {
+                messagesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -533,29 +491,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List messages_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureMessagesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        messages_ =
-            new java.util.ArrayList(messages_);
+        messages_ = new java.util.ArrayList(messages_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.SequencedMessage,
-            com.google.cloud.pubsublite.proto.SequencedMessage.Builder,
-            com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder>
-        messagesBuilder_;
+        com.google.cloud.pubsublite.proto.SequencedMessage, com.google.cloud.pubsublite.proto.SequencedMessage.Builder, com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder> messagesBuilder_;
 
     /**
-     *
-     *
      * 
      * Messages from the topic partition.
      * 
@@ -570,8 +520,6 @@ public java.util.List getMes } } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -586,8 +534,6 @@ public int getMessagesCount() { } } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -602,8 +548,6 @@ public com.google.cloud.pubsublite.proto.SequencedMessage getMessages(int index) } } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -625,8 +569,6 @@ public Builder setMessages( return this; } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -645,8 +587,6 @@ public Builder setMessages( return this; } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -667,8 +607,6 @@ public Builder addMessages(com.google.cloud.pubsublite.proto.SequencedMessage va return this; } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -690,8 +628,6 @@ public Builder addMessages( return this; } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -710,8 +646,6 @@ public Builder addMessages( return this; } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -730,8 +664,6 @@ public Builder addMessages( return this; } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -742,7 +674,8 @@ public Builder addAllMessages( java.lang.Iterable values) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, messages_); onChanged(); } else { messagesBuilder_.addAllMessages(values); @@ -750,8 +683,6 @@ public Builder addAllMessages( return this; } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -769,8 +700,6 @@ public Builder clearMessages() { return this; } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -788,8 +717,6 @@ public Builder removeMessages(int index) { return this; } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -801,8 +728,6 @@ public com.google.cloud.pubsublite.proto.SequencedMessage.Builder getMessagesBui return getMessagesFieldBuilder().getBuilder(index); } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -812,22 +737,19 @@ public com.google.cloud.pubsublite.proto.SequencedMessage.Builder getMessagesBui public com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder getMessagesOrBuilder( int index) { if (messagesBuilder_ == null) { - return messages_.get(index); - } else { + return messages_.get(index); } else { return messagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Messages from the topic partition.
      * 
* * repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1; */ - public java.util.List - getMessagesOrBuilderList() { + public java.util.List + getMessagesOrBuilderList() { if (messagesBuilder_ != null) { return messagesBuilder_.getMessageOrBuilderList(); } else { @@ -835,8 +757,6 @@ public com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder getMessagesOr } } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -844,12 +764,10 @@ public com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder getMessagesOr * repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1; */ public com.google.cloud.pubsublite.proto.SequencedMessage.Builder addMessagesBuilder() { - return getMessagesFieldBuilder() - .addBuilder(com.google.cloud.pubsublite.proto.SequencedMessage.getDefaultInstance()); + return getMessagesFieldBuilder().addBuilder( + com.google.cloud.pubsublite.proto.SequencedMessage.getDefaultInstance()); } /** - * - * *
      * Messages from the topic partition.
      * 
@@ -858,43 +776,37 @@ public com.google.cloud.pubsublite.proto.SequencedMessage.Builder addMessagesBui */ public com.google.cloud.pubsublite.proto.SequencedMessage.Builder addMessagesBuilder( int index) { - return getMessagesFieldBuilder() - .addBuilder( - index, com.google.cloud.pubsublite.proto.SequencedMessage.getDefaultInstance()); + return getMessagesFieldBuilder().addBuilder( + index, com.google.cloud.pubsublite.proto.SequencedMessage.getDefaultInstance()); } /** - * - * *
      * Messages from the topic partition.
      * 
* * repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1; */ - public java.util.List - getMessagesBuilderList() { + public java.util.List + getMessagesBuilderList() { return getMessagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.SequencedMessage, - com.google.cloud.pubsublite.proto.SequencedMessage.Builder, - com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder> + com.google.cloud.pubsublite.proto.SequencedMessage, com.google.cloud.pubsublite.proto.SequencedMessage.Builder, com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder> getMessagesFieldBuilder() { if (messagesBuilder_ == null) { - messagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.pubsublite.proto.SequencedMessage, - com.google.cloud.pubsublite.proto.SequencedMessage.Builder, - com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder>( - messages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + messagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.pubsublite.proto.SequencedMessage, com.google.cloud.pubsublite.proto.SequencedMessage.Builder, com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder>( + messages_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); messages_ = null; } return messagesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -904,12 +816,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.MessageResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.MessageResponse) private static final com.google.cloud.pubsublite.proto.MessageResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.MessageResponse(); } @@ -918,27 +830,27 @@ public static com.google.cloud.pubsublite.proto.MessageResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MessageResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MessageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -953,4 +865,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.MessageResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponseOrBuilder.java similarity index 65% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponseOrBuilder.java index 270e3fe79..f8fc8ffff 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/MessageResponseOrBuilder.java @@ -1,42 +1,23 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface MessageResponseOrBuilder - extends +public interface MessageResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.MessageResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Messages from the topic partition.
    * 
* * repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1; */ - java.util.List getMessagesList(); + java.util.List + getMessagesList(); /** - * - * *
    * Messages from the topic partition.
    * 
@@ -45,8 +26,6 @@ public interface MessageResponseOrBuilder */ com.google.cloud.pubsublite.proto.SequencedMessage getMessages(int index); /** - * - * *
    * Messages from the topic partition.
    * 
@@ -55,24 +34,21 @@ public interface MessageResponseOrBuilder */ int getMessagesCount(); /** - * - * *
    * Messages from the topic partition.
    * 
* * repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1; */ - java.util.List + java.util.List getMessagesOrBuilderList(); /** - * - * *
    * Messages from the topic partition.
    * 
* * repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1; */ - com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder getMessagesOrBuilder(int index); + com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder getMessagesOrBuilder( + int index); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadata.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadata.java similarity index 71% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadata.java index a4e58e23b..b90737112 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadata.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -20,24 +5,21 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Metadata for long running operations.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -45,37 +27,33 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.OperationMetadata.class, - com.google.cloud.pubsublite.proto.OperationMetadata.Builder.class); + com.google.cloud.pubsublite.proto.OperationMetadata.class, com.google.cloud.pubsublite.proto.OperationMetadata.Builder.class); } private int bitField0_; public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -83,14 +61,11 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ @java.lang.Override @@ -98,8 +73,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The time the operation was created.
    * 
@@ -114,15 +87,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time the operation finished running. Not set if the operation has not
    * completed.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -130,15 +100,12 @@ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * The time the operation finished running. Not set if the operation has not
    * completed.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -146,8 +113,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time the operation finished running. Not set if the operation has not
    * completed.
@@ -161,12 +126,9 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   public static final int TARGET_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object target_ = "";
   /**
-   *
-   *
    * 
    * Resource path for the target of the operation. For example, targets of
    * seeks are subscription resources, structured like:
@@ -174,7 +136,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
    * 
* * string target = 3; - * * @return The target. */ @java.lang.Override @@ -183,15 +144,14 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Resource path for the target of the operation. For example, targets of
    * seeks are subscription resources, structured like:
@@ -199,15 +159,16 @@ public java.lang.String getTarget() {
    * 
* * string target = 3; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -216,18 +177,14 @@ public com.google.protobuf.ByteString getTargetBytes() { } public static final int VERB_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** - * - * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; - * * @return The verb. */ @java.lang.Override @@ -236,29 +193,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -267,7 +224,6 @@ public com.google.protobuf.ByteString getVerbBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -279,7 +235,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCreateTime()); } @@ -302,10 +259,12 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -321,24 +280,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.OperationMetadata other = - (com.google.cloud.pubsublite.proto.OperationMetadata) obj; + com.google.cloud.pubsublite.proto.OperationMetadata other = (com.google.cloud.pubsublite.proto.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -368,126 +330,119 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.OperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.pubsublite.proto.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Metadata for long running operations.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.OperationMetadata) com.google.cloud.pubsublite.proto.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.OperationMetadata.class, - com.google.cloud.pubsublite.proto.OperationMetadata.Builder.class); + com.google.cloud.pubsublite.proto.OperationMetadata.class, com.google.cloud.pubsublite.proto.OperationMetadata.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.OperationMetadata.newBuilder() @@ -495,18 +450,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); getEndTimeFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -527,9 +482,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -548,11 +503,8 @@ public com.google.cloud.pubsublite.proto.OperationMetadata build() { @java.lang.Override public com.google.cloud.pubsublite.proto.OperationMetadata buildPartial() { - com.google.cloud.pubsublite.proto.OperationMetadata result = - new com.google.cloud.pubsublite.proto.OperationMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.OperationMetadata result = new com.google.cloud.pubsublite.proto.OperationMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -561,11 +513,15 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.OperationMetadata r int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -581,39 +537,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.OperationMetadata r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.OperationMetadata) { - return mergeFrom((com.google.cloud.pubsublite.proto.OperationMetadata) other); + return mergeFrom((com.google.cloud.pubsublite.proto.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -621,8 +576,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.OperationMetadata other) { - if (other == com.google.cloud.pubsublite.proto.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -665,37 +619,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -705,52 +658,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * The time the operation was created.
      * 
@@ -771,15 +710,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -790,8 +728,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time the operation was created.
      * 
@@ -800,9 +736,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -817,8 +753,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation was created.
      * 
@@ -836,8 +770,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The time the operation was created.
      * 
@@ -850,8 +782,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time the operation was created.
      * 
@@ -862,14 +792,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * The time the operation was created.
      * 
@@ -877,17 +804,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -895,35 +819,26 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time the operation finished running. Not set if the operation has not
      * completed.
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The time the operation finished running. Not set if the operation has not
      * completed.
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -934,8 +849,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -957,8 +870,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -966,7 +877,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 2;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -977,8 +889,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -988,9 +898,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && endTime_ != null
-            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          endTime_ != null &&
+          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1005,8 +915,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -1025,8 +933,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -1040,8 +946,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -1053,12 +957,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time the operation finished running. Not set if the operation has not
      * completed.
@@ -1067,17 +970,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
@@ -1085,8 +985,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
 
     private java.lang.Object target_ = "";
     /**
-     *
-     *
      * 
      * Resource path for the target of the operation. For example, targets of
      * seeks are subscription resources, structured like:
@@ -1094,13 +992,13 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * 
* * string target = 3; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1109,8 +1007,6 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Resource path for the target of the operation. For example, targets of
      * seeks are subscription resources, structured like:
@@ -1118,14 +1014,15 @@ public java.lang.String getTarget() {
      * 
* * string target = 3; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1133,8 +1030,6 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Resource path for the target of the operation. For example, targets of
      * seeks are subscription resources, structured like:
@@ -1142,22 +1037,18 @@ public com.google.protobuf.ByteString getTargetBytes() {
      * 
* * string target = 3; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTarget( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Resource path for the target of the operation. For example, targets of
      * seeks are subscription resources, structured like:
@@ -1165,7 +1056,6 @@ public Builder setTarget(java.lang.String value) {
      * 
* * string target = 3; - * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1175,8 +1065,6 @@ public Builder clearTarget() { return this; } /** - * - * *
      * Resource path for the target of the operation. For example, targets of
      * seeks are subscription resources, structured like:
@@ -1184,14 +1072,12 @@ public Builder clearTarget() {
      * 
* * string target = 3; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1201,20 +1087,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1223,21 +1107,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1245,35 +1128,28 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerb( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; - * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1283,30 +1159,26 @@ public Builder clearVerb() { return this; } /** - * - * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1316,12 +1188,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.OperationMetadata) private static final com.google.cloud.pubsublite.proto.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.OperationMetadata(); } @@ -1330,27 +1202,27 @@ public static com.google.cloud.pubsublite.proto.OperationMetadata getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1365,4 +1237,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadataOrBuilder.java similarity index 75% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadataOrBuilder.java index 37d4c03bd..1579ed0a9 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/OperationMetadataOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The time the operation was created.
    * 
@@ -60,34 +36,26 @@ public interface OperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The time the operation finished running. Not set if the operation has not
    * completed.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time the operation finished running. Not set if the operation has not
    * completed.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time the operation finished running. Not set if the operation has not
    * completed.
@@ -98,8 +66,6 @@ public interface OperationMetadataOrBuilder
   com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Resource path for the target of the operation. For example, targets of
    * seeks are subscription resources, structured like:
@@ -107,13 +73,10 @@ public interface OperationMetadataOrBuilder
    * 
* * string target = 3; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Resource path for the target of the operation. For example, targets of
    * seeks are subscription resources, structured like:
@@ -121,33 +84,28 @@ public interface OperationMetadataOrBuilder
    * 
* * string target = 3; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignment.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignment.java similarity index 66% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignment.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignment.java index 3be55bbf9..c90c3a17e 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignment.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignment.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto @@ -20,8 +5,6 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * PartitionAssignments should not race with acknowledgements. There
  * should be exactly one unacknowledged PartitionAssignment at a time. If not,
@@ -30,94 +13,82 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.PartitionAssignment}
  */
-public final class PartitionAssignment extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class PartitionAssignment extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.PartitionAssignment)
     PartitionAssignmentOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use PartitionAssignment.newBuilder() to construct.
   private PartitionAssignment(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private PartitionAssignment() {
     partitions_ = emptyLongList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new PartitionAssignment();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.PartitionAssignment.class,
-            com.google.cloud.pubsublite.proto.PartitionAssignment.Builder.class);
+            com.google.cloud.pubsublite.proto.PartitionAssignment.class, com.google.cloud.pubsublite.proto.PartitionAssignment.Builder.class);
   }
 
   public static final int PARTITIONS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
-  private com.google.protobuf.Internal.LongList partitions_ = emptyLongList();
+  private com.google.protobuf.Internal.LongList partitions_ =
+      emptyLongList();
   /**
-   *
-   *
    * 
    * The list of partition numbers this subscriber is assigned to.
    * 
* * repeated int64 partitions = 1; - * * @return A list containing the partitions. */ @java.lang.Override - public java.util.List getPartitionsList() { + public java.util.List + getPartitionsList() { return partitions_; } /** - * - * *
    * The list of partition numbers this subscriber is assigned to.
    * 
* * repeated int64 partitions = 1; - * * @return The count of partitions. */ public int getPartitionsCount() { return partitions_.size(); } /** - * - * *
    * The list of partition numbers this subscriber is assigned to.
    * 
* * repeated int64 partitions = 1; - * * @param index The index of the element to return. * @return The partitions at the given index. */ public long getPartitions(int index) { return partitions_.getLong(index); } - private int partitionsMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -129,7 +100,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (getPartitionsList().size() > 0) { output.writeUInt32NoTag(10); @@ -150,13 +122,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < partitions_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(partitions_.getLong(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeInt64SizeNoTag(partitions_.getLong(i)); } size += dataSize; if (!getPartitionsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } partitionsMemoizedSerializedSize = dataSize; } @@ -168,15 +141,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.PartitionAssignment)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.PartitionAssignment other = - (com.google.cloud.pubsublite.proto.PartitionAssignment) obj; + com.google.cloud.pubsublite.proto.PartitionAssignment other = (com.google.cloud.pubsublite.proto.PartitionAssignment) obj; - if (!getPartitionsList().equals(other.getPartitionsList())) return false; + if (!getPartitionsList() + .equals(other.getPartitionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -198,104 +171,98 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.PartitionAssignment parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.PartitionAssignment parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.PartitionAssignment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.PartitionAssignment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.PartitionAssignment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.PartitionAssignment parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.PartitionAssignment parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.PartitionAssignment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.PartitionAssignment parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.PartitionAssignment parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.PartitionAssignment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.PartitionAssignment parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.PartitionAssignment parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.PartitionAssignment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.PartitionAssignment prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.PartitionAssignment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * PartitionAssignments should not race with acknowledgements. There
    * should be exactly one unacknowledged PartitionAssignment at a time. If not,
@@ -304,32 +271,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.PartitionAssignment}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.PartitionAssignment)
       com.google.cloud.pubsublite.proto.PartitionAssignmentOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.PartitionAssignment.class,
-              com.google.cloud.pubsublite.proto.PartitionAssignment.Builder.class);
+              com.google.cloud.pubsublite.proto.PartitionAssignment.class, com.google.cloud.pubsublite.proto.PartitionAssignment.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.PartitionAssignment.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -339,9 +307,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor;
     }
 
     @java.lang.Override
@@ -360,11 +328,8 @@ public com.google.cloud.pubsublite.proto.PartitionAssignment build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.PartitionAssignment buildPartial() {
-      com.google.cloud.pubsublite.proto.PartitionAssignment result =
-          new com.google.cloud.pubsublite.proto.PartitionAssignment(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.pubsublite.proto.PartitionAssignment result = new com.google.cloud.pubsublite.proto.PartitionAssignment(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -381,39 +346,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.PartitionAssignment
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.pubsublite.proto.PartitionAssignment) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.PartitionAssignment) other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.PartitionAssignment)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -421,8 +385,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.PartitionAssignment other) {
-      if (other == com.google.cloud.pubsublite.proto.PartitionAssignment.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.pubsublite.proto.PartitionAssignment.getDefaultInstance()) return this;
       if (!other.partitions_.isEmpty()) {
         if (partitions_.isEmpty()) {
           partitions_ = other.partitions_;
@@ -460,31 +423,28 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                long v = input.readInt64();
-                ensurePartitionsIsMutable();
-                partitions_.addLong(v);
-                break;
-              } // case 8
-            case 10:
-              {
-                int length = input.readRawVarint32();
-                int limit = input.pushLimit(length);
-                ensurePartitionsIsMutable();
-                while (input.getBytesUntilLimit() > 0) {
-                  partitions_.addLong(input.readInt64());
-                }
-                input.popLimit(limit);
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              long v = input.readInt64();
+              ensurePartitionsIsMutable();
+              partitions_.addLong(v);
+              break;
+            } // case 8
+            case 10: {
+              int length = input.readRawVarint32();
+              int limit = input.pushLimit(length);
+              ensurePartitionsIsMutable();
+              while (input.getBytesUntilLimit() > 0) {
+                partitions_.addLong(input.readInt64());
+              }
+              input.popLimit(limit);
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -494,11 +454,9 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.Internal.LongList partitions_ = emptyLongList();
-
     private void ensurePartitionsIsMutable() {
       if (!partitions_.isModifiable()) {
         partitions_ = makeMutableCopy(partitions_);
@@ -506,43 +464,35 @@ private void ensurePartitionsIsMutable() {
       bitField0_ |= 0x00000001;
     }
     /**
-     *
-     *
      * 
      * The list of partition numbers this subscriber is assigned to.
      * 
* * repeated int64 partitions = 1; - * * @return A list containing the partitions. */ - public java.util.List getPartitionsList() { + public java.util.List + getPartitionsList() { partitions_.makeImmutable(); return partitions_; } /** - * - * *
      * The list of partition numbers this subscriber is assigned to.
      * 
* * repeated int64 partitions = 1; - * * @return The count of partitions. */ public int getPartitionsCount() { return partitions_.size(); } /** - * - * *
      * The list of partition numbers this subscriber is assigned to.
      * 
* * repeated int64 partitions = 1; - * * @param index The index of the element to return. * @return The partitions at the given index. */ @@ -550,19 +500,17 @@ public long getPartitions(int index) { return partitions_.getLong(index); } /** - * - * *
      * The list of partition numbers this subscriber is assigned to.
      * 
* * repeated int64 partitions = 1; - * * @param index The index to set the value at. * @param value The partitions to set. * @return This builder for chaining. */ - public Builder setPartitions(int index, long value) { + public Builder setPartitions( + int index, long value) { ensurePartitionsIsMutable(); partitions_.setLong(index, value); @@ -571,14 +519,11 @@ public Builder setPartitions(int index, long value) { return this; } /** - * - * *
      * The list of partition numbers this subscriber is assigned to.
      * 
* * repeated int64 partitions = 1; - * * @param value The partitions to add. * @return This builder for chaining. */ @@ -591,33 +536,29 @@ public Builder addPartitions(long value) { return this; } /** - * - * *
      * The list of partition numbers this subscriber is assigned to.
      * 
* * repeated int64 partitions = 1; - * * @param values The partitions to add. * @return This builder for chaining. */ - public Builder addAllPartitions(java.lang.Iterable values) { + public Builder addAllPartitions( + java.lang.Iterable values) { ensurePartitionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partitions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, partitions_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The list of partition numbers this subscriber is assigned to.
      * 
* * repeated int64 partitions = 1; - * * @return This builder for chaining. */ public Builder clearPartitions() { @@ -626,9 +567,9 @@ public Builder clearPartitions() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -638,12 +579,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.PartitionAssignment) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.PartitionAssignment) private static final com.google.cloud.pubsublite.proto.PartitionAssignment DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.PartitionAssignment(); } @@ -652,27 +593,27 @@ public static com.google.cloud.pubsublite.proto.PartitionAssignment getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PartitionAssignment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PartitionAssignment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -687,4 +628,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.PartitionAssignment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAck.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAck.java similarity index 63% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAck.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAck.java index f67383f1b..702f7e178 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAck.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAck.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto @@ -20,8 +5,6 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Acknowledge receipt and handling of the previous assignment.
  * If not sent within a short period after receiving the assignment,
@@ -32,41 +15,39 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.PartitionAssignmentAck}
  */
-public final class PartitionAssignmentAck extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class PartitionAssignmentAck extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.PartitionAssignmentAck)
     PartitionAssignmentAckOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use PartitionAssignmentAck.newBuilder() to construct.
   private PartitionAssignmentAck(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private PartitionAssignmentAck() {}
+  private PartitionAssignmentAck() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new PartitionAssignmentAck();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.PartitionAssignmentAck.class,
-            com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder.class);
+            com.google.cloud.pubsublite.proto.PartitionAssignmentAck.class, com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -78,7 +59,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     getUnknownFields().writeTo(output);
   }
 
@@ -96,13 +78,12 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.pubsublite.proto.PartitionAssignmentAck)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.PartitionAssignmentAck other =
-        (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) obj;
+    com.google.cloud.pubsublite.proto.PartitionAssignmentAck other = (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) obj;
 
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -121,104 +102,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.pubsublite.proto.PartitionAssignmentAck prototype) {
+  public static Builder newBuilder(com.google.cloud.pubsublite.proto.PartitionAssignmentAck prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Acknowledge receipt and handling of the previous assignment.
    * If not sent within a short period after receiving the assignment,
@@ -229,32 +204,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.PartitionAssignmentAck}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.PartitionAssignmentAck)
       com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.PartitionAssignmentAck.class,
-              com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder.class);
+              com.google.cloud.pubsublite.proto.PartitionAssignmentAck.class, com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.PartitionAssignmentAck.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -262,9 +238,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor;
     }
 
     @java.lang.Override
@@ -283,8 +259,7 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAck build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.PartitionAssignmentAck buildPartial() {
-      com.google.cloud.pubsublite.proto.PartitionAssignmentAck result =
-          new com.google.cloud.pubsublite.proto.PartitionAssignmentAck(this);
+      com.google.cloud.pubsublite.proto.PartitionAssignmentAck result = new com.google.cloud.pubsublite.proto.PartitionAssignmentAck(this);
       onBuilt();
       return result;
     }
@@ -293,39 +268,38 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAck buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.pubsublite.proto.PartitionAssignmentAck) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.PartitionAssignmentAck) other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.PartitionAssignmentAck)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -333,8 +307,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.PartitionAssignmentAck other) {
-      if (other == com.google.cloud.pubsublite.proto.PartitionAssignmentAck.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.pubsublite.proto.PartitionAssignmentAck.getDefaultInstance()) return this;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -361,13 +334,12 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -377,9 +349,9 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -389,12 +361,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.PartitionAssignmentAck)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.PartitionAssignmentAck)
   private static final com.google.cloud.pubsublite.proto.PartitionAssignmentAck DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.PartitionAssignmentAck();
   }
@@ -403,27 +375,27 @@ public static com.google.cloud.pubsublite.proto.PartitionAssignmentAck getDefaul
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public PartitionAssignmentAck parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public PartitionAssignmentAck parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -438,4 +410,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.pubsublite.proto.PartitionAssignmentAck getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAckOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAckOrBuilder.java
new file mode 100644
index 000000000..cbca1419d
--- /dev/null
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAckOrBuilder.java
@@ -0,0 +1,10 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/pubsublite/v1/subscriber.proto
+
+// Protobuf Java Version: 3.25.2
+package com.google.cloud.pubsublite.proto;
+
+public interface PartitionAssignmentAckOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.PartitionAssignmentAck)
+    com.google.protobuf.MessageOrBuilder {
+}
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentOrBuilder.java
similarity index 61%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentOrBuilder.java
index b226dec4b..975c49532 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentOrBuilder.java
@@ -1,62 +1,37 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/subscriber.proto
 
 // Protobuf Java Version: 3.25.2
 package com.google.cloud.pubsublite.proto;
 
-public interface PartitionAssignmentOrBuilder
-    extends
+public interface PartitionAssignmentOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.PartitionAssignment)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The list of partition numbers this subscriber is assigned to.
    * 
* * repeated int64 partitions = 1; - * * @return A list containing the partitions. */ java.util.List getPartitionsList(); /** - * - * *
    * The list of partition numbers this subscriber is assigned to.
    * 
* * repeated int64 partitions = 1; - * * @return The count of partitions. */ int getPartitionsCount(); /** - * - * *
    * The list of partition numbers this subscriber is assigned to.
    * 
* * repeated int64 partitions = 1; - * * @param index The index of the element to return. * @return The partitions at the given index. */ diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequest.java similarity index 66% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequest.java index 31c9f6b8d..76297711b 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto @@ -20,61 +5,54 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * A request on the PartitionAssignment stream.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.PartitionAssignmentRequest} */ -public final class PartitionAssignmentRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PartitionAssignmentRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.PartitionAssignmentRequest) PartitionAssignmentRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PartitionAssignmentRequest.newBuilder() to construct. private PartitionAssignmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private PartitionAssignmentRequest() {} + private PartitionAssignmentRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PartitionAssignmentRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.class, - com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.Builder.class); + com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.class, com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.Builder.class); } private int requestCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object request_; - public enum RequestCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INITIAL(1), ACK(2), REQUEST_NOT_SET(0); private final int value; - private RequestCase(int value) { this.value = value; } @@ -90,36 +68,30 @@ public static RequestCase valueOf(int value) { public static RequestCase forNumber(int value) { switch (value) { - case 1: - return INITIAL; - case 2: - return ACK; - case 0: - return REQUEST_NOT_SET; - default: - return null; + case 1: return INITIAL; + case 2: return ACK; + case 0: return REQUEST_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public RequestCase getRequestCase() { - return RequestCase.forNumber(requestCase_); + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); } public static final int INITIAL_FIELD_NUMBER = 1; /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; - * * @return Whether the initial field is set. */ @java.lang.Override @@ -127,26 +99,21 @@ public boolean hasInitial() { return requestCase_ == 1; } /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; - * * @return The initial. */ @java.lang.Override public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest getInitial() { if (requestCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_; + return (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_; } return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.getDefaultInstance(); } /** - * - * *
    * Initial request on the stream.
    * 
@@ -154,24 +121,20 @@ public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest getIn * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder - getInitialOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder getInitialOrBuilder() { if (requestCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_; + return (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_; } return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.getDefaultInstance(); } public static final int ACK_FIELD_NUMBER = 2; /** - * - * *
    * Acknowledgement of a partition assignment.
    * 
* * .google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2; - * * @return Whether the ack field is set. */ @java.lang.Override @@ -179,26 +142,21 @@ public boolean hasAck() { return requestCase_ == 2; } /** - * - * *
    * Acknowledgement of a partition assignment.
    * 
* * .google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2; - * * @return The ack. */ @java.lang.Override public com.google.cloud.pubsublite.proto.PartitionAssignmentAck getAck() { if (requestCase_ == 2) { - return (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_; + return (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_; } return com.google.cloud.pubsublite.proto.PartitionAssignmentAck.getDefaultInstance(); } /** - * - * *
    * Acknowledgement of a partition assignment.
    * 
@@ -208,13 +166,12 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAck getAck() { @java.lang.Override public com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder getAckOrBuilder() { if (requestCase_ == 2) { - return (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_; + return (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_; } return com.google.cloud.pubsublite.proto.PartitionAssignmentAck.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,10 +183,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (requestCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_); + output.writeMessage(1, (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_); } if (requestCase_ == 2) { output.writeMessage(2, (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_); @@ -244,14 +201,12 @@ public int getSerializedSize() { size = 0; if (requestCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_); } if (requestCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -261,21 +216,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.PartitionAssignmentRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.PartitionAssignmentRequest other = - (com.google.cloud.pubsublite.proto.PartitionAssignmentRequest) obj; + com.google.cloud.pubsublite.proto.PartitionAssignmentRequest other = (com.google.cloud.pubsublite.proto.PartitionAssignmentRequest) obj; if (!getRequestCase().equals(other.getRequestCase())) return false; switch (requestCase_) { case 1: - if (!getInitial().equals(other.getInitial())) return false; + if (!getInitial() + .equals(other.getInitial())) return false; break; case 2: - if (!getAck().equals(other.getAck())) return false; + if (!getAck() + .equals(other.getAck())) return false; break; case 0: default: @@ -309,136 +265,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.PartitionAssignmentRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.PartitionAssignmentRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A request on the PartitionAssignment stream.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.PartitionAssignmentRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.PartitionAssignmentRequest) com.google.cloud.pubsublite.proto.PartitionAssignmentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.class, - com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.Builder.class); + com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.class, com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -455,14 +406,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.PartitionAssignmentRequest - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.PartitionAssignmentRequest getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.getDefaultInstance(); } @@ -477,29 +427,26 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.PartitionAssignmentRequest buildPartial() { - com.google.cloud.pubsublite.proto.PartitionAssignmentRequest result = - new com.google.cloud.pubsublite.proto.PartitionAssignmentRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.PartitionAssignmentRequest result = new com.google.cloud.pubsublite.proto.PartitionAssignmentRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.PartitionAssignmentRequest result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.PartitionAssignmentRequest result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.pubsublite.proto.PartitionAssignmentRequest result) { + private void buildPartialOneofs(com.google.cloud.pubsublite.proto.PartitionAssignmentRequest result) { result.requestCase_ = requestCase_; result.request_ = this.request_; - if (requestCase_ == 1 && initialBuilder_ != null) { + if (requestCase_ == 1 && + initialBuilder_ != null) { result.request_ = initialBuilder_.build(); } - if (requestCase_ == 2 && ackBuilder_ != null) { + if (requestCase_ == 2 && + ackBuilder_ != null) { result.request_ = ackBuilder_.build(); } } @@ -508,39 +455,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.PartitionAssignmentRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.PartitionAssignmentRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.PartitionAssignmentRequest)other); } else { super.mergeFrom(other); return this; @@ -548,24 +494,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.PartitionAssignmentRequest other) { - if (other - == com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.PartitionAssignmentRequest.getDefaultInstance()) return this; switch (other.getRequestCase()) { - case INITIAL: - { - mergeInitial(other.getInitial()); - break; - } - case ACK: - { - mergeAck(other.getAck()); - break; - } - case REQUEST_NOT_SET: - { - break; - } + case INITIAL: { + mergeInitial(other.getInitial()); + break; + } + case ACK: { + mergeAck(other.getAck()); + break; + } + case REQUEST_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -593,25 +534,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getInitialFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getAckFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getInitialFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getAckFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -621,12 +563,12 @@ public Builder mergeFrom( } // finally return this; } - private int requestCase_ = 0; private java.lang.Object request_; - - public RequestCase getRequestCase() { - return RequestCase.forNumber(requestCase_); + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); } public Builder clearRequest() { @@ -639,19 +581,13 @@ public Builder clearRequest() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest, - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder, - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder> - initialBuilder_; + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest, com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder, com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder> initialBuilder_; /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; - * * @return Whether the initial field is set. */ @java.lang.Override @@ -659,14 +595,11 @@ public boolean hasInitial() { return requestCase_ == 1; } /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; - * * @return The initial. */ @java.lang.Override @@ -675,27 +608,22 @@ public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest getIn if (requestCase_ == 1) { return (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_; } - return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest - .getDefaultInstance(); + return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.getDefaultInstance(); } else { if (requestCase_ == 1) { return initialBuilder_.getMessage(); } - return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest - .getDefaultInstance(); + return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.getDefaultInstance(); } } /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; */ - public Builder setInitial( - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest value) { + public Builder setInitial(com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest value) { if (initialBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -709,8 +637,6 @@ public Builder setInitial( return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -718,8 +644,7 @@ public Builder setInitial( * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; */ public Builder setInitial( - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder - builderForValue) { + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder builderForValue) { if (initialBuilder_ == null) { request_ = builderForValue.build(); onChanged(); @@ -730,27 +655,18 @@ public Builder setInitial( return this; } /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; */ - public Builder mergeInitial( - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest value) { + public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest value) { if (initialBuilder_ == null) { - if (requestCase_ == 1 - && request_ - != com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest - .getDefaultInstance()) { - request_ = - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.newBuilder( - (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) - request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 1 && + request_ != com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.getDefaultInstance()) { + request_ = com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.newBuilder((com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -766,8 +682,6 @@ public Builder mergeInitial( return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -791,21 +705,16 @@ public Builder clearInitial() { return this; } /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; */ - public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder - getInitialBuilder() { + public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder getInitialBuilder() { return getInitialFieldBuilder().getBuilder(); } /** - * - * *
      * Initial request on the stream.
      * 
@@ -813,21 +722,17 @@ public Builder clearInitial() { * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder - getInitialOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder getInitialOrBuilder() { if ((requestCase_ == 1) && (initialBuilder_ != null)) { return initialBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 1) { return (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_; } - return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest - .getDefaultInstance(); + return com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.getDefaultInstance(); } } /** - * - * *
      * Initial request on the stream.
      * 
@@ -835,21 +740,14 @@ public Builder clearInitial() { * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest, - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder, - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder> + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest, com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder, com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder> getInitialFieldBuilder() { if (initialBuilder_ == null) { if (!(requestCase_ == 1)) { - request_ = - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest - .getDefaultInstance(); + request_ = com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.getDefaultInstance(); } - initialBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest, - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder, - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder>( + initialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest, com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest.Builder, com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder>( (com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest) request_, getParentForChildren(), isClean()); @@ -861,19 +759,13 @@ public Builder clearInitial() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.PartitionAssignmentAck, - com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder, - com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder> - ackBuilder_; + com.google.cloud.pubsublite.proto.PartitionAssignmentAck, com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder, com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder> ackBuilder_; /** - * - * *
      * Acknowledgement of a partition assignment.
      * 
* * .google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2; - * * @return Whether the ack field is set. */ @java.lang.Override @@ -881,14 +773,11 @@ public boolean hasAck() { return requestCase_ == 2; } /** - * - * *
      * Acknowledgement of a partition assignment.
      * 
* * .google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2; - * * @return The ack. */ @java.lang.Override @@ -906,8 +795,6 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAck getAck() { } } /** - * - * *
      * Acknowledgement of a partition assignment.
      * 
@@ -928,8 +815,6 @@ public Builder setAck(com.google.cloud.pubsublite.proto.PartitionAssignmentAck v return this; } /** - * - * *
      * Acknowledgement of a partition assignment.
      * 
@@ -948,8 +833,6 @@ public Builder setAck( return this; } /** - * - * *
      * Acknowledgement of a partition assignment.
      * 
@@ -958,14 +841,10 @@ public Builder setAck( */ public Builder mergeAck(com.google.cloud.pubsublite.proto.PartitionAssignmentAck value) { if (ackBuilder_ == null) { - if (requestCase_ == 2 - && request_ - != com.google.cloud.pubsublite.proto.PartitionAssignmentAck.getDefaultInstance()) { - request_ = - com.google.cloud.pubsublite.proto.PartitionAssignmentAck.newBuilder( - (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 2 && + request_ != com.google.cloud.pubsublite.proto.PartitionAssignmentAck.getDefaultInstance()) { + request_ = com.google.cloud.pubsublite.proto.PartitionAssignmentAck.newBuilder((com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -981,8 +860,6 @@ public Builder mergeAck(com.google.cloud.pubsublite.proto.PartitionAssignmentAck return this; } /** - * - * *
      * Acknowledgement of a partition assignment.
      * 
@@ -1006,8 +883,6 @@ public Builder clearAck() { return this; } /** - * - * *
      * Acknowledgement of a partition assignment.
      * 
@@ -1018,8 +893,6 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder getAckBu return getAckFieldBuilder().getBuilder(); } /** - * - * *
      * Acknowledgement of a partition assignment.
      * 
@@ -1038,8 +911,6 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder getAckO } } /** - * - * *
      * Acknowledgement of a partition assignment.
      * 
@@ -1047,19 +918,14 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder getAckO * .google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.PartitionAssignmentAck, - com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder, - com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder> + com.google.cloud.pubsublite.proto.PartitionAssignmentAck, com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder, com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder> getAckFieldBuilder() { if (ackBuilder_ == null) { if (!(requestCase_ == 2)) { request_ = com.google.cloud.pubsublite.proto.PartitionAssignmentAck.getDefaultInstance(); } - ackBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.PartitionAssignmentAck, - com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder, - com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder>( + ackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.PartitionAssignmentAck, com.google.cloud.pubsublite.proto.PartitionAssignmentAck.Builder, com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder>( (com.google.cloud.pubsublite.proto.PartitionAssignmentAck) request_, getParentForChildren(), isClean()); @@ -1069,9 +935,9 @@ public com.google.cloud.pubsublite.proto.PartitionAssignmentAckOrBuilder getAckO onChanged(); return ackBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1081,13 +947,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.PartitionAssignmentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.PartitionAssignmentRequest) - private static final com.google.cloud.pubsublite.proto.PartitionAssignmentRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.PartitionAssignmentRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.PartitionAssignmentRequest(); } @@ -1096,27 +961,27 @@ public static com.google.cloud.pubsublite.proto.PartitionAssignmentRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PartitionAssignmentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PartitionAssignmentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1131,4 +996,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.pubsublite.proto.PartitionAssignmentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequestOrBuilder.java similarity index 71% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequestOrBuilder.java index 6f9ebc5cb..b790b7539 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentRequestOrBuilder.java @@ -1,92 +1,59 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface PartitionAssignmentRequestOrBuilder - extends +public interface PartitionAssignmentRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.PartitionAssignmentRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; - * * @return Whether the initial field is set. */ boolean hasInitial(); /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; - * * @return The initial. */ com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequest getInitial(); /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1; */ - com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder - getInitialOrBuilder(); + com.google.cloud.pubsublite.proto.InitialPartitionAssignmentRequestOrBuilder getInitialOrBuilder(); /** - * - * *
    * Acknowledgement of a partition assignment.
    * 
* * .google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2; - * * @return Whether the ack field is set. */ boolean hasAck(); /** - * - * *
    * Acknowledgement of a partition assignment.
    * 
* * .google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2; - * * @return The ack. */ com.google.cloud.pubsublite.proto.PartitionAssignmentAck getAck(); /** - * - * *
    * Acknowledgement of a partition assignment.
    * 
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursor.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursor.java similarity index 66% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursor.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursor.java index 6ccbeeb0d..066a7a91a 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursor.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursor.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto @@ -20,59 +5,53 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * A pair of a Cursor and the partition it is for.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.PartitionCursor} */ -public final class PartitionCursor extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PartitionCursor extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.PartitionCursor) PartitionCursorOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PartitionCursor.newBuilder() to construct. private PartitionCursor(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private PartitionCursor() {} + private PartitionCursor() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PartitionCursor(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PartitionCursor.class, - com.google.cloud.pubsublite.proto.PartitionCursor.Builder.class); + com.google.cloud.pubsublite.proto.PartitionCursor.class, com.google.cloud.pubsublite.proto.PartitionCursor.Builder.class); } private int bitField0_; public static final int PARTITION_FIELD_NUMBER = 1; private long partition_ = 0L; /** - * - * *
    * The partition this is for.
    * 
* * int64 partition = 1; - * * @return The partition. */ @java.lang.Override @@ -83,14 +62,11 @@ public long getPartition() { public static final int CURSOR_FIELD_NUMBER = 2; private com.google.cloud.pubsublite.proto.Cursor cursor_; /** - * - * *
    * The value of the cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; - * * @return Whether the cursor field is set. */ @java.lang.Override @@ -98,25 +74,18 @@ public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The value of the cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; - * * @return The cursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getCursor() { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } /** - * - * *
    * The value of the cursor.
    * 
@@ -125,13 +94,10 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() { */ @java.lang.Override public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -143,7 +109,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (partition_ != 0L) { output.writeInt64(1, partition_); } @@ -160,10 +127,12 @@ public int getSerializedSize() { size = 0; if (partition_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, partition_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, partition_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCursor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCursor()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -173,18 +142,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.PartitionCursor)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.PartitionCursor other = - (com.google.cloud.pubsublite.proto.PartitionCursor) obj; + com.google.cloud.pubsublite.proto.PartitionCursor other = (com.google.cloud.pubsublite.proto.PartitionCursor) obj; - if (getPartition() != other.getPartition()) return false; + if (getPartition() + != other.getPartition()) return false; if (hasCursor() != other.hasCursor()) return false; if (hasCursor()) { - if (!getCursor().equals(other.getCursor())) return false; + if (!getCursor() + .equals(other.getCursor())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -198,7 +168,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARTITION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartition()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPartition()); if (hasCursor()) { hash = (37 * hash) + CURSOR_FIELD_NUMBER; hash = (53 * hash) + getCursor().hashCode(); @@ -209,126 +180,119 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.PartitionCursor parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.PartitionCursor parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.PartitionCursor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.PartitionCursor parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.PartitionCursor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.PartitionCursor parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.PartitionCursor parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.PartitionCursor parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.PartitionCursor parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.PartitionCursor parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.PartitionCursor parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.PartitionCursor parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.PartitionCursor parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.PartitionCursor parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.pubsublite.proto.PartitionCursor prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A pair of a Cursor and the partition it is for.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.PartitionCursor} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.PartitionCursor) com.google.cloud.pubsublite.proto.PartitionCursorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PartitionCursor.class, - com.google.cloud.pubsublite.proto.PartitionCursor.Builder.class); + com.google.cloud.pubsublite.proto.PartitionCursor.class, com.google.cloud.pubsublite.proto.PartitionCursor.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.PartitionCursor.newBuilder() @@ -336,17 +300,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCursorFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -361,9 +325,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor; } @java.lang.Override @@ -382,11 +346,8 @@ public com.google.cloud.pubsublite.proto.PartitionCursor build() { @java.lang.Override public com.google.cloud.pubsublite.proto.PartitionCursor buildPartial() { - com.google.cloud.pubsublite.proto.PartitionCursor result = - new com.google.cloud.pubsublite.proto.PartitionCursor(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.PartitionCursor result = new com.google.cloud.pubsublite.proto.PartitionCursor(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -398,7 +359,9 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.PartitionCursor res } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build(); + result.cursor_ = cursorBuilder_ == null + ? cursor_ + : cursorBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -408,39 +371,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.PartitionCursor res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.PartitionCursor) { - return mergeFrom((com.google.cloud.pubsublite.proto.PartitionCursor) other); + return mergeFrom((com.google.cloud.pubsublite.proto.PartitionCursor)other); } else { super.mergeFrom(other); return this; @@ -448,8 +410,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.PartitionCursor other) { - if (other == com.google.cloud.pubsublite.proto.PartitionCursor.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.PartitionCursor.getDefaultInstance()) return this; if (other.getPartition() != 0L) { setPartition(other.getPartition()); } @@ -482,25 +443,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - partition_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage(getCursorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + partition_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getCursorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -510,19 +470,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long partition_; + private long partition_ ; /** - * - * *
      * The partition this is for.
      * 
* * int64 partition = 1; - * * @return The partition. */ @java.lang.Override @@ -530,14 +486,11 @@ public long getPartition() { return partition_; } /** - * - * *
      * The partition this is for.
      * 
* * int64 partition = 1; - * * @param value The partition to set. * @return This builder for chaining. */ @@ -549,14 +502,11 @@ public Builder setPartition(long value) { return this; } /** - * - * *
      * The partition this is for.
      * 
* * int64 partition = 1; - * * @return This builder for chaining. */ public Builder clearPartition() { @@ -568,47 +518,34 @@ public Builder clearPartition() { private com.google.cloud.pubsublite.proto.Cursor cursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> - cursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> cursorBuilder_; /** - * - * *
      * The value of the cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; - * * @return Whether the cursor field is set. */ public boolean hasCursor() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The value of the cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; - * * @return The cursor. */ public com.google.cloud.pubsublite.proto.Cursor getCursor() { if (cursorBuilder_ == null) { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } else { return cursorBuilder_.getMessage(); } } /** - * - * *
      * The value of the cursor.
      * 
@@ -629,15 +566,14 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The value of the cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; */ - public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { + public Builder setCursor( + com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { if (cursorBuilder_ == null) { cursor_ = builderForValue.build(); } else { @@ -648,8 +584,6 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde return this; } /** - * - * *
      * The value of the cursor.
      * 
@@ -658,9 +592,9 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde */ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { if (cursorBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && cursor_ != null - && cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + cursor_ != null && + cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { getCursorBuilder().mergeFrom(value); } else { cursor_ = value; @@ -675,8 +609,6 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The value of the cursor.
      * 
@@ -694,8 +626,6 @@ public Builder clearCursor() { return this; } /** - * - * *
      * The value of the cursor.
      * 
@@ -708,8 +638,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() { return getCursorFieldBuilder().getBuilder(); } /** - * - * *
      * The value of the cursor.
      * 
@@ -720,14 +648,11 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { if (cursorBuilder_ != null) { return cursorBuilder_.getMessageOrBuilder(); } else { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? + com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } } /** - * - * *
      * The value of the cursor.
      * 
@@ -735,24 +660,21 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { * .google.cloud.pubsublite.v1.Cursor cursor = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> getCursorFieldBuilder() { if (cursorBuilder_ == null) { - cursorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder>( - getCursor(), getParentForChildren(), isClean()); + cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>( + getCursor(), + getParentForChildren(), + isClean()); cursor_ = null; } return cursorBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -762,12 +684,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.PartitionCursor) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.PartitionCursor) private static final com.google.cloud.pubsublite.proto.PartitionCursor DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.PartitionCursor(); } @@ -776,27 +698,27 @@ public static com.google.cloud.pubsublite.proto.PartitionCursor getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PartitionCursor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PartitionCursor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -811,4 +733,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.PartitionCursor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursorOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursorOrBuilder.java similarity index 61% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursorOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursorOrBuilder.java index aafe1012f..1244a0142 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursorOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionCursorOrBuilder.java @@ -1,69 +1,42 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface PartitionCursorOrBuilder - extends +public interface PartitionCursorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.PartitionCursor) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The partition this is for.
    * 
* * int64 partition = 1; - * * @return The partition. */ long getPartition(); /** - * - * *
    * The value of the cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; - * * @return Whether the cursor field is set. */ boolean hasCursor(); /** - * - * *
    * The value of the cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; - * * @return The cursor. */ com.google.cloud.pubsublite.proto.Cursor getCursor(); /** - * - * *
    * The value of the cursor.
    * 
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessage.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessage.java similarity index 65% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessage.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessage.java index 52c04ed39..365e71335 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessage.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessage.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/common.proto @@ -20,24 +5,21 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * A message that is published by publishers and delivered to subscribers.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.PubSubMessage} */ -public final class PubSubMessage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PubSubMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.PubSubMessage) PubSubMessageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PubSubMessage.newBuilder() to construct. private PubSubMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PubSubMessage() { key_ = com.google.protobuf.ByteString.EMPTY; data_ = com.google.protobuf.ByteString.EMPTY; @@ -45,13 +27,14 @@ private PubSubMessage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PubSubMessage(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -62,26 +45,22 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 3: return internalGetAttributes(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PubSubMessage.class, - com.google.cloud.pubsublite.proto.PubSubMessage.Builder.class); + com.google.cloud.pubsublite.proto.PubSubMessage.class, com.google.cloud.pubsublite.proto.PubSubMessage.Builder.class); } private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * The key used for routing messages to partitions or for compaction (e.g.,
    * keep the last N messages per key). If the key is empty, the message is
@@ -89,7 +68,6 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
    * 
* * bytes key = 1; - * * @return The key. */ @java.lang.Override @@ -100,14 +78,11 @@ public com.google.protobuf.ByteString getKey() { public static final int DATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * The payload of the message.
    * 
* * bytes data = 2; - * * @return The data. */ @java.lang.Override @@ -116,42 +91,32 @@ public com.google.protobuf.ByteString getData() { } public static final int ATTRIBUTES_FIELD_NUMBER = 3; - private static final class AttributesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> - defaultEntry = + java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.pubsublite.proto.AttributeValues.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.pubsublite.proto.AttributeValues.getDefaultInstance()); } - @SuppressWarnings("serial") private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> - attributes_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> - internalGetAttributes() { + java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> attributes_; + private com.google.protobuf.MapField + internalGetAttributes() { if (attributes_ == null) { - return com.google.protobuf.MapField.emptyMapField(AttributesDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + AttributesDefaultEntryHolder.defaultEntry); } return attributes_; } - public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** - * - * *
    * Optional attributes that can be used for message metadata/headers.
    * 
@@ -159,22 +124,20 @@ public int getAttributesCount() { * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ @java.lang.Override - public boolean containsAttributes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAttributes( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAttributes().getMap().containsKey(key); } - /** Use {@link #getAttributesMap()} instead. */ + /** + * Use {@link #getAttributesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getAttributes() { + public java.util.Map getAttributes() { return getAttributesMap(); } /** - * - * *
    * Optional attributes that can be used for message metadata/headers.
    * 
@@ -182,13 +145,10 @@ public boolean containsAttributes(java.lang.String key) { * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ @java.lang.Override - public java.util.Map - getAttributesMap() { + public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } /** - * - * *
    * Optional attributes that can be used for message metadata/headers.
    * 
@@ -196,20 +156,17 @@ public boolean containsAttributes(java.lang.String key) { * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ @java.lang.Override - public /* nullable */ com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrDefault( + public /* nullable */ +com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.pubsublite.proto.AttributeValues defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.cloud.pubsublite.proto.AttributeValues defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional attributes that can be used for message metadata/headers.
    * 
@@ -219,9 +176,7 @@ public boolean containsAttributes(java.lang.String key) { @java.lang.Override public com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { @@ -233,14 +188,11 @@ public com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrThrow( public static final int EVENT_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp eventTime_; /** - * - * *
    * An optional, user-specified event time.
    * 
* * .google.protobuf.Timestamp event_time = 4; - * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -248,14 +200,11 @@ public boolean hasEventTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * An optional, user-specified event time.
    * 
* * .google.protobuf.Timestamp event_time = 4; - * * @return The eventTime. */ @java.lang.Override @@ -263,8 +212,6 @@ public com.google.protobuf.Timestamp getEventTime() { return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } /** - * - * *
    * An optional, user-specified event time.
    * 
@@ -277,7 +224,6 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,15 +235,20 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!key_.isEmpty()) { output.writeBytes(1, key_); } if (!data_.isEmpty()) { output.writeBytes(2, data_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 3); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAttributes(), + AttributesDefaultEntryHolder.defaultEntry, + 3); if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getEventTime()); } @@ -311,25 +262,26 @@ public int getSerializedSize() { size = 0; if (!key_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, key_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, key_); } if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, data_); - } - for (java.util.Map.Entry - entry : internalGetAttributes().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> - attributes__ = - AttributesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, attributes__); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, data_); + } + for (java.util.Map.Entry entry + : internalGetAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry + attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, attributes__); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEventTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getEventTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -339,20 +291,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.PubSubMessage)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.PubSubMessage other = - (com.google.cloud.pubsublite.proto.PubSubMessage) obj; + com.google.cloud.pubsublite.proto.PubSubMessage other = (com.google.cloud.pubsublite.proto.PubSubMessage) obj; - if (!getKey().equals(other.getKey())) return false; - if (!getData().equals(other.getData())) return false; - if (!internalGetAttributes().equals(other.internalGetAttributes())) return false; + if (!getKey() + .equals(other.getKey())) return false; + if (!getData() + .equals(other.getData())) return false; + if (!internalGetAttributes().equals( + other.internalGetAttributes())) return false; if (hasEventTime() != other.hasEventTime()) return false; if (hasEventTime()) { - if (!getEventTime().equals(other.getEventTime())) return false; + if (!getEventTime() + .equals(other.getEventTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -382,117 +337,112 @@ public int hashCode() { return hash; } - public static com.google.cloud.pubsublite.proto.PubSubMessage parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.pubsublite.proto.PubSubMessage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.PubSubMessage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.PubSubMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.PubSubMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.PubSubMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.PubSubMessage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.PubSubMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.PubSubMessage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.PubSubMessage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.PubSubMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.PubSubMessage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.PubSubMessage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.PubSubMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.pubsublite.proto.PubSubMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A message that is published by publishers and delivered to subscribers.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.PubSubMessage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.PubSubMessage) com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -502,10 +452,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 3: return internalGetAttributes(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { @@ -513,18 +463,16 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi case 3: return internalGetMutableAttributes(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PubSubMessage.class, - com.google.cloud.pubsublite.proto.PubSubMessage.Builder.class); + com.google.cloud.pubsublite.proto.PubSubMessage.class, com.google.cloud.pubsublite.proto.PubSubMessage.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.PubSubMessage.newBuilder() @@ -532,17 +480,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getEventTimeFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -559,9 +507,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor; } @java.lang.Override @@ -580,11 +528,8 @@ public com.google.cloud.pubsublite.proto.PubSubMessage build() { @java.lang.Override public com.google.cloud.pubsublite.proto.PubSubMessage buildPartial() { - com.google.cloud.pubsublite.proto.PubSubMessage result = - new com.google.cloud.pubsublite.proto.PubSubMessage(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.PubSubMessage result = new com.google.cloud.pubsublite.proto.PubSubMessage(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -598,12 +543,13 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.PubSubMessage resul result.data_ = data_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.attributes_ = - internalGetAttributes().build(AttributesDefaultEntryHolder.defaultEntry); + result.attributes_ = internalGetAttributes().build(AttributesDefaultEntryHolder.defaultEntry); } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { - result.eventTime_ = eventTimeBuilder_ == null ? eventTime_ : eventTimeBuilder_.build(); + result.eventTime_ = eventTimeBuilder_ == null + ? eventTime_ + : eventTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -613,39 +559,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.PubSubMessage resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.PubSubMessage) { - return mergeFrom((com.google.cloud.pubsublite.proto.PubSubMessage) other); + return mergeFrom((com.google.cloud.pubsublite.proto.PubSubMessage)other); } else { super.mergeFrom(other); return this; @@ -653,15 +598,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.PubSubMessage other) { - if (other == com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()) return this; if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } - internalGetMutableAttributes().mergeFrom(other.internalGetAttributes()); + internalGetMutableAttributes().mergeFrom( + other.internalGetAttributes()); bitField0_ |= 0x00000004; if (other.hasEventTime()) { mergeEventTime(other.getEventTime()); @@ -692,45 +637,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - key_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - data_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> - attributes__ = - input.readMessage( - AttributesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableAttributes() - .ensureBuilderMap() - .put(attributes__.getKey(), attributes__.getValue()); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getEventTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + key_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + data_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + com.google.protobuf.MapEntry + attributes__ = input.readMessage( + AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableAttributes().ensureBuilderMap().put( + attributes__.getKey(), attributes__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getEventTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -740,13 +678,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * The key used for routing messages to partitions or for compaction (e.g.,
      * keep the last N messages per key). If the key is empty, the message is
@@ -754,7 +689,6 @@ public Builder mergeFrom(
      * 
* * bytes key = 1; - * * @return The key. */ @java.lang.Override @@ -762,8 +696,6 @@ public com.google.protobuf.ByteString getKey() { return key_; } /** - * - * *
      * The key used for routing messages to partitions or for compaction (e.g.,
      * keep the last N messages per key). If the key is empty, the message is
@@ -771,22 +703,17 @@ public com.google.protobuf.ByteString getKey() {
      * 
* * bytes key = 1; - * * @param value The key to set. * @return This builder for chaining. */ public Builder setKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } key_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The key used for routing messages to partitions or for compaction (e.g.,
      * keep the last N messages per key). If the key is empty, the message is
@@ -794,7 +721,6 @@ public Builder setKey(com.google.protobuf.ByteString value) {
      * 
* * bytes key = 1; - * * @return This builder for chaining. */ public Builder clearKey() { @@ -806,14 +732,11 @@ public Builder clearKey() { private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * The payload of the message.
      * 
* * bytes data = 2; - * * @return The data. */ @java.lang.Override @@ -821,35 +744,27 @@ public com.google.protobuf.ByteString getData() { return data_; } /** - * - * *
      * The payload of the message.
      * 
* * bytes data = 2; - * * @param value The data to set. * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } data_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The payload of the message.
      * 
* * bytes data = 2; - * * @return This builder for chaining. */ public Builder clearData() { @@ -859,54 +774,30 @@ public Builder clearData() { return this; } - private static final class AttributesConverter - implements com.google.protobuf.MapFieldBuilder.Converter< - java.lang.String, - com.google.cloud.pubsublite.proto.AttributeValuesOrBuilder, - com.google.cloud.pubsublite.proto.AttributeValues> { + private static final class AttributesConverter implements com.google.protobuf.MapFieldBuilder.Converter { @java.lang.Override - public com.google.cloud.pubsublite.proto.AttributeValues build( - com.google.cloud.pubsublite.proto.AttributeValuesOrBuilder val) { - if (val instanceof com.google.cloud.pubsublite.proto.AttributeValues) { - return (com.google.cloud.pubsublite.proto.AttributeValues) val; - } + public com.google.cloud.pubsublite.proto.AttributeValues build(com.google.cloud.pubsublite.proto.AttributeValuesOrBuilder val) { + if (val instanceof com.google.cloud.pubsublite.proto.AttributeValues) { return (com.google.cloud.pubsublite.proto.AttributeValues) val; } return ((com.google.cloud.pubsublite.proto.AttributeValues.Builder) val).build(); } @java.lang.Override - public com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.pubsublite.proto.AttributeValues> - defaultEntry() { + public com.google.protobuf.MapEntry defaultEntry() { return AttributesDefaultEntryHolder.defaultEntry; } }; - private static final AttributesConverter attributesConverter = new AttributesConverter(); private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.pubsublite.proto.AttributeValuesOrBuilder, - com.google.cloud.pubsublite.proto.AttributeValues, - com.google.cloud.pubsublite.proto.AttributeValues.Builder> - attributes_; - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.pubsublite.proto.AttributeValuesOrBuilder, - com.google.cloud.pubsublite.proto.AttributeValues, - com.google.cloud.pubsublite.proto.AttributeValues.Builder> + java.lang.String, com.google.cloud.pubsublite.proto.AttributeValuesOrBuilder, com.google.cloud.pubsublite.proto.AttributeValues, com.google.cloud.pubsublite.proto.AttributeValues.Builder> attributes_; + private com.google.protobuf.MapFieldBuilder internalGetAttributes() { if (attributes_ == null) { return new com.google.protobuf.MapFieldBuilder<>(attributesConverter); } return attributes_; } - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.pubsublite.proto.AttributeValuesOrBuilder, - com.google.cloud.pubsublite.proto.AttributeValues, - com.google.cloud.pubsublite.proto.AttributeValues.Builder> + private com.google.protobuf.MapFieldBuilder internalGetMutableAttributes() { if (attributes_ == null) { attributes_ = new com.google.protobuf.MapFieldBuilder<>(attributesConverter); @@ -915,13 +806,10 @@ public com.google.cloud.pubsublite.proto.AttributeValues build( onChanged(); return attributes_; } - public int getAttributesCount() { return internalGetAttributes().ensureBuilderMap().size(); } /** - * - * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -929,22 +817,20 @@ public int getAttributesCount() { * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ @java.lang.Override - public boolean containsAttributes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAttributes( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAttributes().ensureBuilderMap().containsKey(key); } - /** Use {@link #getAttributesMap()} instead. */ + /** + * Use {@link #getAttributesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getAttributes() { + public java.util.Map getAttributes() { return getAttributesMap(); } /** - * - * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -952,13 +838,10 @@ public boolean containsAttributes(java.lang.String key) { * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ @java.lang.Override - public java.util.Map - getAttributesMap() { + public java.util.Map getAttributesMap() { return internalGetAttributes().getImmutableMap(); } /** - * - * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -966,20 +849,16 @@ public boolean containsAttributes(java.lang.String key) { * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ @java.lang.Override - public /* nullable */ com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrDefault( + public /* nullable */ +com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.pubsublite.proto.AttributeValues defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetMutableAttributes().ensureBuilderMap(); +com.google.cloud.pubsublite.proto.AttributeValues defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetMutableAttributes().ensureBuilderMap(); return map.containsKey(key) ? attributesConverter.build(map.get(key)) : defaultValue; } /** - * - * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -989,39 +868,35 @@ public boolean containsAttributes(java.lang.String key) { @java.lang.Override public com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetMutableAttributes().ensureBuilderMap(); + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetMutableAttributes().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return attributesConverter.build(map.get(key)); } - public Builder clearAttributes() { bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableAttributes().clear(); return this; } /** - * - * *
      * Optional attributes that can be used for message metadata/headers.
      * 
* * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ - public Builder removeAttributes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableAttributes().ensureBuilderMap().remove(key); + public Builder removeAttributes( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAttributes().ensureBuilderMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map getMutableAttributes() { @@ -1029,8 +904,6 @@ public Builder removeAttributes(java.lang.String key) { return internalGetMutableAttributes().ensureMessageMap(); } /** - * - * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -1038,20 +911,16 @@ public Builder removeAttributes(java.lang.String key) { * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ public Builder putAttributes( - java.lang.String key, com.google.cloud.pubsublite.proto.AttributeValues value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableAttributes().ensureBuilderMap().put(key, value); + java.lang.String key, + com.google.cloud.pubsublite.proto.AttributeValues value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableAttributes().ensureBuilderMap() + .put(key, value); bitField0_ |= 0x00000004; return this; } /** - * - * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -1060,19 +929,17 @@ public Builder putAttributes( */ public Builder putAllAttributes( java.util.Map values) { - for (java.util.Map.Entry - e : values.entrySet()) { + for (java.util.Map.Entry e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } - internalGetMutableAttributes().ensureBuilderMap().putAll(values); + internalGetMutableAttributes().ensureBuilderMap() + .putAll(values); bitField0_ |= 0x00000004; return this; } /** - * - * *
      * Optional attributes that can be used for message metadata/headers.
      * 
@@ -1081,8 +948,7 @@ public Builder putAllAttributes( */ public com.google.cloud.pubsublite.proto.AttributeValues.Builder putAttributesBuilderIfAbsent( java.lang.String key) { - java.util.Map - builderMap = internalGetMutableAttributes().ensureBuilderMap(); + java.util.Map builderMap = internalGetMutableAttributes().ensureBuilderMap(); com.google.cloud.pubsublite.proto.AttributeValuesOrBuilder entry = builderMap.get(key); if (entry == null) { entry = com.google.cloud.pubsublite.proto.AttributeValues.newBuilder(); @@ -1097,33 +963,24 @@ public com.google.cloud.pubsublite.proto.AttributeValues.Builder putAttributesBu private com.google.protobuf.Timestamp eventTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - eventTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> eventTimeBuilder_; /** - * - * *
      * An optional, user-specified event time.
      * 
* * .google.protobuf.Timestamp event_time = 4; - * * @return Whether the eventTime field is set. */ public boolean hasEventTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * An optional, user-specified event time.
      * 
* * .google.protobuf.Timestamp event_time = 4; - * * @return The eventTime. */ public com.google.protobuf.Timestamp getEventTime() { @@ -1134,8 +991,6 @@ public com.google.protobuf.Timestamp getEventTime() { } } /** - * - * *
      * An optional, user-specified event time.
      * 
@@ -1156,15 +1011,14 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * An optional, user-specified event time.
      * 
* * .google.protobuf.Timestamp event_time = 4; */ - public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEventTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (eventTimeBuilder_ == null) { eventTime_ = builderForValue.build(); } else { @@ -1175,8 +1029,6 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * An optional, user-specified event time.
      * 
@@ -1185,9 +1037,9 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { if (eventTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && eventTime_ != null - && eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + eventTime_ != null && + eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEventTimeBuilder().mergeFrom(value); } else { eventTime_ = value; @@ -1202,8 +1054,6 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * An optional, user-specified event time.
      * 
@@ -1221,8 +1071,6 @@ public Builder clearEventTime() { return this; } /** - * - * *
      * An optional, user-specified event time.
      * 
@@ -1235,8 +1083,6 @@ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { return getEventTimeFieldBuilder().getBuilder(); } /** - * - * *
      * An optional, user-specified event time.
      * 
@@ -1247,12 +1093,11 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { if (eventTimeBuilder_ != null) { return eventTimeBuilder_.getMessageOrBuilder(); } else { - return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + return eventTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; } } /** - * - * *
      * An optional, user-specified event time.
      * 
@@ -1260,24 +1105,21 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { * .google.protobuf.Timestamp event_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEventTimeFieldBuilder() { if (eventTimeBuilder_ == null) { - eventTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEventTime(), getParentForChildren(), isClean()); + eventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEventTime(), + getParentForChildren(), + isClean()); eventTime_ = null; } return eventTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1287,12 +1129,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.PubSubMessage) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.PubSubMessage) private static final com.google.cloud.pubsublite.proto.PubSubMessage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.PubSubMessage(); } @@ -1301,27 +1143,27 @@ public static com.google.cloud.pubsublite.proto.PubSubMessage getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PubSubMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PubSubMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1336,4 +1178,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.PubSubMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessageOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessageOrBuilder.java similarity index 72% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessageOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessageOrBuilder.java index bd2517e88..f51e50232 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessageOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PubSubMessageOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/common.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface PubSubMessageOrBuilder - extends +public interface PubSubMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.PubSubMessage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The key used for routing messages to partitions or for compaction (e.g.,
    * keep the last N messages per key). If the key is empty, the message is
@@ -34,27 +16,21 @@ public interface PubSubMessageOrBuilder
    * 
* * bytes key = 1; - * * @return The key. */ com.google.protobuf.ByteString getKey(); /** - * - * *
    * The payload of the message.
    * 
* * bytes data = 2; - * * @return The data. */ com.google.protobuf.ByteString getData(); /** - * - * *
    * Optional attributes that can be used for message metadata/headers.
    * 
@@ -63,22 +39,21 @@ public interface PubSubMessageOrBuilder */ int getAttributesCount(); /** - * - * *
    * Optional attributes that can be used for message metadata/headers.
    * 
* * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ - boolean containsAttributes(java.lang.String key); - /** Use {@link #getAttributesMap()} instead. */ + boolean containsAttributes( + java.lang.String key); + /** + * Use {@link #getAttributesMap()} instead. + */ @java.lang.Deprecated java.util.Map - getAttributes(); + getAttributes(); /** - * - * *
    * Optional attributes that can be used for message metadata/headers.
    * 
@@ -86,10 +61,8 @@ public interface PubSubMessageOrBuilder * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ java.util.Map - getAttributesMap(); + getAttributesMap(); /** - * - * *
    * Optional attributes that can be used for message metadata/headers.
    * 
@@ -97,48 +70,39 @@ public interface PubSubMessageOrBuilder * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ /* nullable */ - com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrDefault( +com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.pubsublite.proto.AttributeValues defaultValue); +com.google.cloud.pubsublite.proto.AttributeValues defaultValue); /** - * - * *
    * Optional attributes that can be used for message metadata/headers.
    * 
* * map<string, .google.cloud.pubsublite.v1.AttributeValues> attributes = 3; */ - com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrThrow(java.lang.String key); + com.google.cloud.pubsublite.proto.AttributeValues getAttributesOrThrow( + java.lang.String key); /** - * - * *
    * An optional, user-specified event time.
    * 
* * .google.protobuf.Timestamp event_time = 4; - * * @return Whether the eventTime field is set. */ boolean hasEventTime(); /** - * - * *
    * An optional, user-specified event time.
    * 
* * .google.protobuf.Timestamp event_time = 4; - * * @return The eventTime. */ com.google.protobuf.Timestamp getEventTime(); /** - * - * *
    * An optional, user-specified event time.
    * 
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequest.java similarity index 67% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequest.java index c37f4b7d0..18bf92710 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/publisher.proto @@ -20,61 +5,54 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request sent from the client to the server on a stream.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.PublishRequest} */ -public final class PublishRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PublishRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.PublishRequest) PublishRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PublishRequest.newBuilder() to construct. private PublishRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private PublishRequest() {} + private PublishRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PublishRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_PublishRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PublishRequest.class, - com.google.cloud.pubsublite.proto.PublishRequest.Builder.class); + com.google.cloud.pubsublite.proto.PublishRequest.class, com.google.cloud.pubsublite.proto.PublishRequest.Builder.class); } private int requestTypeCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object requestType_; - public enum RequestTypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INITIAL_REQUEST(1), MESSAGE_PUBLISH_REQUEST(2), REQUESTTYPE_NOT_SET(0); private final int value; - private RequestTypeCase(int value) { this.value = value; } @@ -90,36 +68,30 @@ public static RequestTypeCase valueOf(int value) { public static RequestTypeCase forNumber(int value) { switch (value) { - case 1: - return INITIAL_REQUEST; - case 2: - return MESSAGE_PUBLISH_REQUEST; - case 0: - return REQUESTTYPE_NOT_SET; - default: - return null; + case 1: return INITIAL_REQUEST; + case 2: return MESSAGE_PUBLISH_REQUEST; + case 0: return REQUESTTYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public RequestTypeCase getRequestTypeCase() { - return RequestTypeCase.forNumber(requestTypeCase_); + public RequestTypeCase + getRequestTypeCase() { + return RequestTypeCase.forNumber( + requestTypeCase_); } public static final int INITIAL_REQUEST_FIELD_NUMBER = 1; /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; - * * @return Whether the initialRequest field is set. */ @java.lang.Override @@ -127,26 +99,21 @@ public boolean hasInitialRequest() { return requestTypeCase_ == 1; } /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; - * * @return The initialRequest. */ @java.lang.Override public com.google.cloud.pubsublite.proto.InitialPublishRequest getInitialRequest() { if (requestTypeCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_; + return (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_; } return com.google.cloud.pubsublite.proto.InitialPublishRequest.getDefaultInstance(); } /** - * - * *
    * Initial request on the stream.
    * 
@@ -154,24 +121,20 @@ public com.google.cloud.pubsublite.proto.InitialPublishRequest getInitialRequest * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder - getInitialRequestOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder getInitialRequestOrBuilder() { if (requestTypeCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_; + return (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_; } return com.google.cloud.pubsublite.proto.InitialPublishRequest.getDefaultInstance(); } public static final int MESSAGE_PUBLISH_REQUEST_FIELD_NUMBER = 2; /** - * - * *
    * Request to publish messages.
    * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; - * * @return Whether the messagePublishRequest field is set. */ @java.lang.Override @@ -179,26 +142,21 @@ public boolean hasMessagePublishRequest() { return requestTypeCase_ == 2; } /** - * - * *
    * Request to publish messages.
    * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; - * * @return The messagePublishRequest. */ @java.lang.Override public com.google.cloud.pubsublite.proto.MessagePublishRequest getMessagePublishRequest() { if (requestTypeCase_ == 2) { - return (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_; + return (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_; } return com.google.cloud.pubsublite.proto.MessagePublishRequest.getDefaultInstance(); } /** - * - * *
    * Request to publish messages.
    * 
@@ -206,16 +164,14 @@ public com.google.cloud.pubsublite.proto.MessagePublishRequest getMessagePublish * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder - getMessagePublishRequestOrBuilder() { + public com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder getMessagePublishRequestOrBuilder() { if (requestTypeCase_ == 2) { - return (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_; + return (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_; } return com.google.cloud.pubsublite.proto.MessagePublishRequest.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,14 +183,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (requestTypeCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_); + output.writeMessage(1, (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_); } if (requestTypeCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_); + output.writeMessage(2, (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_); } getUnknownFields().writeTo(output); } @@ -246,14 +201,12 @@ public int getSerializedSize() { size = 0; if (requestTypeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_); } if (requestTypeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -263,21 +216,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.PublishRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.PublishRequest other = - (com.google.cloud.pubsublite.proto.PublishRequest) obj; + com.google.cloud.pubsublite.proto.PublishRequest other = (com.google.cloud.pubsublite.proto.PublishRequest) obj; if (!getRequestTypeCase().equals(other.getRequestTypeCase())) return false; switch (requestTypeCase_) { case 1: - if (!getInitialRequest().equals(other.getInitialRequest())) return false; + if (!getInitialRequest() + .equals(other.getInitialRequest())) return false; break; case 2: - if (!getMessagePublishRequest().equals(other.getMessagePublishRequest())) return false; + if (!getMessagePublishRequest() + .equals(other.getMessagePublishRequest())) return false; break; case 0: default: @@ -310,136 +264,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.pubsublite.proto.PublishRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.pubsublite.proto.PublishRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.PublishRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.PublishRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.PublishRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.PublishRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.PublishRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.PublishRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.PublishRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.PublishRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.PublishRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.PublishRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.PublishRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.PublishRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.PublishRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.pubsublite.proto.PublishRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request sent from the client to the server on a stream.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.PublishRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.PublishRequest) com.google.cloud.pubsublite.proto.PublishRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_PublishRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PublishRequest.class, - com.google.cloud.pubsublite.proto.PublishRequest.Builder.class); + com.google.cloud.pubsublite.proto.PublishRequest.class, com.google.cloud.pubsublite.proto.PublishRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.PublishRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -456,9 +406,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor; } @java.lang.Override @@ -477,11 +427,8 @@ public com.google.cloud.pubsublite.proto.PublishRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.PublishRequest buildPartial() { - com.google.cloud.pubsublite.proto.PublishRequest result = - new com.google.cloud.pubsublite.proto.PublishRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.PublishRequest result = new com.google.cloud.pubsublite.proto.PublishRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -494,10 +441,12 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.PublishRequest resu private void buildPartialOneofs(com.google.cloud.pubsublite.proto.PublishRequest result) { result.requestTypeCase_ = requestTypeCase_; result.requestType_ = this.requestType_; - if (requestTypeCase_ == 1 && initialRequestBuilder_ != null) { + if (requestTypeCase_ == 1 && + initialRequestBuilder_ != null) { result.requestType_ = initialRequestBuilder_.build(); } - if (requestTypeCase_ == 2 && messagePublishRequestBuilder_ != null) { + if (requestTypeCase_ == 2 && + messagePublishRequestBuilder_ != null) { result.requestType_ = messagePublishRequestBuilder_.build(); } } @@ -506,39 +455,38 @@ private void buildPartialOneofs(com.google.cloud.pubsublite.proto.PublishRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.PublishRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.PublishRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.PublishRequest)other); } else { super.mergeFrom(other); return this; @@ -546,23 +494,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.PublishRequest other) { - if (other == com.google.cloud.pubsublite.proto.PublishRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.PublishRequest.getDefaultInstance()) return this; switch (other.getRequestTypeCase()) { - case INITIAL_REQUEST: - { - mergeInitialRequest(other.getInitialRequest()); - break; - } - case MESSAGE_PUBLISH_REQUEST: - { - mergeMessagePublishRequest(other.getMessagePublishRequest()); - break; - } - case REQUESTTYPE_NOT_SET: - { - break; - } + case INITIAL_REQUEST: { + mergeInitialRequest(other.getInitialRequest()); + break; + } + case MESSAGE_PUBLISH_REQUEST: { + mergeMessagePublishRequest(other.getMessagePublishRequest()); + break; + } + case REQUESTTYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -590,26 +534,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getInitialRequestFieldBuilder().getBuilder(), extensionRegistry); - requestTypeCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage( - getMessagePublishRequestFieldBuilder().getBuilder(), extensionRegistry); - requestTypeCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getInitialRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestTypeCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getMessagePublishRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestTypeCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -619,12 +563,12 @@ public Builder mergeFrom( } // finally return this; } - private int requestTypeCase_ = 0; private java.lang.Object requestType_; - - public RequestTypeCase getRequestTypeCase() { - return RequestTypeCase.forNumber(requestTypeCase_); + public RequestTypeCase + getRequestTypeCase() { + return RequestTypeCase.forNumber( + requestTypeCase_); } public Builder clearRequestType() { @@ -637,19 +581,13 @@ public Builder clearRequestType() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialPublishRequest, - com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder, - com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder> - initialRequestBuilder_; + com.google.cloud.pubsublite.proto.InitialPublishRequest, com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder, com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder> initialRequestBuilder_; /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; - * * @return Whether the initialRequest field is set. */ @java.lang.Override @@ -657,14 +595,11 @@ public boolean hasInitialRequest() { return requestTypeCase_ == 1; } /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; - * * @return The initialRequest. */ @java.lang.Override @@ -682,16 +617,13 @@ public com.google.cloud.pubsublite.proto.InitialPublishRequest getInitialRequest } } /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; */ - public Builder setInitialRequest( - com.google.cloud.pubsublite.proto.InitialPublishRequest value) { + public Builder setInitialRequest(com.google.cloud.pubsublite.proto.InitialPublishRequest value) { if (initialRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -705,8 +637,6 @@ public Builder setInitialRequest( return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -725,25 +655,18 @@ public Builder setInitialRequest( return this; } /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; */ - public Builder mergeInitialRequest( - com.google.cloud.pubsublite.proto.InitialPublishRequest value) { + public Builder mergeInitialRequest(com.google.cloud.pubsublite.proto.InitialPublishRequest value) { if (initialRequestBuilder_ == null) { - if (requestTypeCase_ == 1 - && requestType_ - != com.google.cloud.pubsublite.proto.InitialPublishRequest.getDefaultInstance()) { - requestType_ = - com.google.cloud.pubsublite.proto.InitialPublishRequest.newBuilder( - (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_) - .mergeFrom(value) - .buildPartial(); + if (requestTypeCase_ == 1 && + requestType_ != com.google.cloud.pubsublite.proto.InitialPublishRequest.getDefaultInstance()) { + requestType_ = com.google.cloud.pubsublite.proto.InitialPublishRequest.newBuilder((com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_) + .mergeFrom(value).buildPartial(); } else { requestType_ = value; } @@ -759,8 +682,6 @@ public Builder mergeInitialRequest( return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -784,21 +705,16 @@ public Builder clearInitialRequest() { return this; } /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; */ - public com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder - getInitialRequestBuilder() { + public com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder getInitialRequestBuilder() { return getInitialRequestFieldBuilder().getBuilder(); } /** - * - * *
      * Initial request on the stream.
      * 
@@ -806,8 +722,7 @@ public Builder clearInitialRequest() { * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder - getInitialRequestOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder getInitialRequestOrBuilder() { if ((requestTypeCase_ == 1) && (initialRequestBuilder_ != null)) { return initialRequestBuilder_.getMessageOrBuilder(); } else { @@ -818,8 +733,6 @@ public Builder clearInitialRequest() { } } /** - * - * *
      * Initial request on the stream.
      * 
@@ -827,20 +740,14 @@ public Builder clearInitialRequest() { * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialPublishRequest, - com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder, - com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder> + com.google.cloud.pubsublite.proto.InitialPublishRequest, com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder, com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder> getInitialRequestFieldBuilder() { if (initialRequestBuilder_ == null) { if (!(requestTypeCase_ == 1)) { - requestType_ = - com.google.cloud.pubsublite.proto.InitialPublishRequest.getDefaultInstance(); + requestType_ = com.google.cloud.pubsublite.proto.InitialPublishRequest.getDefaultInstance(); } - initialRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialPublishRequest, - com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder, - com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder>( + initialRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.InitialPublishRequest, com.google.cloud.pubsublite.proto.InitialPublishRequest.Builder, com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder>( (com.google.cloud.pubsublite.proto.InitialPublishRequest) requestType_, getParentForChildren(), isClean()); @@ -852,19 +759,13 @@ public Builder clearInitialRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessagePublishRequest, - com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder, - com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder> - messagePublishRequestBuilder_; + com.google.cloud.pubsublite.proto.MessagePublishRequest, com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder, com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder> messagePublishRequestBuilder_; /** - * - * *
      * Request to publish messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; - * * @return Whether the messagePublishRequest field is set. */ @java.lang.Override @@ -872,14 +773,11 @@ public boolean hasMessagePublishRequest() { return requestTypeCase_ == 2; } /** - * - * *
      * Request to publish messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; - * * @return The messagePublishRequest. */ @java.lang.Override @@ -897,16 +795,13 @@ public com.google.cloud.pubsublite.proto.MessagePublishRequest getMessagePublish } } /** - * - * *
      * Request to publish messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; */ - public Builder setMessagePublishRequest( - com.google.cloud.pubsublite.proto.MessagePublishRequest value) { + public Builder setMessagePublishRequest(com.google.cloud.pubsublite.proto.MessagePublishRequest value) { if (messagePublishRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -920,8 +815,6 @@ public Builder setMessagePublishRequest( return this; } /** - * - * *
      * Request to publish messages.
      * 
@@ -940,25 +833,18 @@ public Builder setMessagePublishRequest( return this; } /** - * - * *
      * Request to publish messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; */ - public Builder mergeMessagePublishRequest( - com.google.cloud.pubsublite.proto.MessagePublishRequest value) { + public Builder mergeMessagePublishRequest(com.google.cloud.pubsublite.proto.MessagePublishRequest value) { if (messagePublishRequestBuilder_ == null) { - if (requestTypeCase_ == 2 - && requestType_ - != com.google.cloud.pubsublite.proto.MessagePublishRequest.getDefaultInstance()) { - requestType_ = - com.google.cloud.pubsublite.proto.MessagePublishRequest.newBuilder( - (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_) - .mergeFrom(value) - .buildPartial(); + if (requestTypeCase_ == 2 && + requestType_ != com.google.cloud.pubsublite.proto.MessagePublishRequest.getDefaultInstance()) { + requestType_ = com.google.cloud.pubsublite.proto.MessagePublishRequest.newBuilder((com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_) + .mergeFrom(value).buildPartial(); } else { requestType_ = value; } @@ -974,8 +860,6 @@ public Builder mergeMessagePublishRequest( return this; } /** - * - * *
      * Request to publish messages.
      * 
@@ -999,21 +883,16 @@ public Builder clearMessagePublishRequest() { return this; } /** - * - * *
      * Request to publish messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; */ - public com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder - getMessagePublishRequestBuilder() { + public com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder getMessagePublishRequestBuilder() { return getMessagePublishRequestFieldBuilder().getBuilder(); } /** - * - * *
      * Request to publish messages.
      * 
@@ -1021,8 +900,7 @@ public Builder clearMessagePublishRequest() { * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder - getMessagePublishRequestOrBuilder() { + public com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder getMessagePublishRequestOrBuilder() { if ((requestTypeCase_ == 2) && (messagePublishRequestBuilder_ != null)) { return messagePublishRequestBuilder_.getMessageOrBuilder(); } else { @@ -1033,8 +911,6 @@ public Builder clearMessagePublishRequest() { } } /** - * - * *
      * Request to publish messages.
      * 
@@ -1042,20 +918,14 @@ public Builder clearMessagePublishRequest() { * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessagePublishRequest, - com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder, - com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder> + com.google.cloud.pubsublite.proto.MessagePublishRequest, com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder, com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder> getMessagePublishRequestFieldBuilder() { if (messagePublishRequestBuilder_ == null) { if (!(requestTypeCase_ == 2)) { - requestType_ = - com.google.cloud.pubsublite.proto.MessagePublishRequest.getDefaultInstance(); + requestType_ = com.google.cloud.pubsublite.proto.MessagePublishRequest.getDefaultInstance(); } - messagePublishRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessagePublishRequest, - com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder, - com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder>( + messagePublishRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.MessagePublishRequest, com.google.cloud.pubsublite.proto.MessagePublishRequest.Builder, com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder>( (com.google.cloud.pubsublite.proto.MessagePublishRequest) requestType_, getParentForChildren(), isClean()); @@ -1065,9 +935,9 @@ public Builder clearMessagePublishRequest() { onChanged(); return messagePublishRequestBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1077,12 +947,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.PublishRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.PublishRequest) private static final com.google.cloud.pubsublite.proto.PublishRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.PublishRequest(); } @@ -1091,27 +961,27 @@ public static com.google.cloud.pubsublite.proto.PublishRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublishRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublishRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1126,4 +996,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.PublishRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequestOrBuilder.java index e9ab79995..ef25b0b5d 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishRequestOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/publisher.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface PublishRequestOrBuilder - extends +public interface PublishRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.PublishRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; - * * @return Whether the initialRequest field is set. */ boolean hasInitialRequest(); /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPublishRequest initial_request = 1; - * * @return The initialRequest. */ com.google.cloud.pubsublite.proto.InitialPublishRequest getInitialRequest(); /** - * - * *
    * Initial request on the stream.
    * 
@@ -60,40 +36,31 @@ public interface PublishRequestOrBuilder com.google.cloud.pubsublite.proto.InitialPublishRequestOrBuilder getInitialRequestOrBuilder(); /** - * - * *
    * Request to publish messages.
    * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; - * * @return Whether the messagePublishRequest field is set. */ boolean hasMessagePublishRequest(); /** - * - * *
    * Request to publish messages.
    * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; - * * @return The messagePublishRequest. */ com.google.cloud.pubsublite.proto.MessagePublishRequest getMessagePublishRequest(); /** - * - * *
    * Request to publish messages.
    * 
* * .google.cloud.pubsublite.v1.MessagePublishRequest message_publish_request = 2; */ - com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder - getMessagePublishRequestOrBuilder(); + com.google.cloud.pubsublite.proto.MessagePublishRequestOrBuilder getMessagePublishRequestOrBuilder(); com.google.cloud.pubsublite.proto.PublishRequest.RequestTypeCase getRequestTypeCase(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponse.java similarity index 67% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponse.java index d475cb75d..706d8b185 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponse.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/publisher.proto @@ -20,61 +5,54 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response to a PublishRequest.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.PublishResponse} */ -public final class PublishResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PublishResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.PublishResponse) PublishResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PublishResponse.newBuilder() to construct. private PublishResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private PublishResponse() {} + private PublishResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PublishResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_PublishResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PublishResponse.class, - com.google.cloud.pubsublite.proto.PublishResponse.Builder.class); + com.google.cloud.pubsublite.proto.PublishResponse.class, com.google.cloud.pubsublite.proto.PublishResponse.Builder.class); } private int responseTypeCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object responseType_; - public enum ResponseTypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INITIAL_RESPONSE(1), MESSAGE_RESPONSE(2), RESPONSETYPE_NOT_SET(0); private final int value; - private ResponseTypeCase(int value) { this.value = value; } @@ -90,36 +68,30 @@ public static ResponseTypeCase valueOf(int value) { public static ResponseTypeCase forNumber(int value) { switch (value) { - case 1: - return INITIAL_RESPONSE; - case 2: - return MESSAGE_RESPONSE; - case 0: - return RESPONSETYPE_NOT_SET; - default: - return null; + case 1: return INITIAL_RESPONSE; + case 2: return MESSAGE_RESPONSE; + case 0: return RESPONSETYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ResponseTypeCase getResponseTypeCase() { - return ResponseTypeCase.forNumber(responseTypeCase_); + public ResponseTypeCase + getResponseTypeCase() { + return ResponseTypeCase.forNumber( + responseTypeCase_); } public static final int INITIAL_RESPONSE_FIELD_NUMBER = 1; /** - * - * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; - * * @return Whether the initialResponse field is set. */ @java.lang.Override @@ -127,26 +99,21 @@ public boolean hasInitialResponse() { return responseTypeCase_ == 1; } /** - * - * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; - * * @return The initialResponse. */ @java.lang.Override public com.google.cloud.pubsublite.proto.InitialPublishResponse getInitialResponse() { if (responseTypeCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_; + return (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_; } return com.google.cloud.pubsublite.proto.InitialPublishResponse.getDefaultInstance(); } /** - * - * *
    * Initial response on the stream.
    * 
@@ -154,24 +121,20 @@ public com.google.cloud.pubsublite.proto.InitialPublishResponse getInitialRespon * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder - getInitialResponseOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder getInitialResponseOrBuilder() { if (responseTypeCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_; + return (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_; } return com.google.cloud.pubsublite.proto.InitialPublishResponse.getDefaultInstance(); } public static final int MESSAGE_RESPONSE_FIELD_NUMBER = 2; /** - * - * *
    * Response to publishing messages.
    * 
* * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; - * * @return Whether the messageResponse field is set. */ @java.lang.Override @@ -179,26 +142,21 @@ public boolean hasMessageResponse() { return responseTypeCase_ == 2; } /** - * - * *
    * Response to publishing messages.
    * 
* * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; - * * @return The messageResponse. */ @java.lang.Override public com.google.cloud.pubsublite.proto.MessagePublishResponse getMessageResponse() { if (responseTypeCase_ == 2) { - return (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_; + return (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_; } return com.google.cloud.pubsublite.proto.MessagePublishResponse.getDefaultInstance(); } /** - * - * *
    * Response to publishing messages.
    * 
@@ -206,16 +164,14 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponse getMessageRespon * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder - getMessageResponseOrBuilder() { + public com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder getMessageResponseOrBuilder() { if (responseTypeCase_ == 2) { - return (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_; + return (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_; } return com.google.cloud.pubsublite.proto.MessagePublishResponse.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,14 +183,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (responseTypeCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_); + output.writeMessage(1, (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_); } if (responseTypeCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_); + output.writeMessage(2, (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_); } getUnknownFields().writeTo(output); } @@ -246,14 +201,12 @@ public int getSerializedSize() { size = 0; if (responseTypeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_); } if (responseTypeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -263,21 +216,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.PublishResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.PublishResponse other = - (com.google.cloud.pubsublite.proto.PublishResponse) obj; + com.google.cloud.pubsublite.proto.PublishResponse other = (com.google.cloud.pubsublite.proto.PublishResponse) obj; if (!getResponseTypeCase().equals(other.getResponseTypeCase())) return false; switch (responseTypeCase_) { case 1: - if (!getInitialResponse().equals(other.getInitialResponse())) return false; + if (!getInitialResponse() + .equals(other.getInitialResponse())) return false; break; case 2: - if (!getMessageResponse().equals(other.getMessageResponse())) return false; + if (!getMessageResponse() + .equals(other.getMessageResponse())) return false; break; case 0: default: @@ -311,135 +265,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.PublishResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.PublishResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.PublishResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.PublishResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.PublishResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.PublishResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.PublishResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.PublishResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.PublishResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.PublishResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.PublishResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.PublishResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.PublishResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.PublishResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.pubsublite.proto.PublishResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response to a PublishRequest.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.PublishResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.PublishResponse) com.google.cloud.pubsublite.proto.PublishResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_PublishResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.PublishResponse.class, - com.google.cloud.pubsublite.proto.PublishResponse.Builder.class); + com.google.cloud.pubsublite.proto.PublishResponse.class, com.google.cloud.pubsublite.proto.PublishResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.PublishResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -456,9 +406,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.PublisherProto - .internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.PublisherProto.internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor; } @java.lang.Override @@ -477,11 +427,8 @@ public com.google.cloud.pubsublite.proto.PublishResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.PublishResponse buildPartial() { - com.google.cloud.pubsublite.proto.PublishResponse result = - new com.google.cloud.pubsublite.proto.PublishResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.PublishResponse result = new com.google.cloud.pubsublite.proto.PublishResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -494,10 +441,12 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.PublishResponse res private void buildPartialOneofs(com.google.cloud.pubsublite.proto.PublishResponse result) { result.responseTypeCase_ = responseTypeCase_; result.responseType_ = this.responseType_; - if (responseTypeCase_ == 1 && initialResponseBuilder_ != null) { + if (responseTypeCase_ == 1 && + initialResponseBuilder_ != null) { result.responseType_ = initialResponseBuilder_.build(); } - if (responseTypeCase_ == 2 && messageResponseBuilder_ != null) { + if (responseTypeCase_ == 2 && + messageResponseBuilder_ != null) { result.responseType_ = messageResponseBuilder_.build(); } } @@ -506,39 +455,38 @@ private void buildPartialOneofs(com.google.cloud.pubsublite.proto.PublishRespons public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.PublishResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.PublishResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.PublishResponse)other); } else { super.mergeFrom(other); return this; @@ -546,23 +494,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.PublishResponse other) { - if (other == com.google.cloud.pubsublite.proto.PublishResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.PublishResponse.getDefaultInstance()) return this; switch (other.getResponseTypeCase()) { - case INITIAL_RESPONSE: - { - mergeInitialResponse(other.getInitialResponse()); - break; - } - case MESSAGE_RESPONSE: - { - mergeMessageResponse(other.getMessageResponse()); - break; - } - case RESPONSETYPE_NOT_SET: - { - break; - } + case INITIAL_RESPONSE: { + mergeInitialResponse(other.getInitialResponse()); + break; + } + case MESSAGE_RESPONSE: { + mergeMessageResponse(other.getMessageResponse()); + break; + } + case RESPONSETYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -590,25 +534,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getInitialResponseFieldBuilder().getBuilder(), extensionRegistry); - responseTypeCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getMessageResponseFieldBuilder().getBuilder(), extensionRegistry); - responseTypeCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getInitialResponseFieldBuilder().getBuilder(), + extensionRegistry); + responseTypeCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getMessageResponseFieldBuilder().getBuilder(), + extensionRegistry); + responseTypeCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -618,12 +563,12 @@ public Builder mergeFrom( } // finally return this; } - private int responseTypeCase_ = 0; private java.lang.Object responseType_; - - public ResponseTypeCase getResponseTypeCase() { - return ResponseTypeCase.forNumber(responseTypeCase_); + public ResponseTypeCase + getResponseTypeCase() { + return ResponseTypeCase.forNumber( + responseTypeCase_); } public Builder clearResponseType() { @@ -636,19 +581,13 @@ public Builder clearResponseType() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialPublishResponse, - com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder, - com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder> - initialResponseBuilder_; + com.google.cloud.pubsublite.proto.InitialPublishResponse, com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder, com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder> initialResponseBuilder_; /** - * - * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; - * * @return Whether the initialResponse field is set. */ @java.lang.Override @@ -656,14 +595,11 @@ public boolean hasInitialResponse() { return responseTypeCase_ == 1; } /** - * - * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; - * * @return The initialResponse. */ @java.lang.Override @@ -681,16 +617,13 @@ public com.google.cloud.pubsublite.proto.InitialPublishResponse getInitialRespon } } /** - * - * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; */ - public Builder setInitialResponse( - com.google.cloud.pubsublite.proto.InitialPublishResponse value) { + public Builder setInitialResponse(com.google.cloud.pubsublite.proto.InitialPublishResponse value) { if (initialResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -704,8 +637,6 @@ public Builder setInitialResponse( return this; } /** - * - * *
      * Initial response on the stream.
      * 
@@ -724,25 +655,18 @@ public Builder setInitialResponse( return this; } /** - * - * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; */ - public Builder mergeInitialResponse( - com.google.cloud.pubsublite.proto.InitialPublishResponse value) { + public Builder mergeInitialResponse(com.google.cloud.pubsublite.proto.InitialPublishResponse value) { if (initialResponseBuilder_ == null) { - if (responseTypeCase_ == 1 - && responseType_ - != com.google.cloud.pubsublite.proto.InitialPublishResponse.getDefaultInstance()) { - responseType_ = - com.google.cloud.pubsublite.proto.InitialPublishResponse.newBuilder( - (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_) - .mergeFrom(value) - .buildPartial(); + if (responseTypeCase_ == 1 && + responseType_ != com.google.cloud.pubsublite.proto.InitialPublishResponse.getDefaultInstance()) { + responseType_ = com.google.cloud.pubsublite.proto.InitialPublishResponse.newBuilder((com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_) + .mergeFrom(value).buildPartial(); } else { responseType_ = value; } @@ -758,8 +682,6 @@ public Builder mergeInitialResponse( return this; } /** - * - * *
      * Initial response on the stream.
      * 
@@ -783,21 +705,16 @@ public Builder clearInitialResponse() { return this; } /** - * - * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; */ - public com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder - getInitialResponseBuilder() { + public com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder getInitialResponseBuilder() { return getInitialResponseFieldBuilder().getBuilder(); } /** - * - * *
      * Initial response on the stream.
      * 
@@ -805,8 +722,7 @@ public Builder clearInitialResponse() { * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder - getInitialResponseOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder getInitialResponseOrBuilder() { if ((responseTypeCase_ == 1) && (initialResponseBuilder_ != null)) { return initialResponseBuilder_.getMessageOrBuilder(); } else { @@ -817,8 +733,6 @@ public Builder clearInitialResponse() { } } /** - * - * *
      * Initial response on the stream.
      * 
@@ -826,20 +740,14 @@ public Builder clearInitialResponse() { * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialPublishResponse, - com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder, - com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder> + com.google.cloud.pubsublite.proto.InitialPublishResponse, com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder, com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder> getInitialResponseFieldBuilder() { if (initialResponseBuilder_ == null) { if (!(responseTypeCase_ == 1)) { - responseType_ = - com.google.cloud.pubsublite.proto.InitialPublishResponse.getDefaultInstance(); + responseType_ = com.google.cloud.pubsublite.proto.InitialPublishResponse.getDefaultInstance(); } - initialResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialPublishResponse, - com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder, - com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder>( + initialResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.InitialPublishResponse, com.google.cloud.pubsublite.proto.InitialPublishResponse.Builder, com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder>( (com.google.cloud.pubsublite.proto.InitialPublishResponse) responseType_, getParentForChildren(), isClean()); @@ -851,19 +759,13 @@ public Builder clearInitialResponse() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessagePublishResponse, - com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder, - com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder> - messageResponseBuilder_; + com.google.cloud.pubsublite.proto.MessagePublishResponse, com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder, com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder> messageResponseBuilder_; /** - * - * *
      * Response to publishing messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; - * * @return Whether the messageResponse field is set. */ @java.lang.Override @@ -871,14 +773,11 @@ public boolean hasMessageResponse() { return responseTypeCase_ == 2; } /** - * - * *
      * Response to publishing messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; - * * @return The messageResponse. */ @java.lang.Override @@ -896,16 +795,13 @@ public com.google.cloud.pubsublite.proto.MessagePublishResponse getMessageRespon } } /** - * - * *
      * Response to publishing messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; */ - public Builder setMessageResponse( - com.google.cloud.pubsublite.proto.MessagePublishResponse value) { + public Builder setMessageResponse(com.google.cloud.pubsublite.proto.MessagePublishResponse value) { if (messageResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -919,8 +815,6 @@ public Builder setMessageResponse( return this; } /** - * - * *
      * Response to publishing messages.
      * 
@@ -939,25 +833,18 @@ public Builder setMessageResponse( return this; } /** - * - * *
      * Response to publishing messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; */ - public Builder mergeMessageResponse( - com.google.cloud.pubsublite.proto.MessagePublishResponse value) { + public Builder mergeMessageResponse(com.google.cloud.pubsublite.proto.MessagePublishResponse value) { if (messageResponseBuilder_ == null) { - if (responseTypeCase_ == 2 - && responseType_ - != com.google.cloud.pubsublite.proto.MessagePublishResponse.getDefaultInstance()) { - responseType_ = - com.google.cloud.pubsublite.proto.MessagePublishResponse.newBuilder( - (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_) - .mergeFrom(value) - .buildPartial(); + if (responseTypeCase_ == 2 && + responseType_ != com.google.cloud.pubsublite.proto.MessagePublishResponse.getDefaultInstance()) { + responseType_ = com.google.cloud.pubsublite.proto.MessagePublishResponse.newBuilder((com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_) + .mergeFrom(value).buildPartial(); } else { responseType_ = value; } @@ -973,8 +860,6 @@ public Builder mergeMessageResponse( return this; } /** - * - * *
      * Response to publishing messages.
      * 
@@ -998,21 +883,16 @@ public Builder clearMessageResponse() { return this; } /** - * - * *
      * Response to publishing messages.
      * 
* * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; */ - public com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder - getMessageResponseBuilder() { + public com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder getMessageResponseBuilder() { return getMessageResponseFieldBuilder().getBuilder(); } /** - * - * *
      * Response to publishing messages.
      * 
@@ -1020,8 +900,7 @@ public Builder clearMessageResponse() { * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder - getMessageResponseOrBuilder() { + public com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder getMessageResponseOrBuilder() { if ((responseTypeCase_ == 2) && (messageResponseBuilder_ != null)) { return messageResponseBuilder_.getMessageOrBuilder(); } else { @@ -1032,8 +911,6 @@ public Builder clearMessageResponse() { } } /** - * - * *
      * Response to publishing messages.
      * 
@@ -1041,20 +918,14 @@ public Builder clearMessageResponse() { * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessagePublishResponse, - com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder, - com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder> + com.google.cloud.pubsublite.proto.MessagePublishResponse, com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder, com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder> getMessageResponseFieldBuilder() { if (messageResponseBuilder_ == null) { if (!(responseTypeCase_ == 2)) { - responseType_ = - com.google.cloud.pubsublite.proto.MessagePublishResponse.getDefaultInstance(); + responseType_ = com.google.cloud.pubsublite.proto.MessagePublishResponse.getDefaultInstance(); } - messageResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessagePublishResponse, - com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder, - com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder>( + messageResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.MessagePublishResponse, com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder, com.google.cloud.pubsublite.proto.MessagePublishResponseOrBuilder>( (com.google.cloud.pubsublite.proto.MessagePublishResponse) responseType_, getParentForChildren(), isClean()); @@ -1064,9 +935,9 @@ public Builder clearMessageResponse() { onChanged(); return messageResponseBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1076,12 +947,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.PublishResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.PublishResponse) private static final com.google.cloud.pubsublite.proto.PublishResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.PublishResponse(); } @@ -1090,27 +961,27 @@ public static com.google.cloud.pubsublite.proto.PublishResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublishResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublishResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1125,4 +996,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.PublishResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponseOrBuilder.java similarity index 73% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponseOrBuilder.java index 61a09a5c1..6cf38dd95 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublishResponseOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/publisher.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface PublishResponseOrBuilder - extends +public interface PublishResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.PublishResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; - * * @return Whether the initialResponse field is set. */ boolean hasInitialResponse(); /** - * - * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialPublishResponse initial_response = 1; - * * @return The initialResponse. */ com.google.cloud.pubsublite.proto.InitialPublishResponse getInitialResponse(); /** - * - * *
    * Initial response on the stream.
    * 
@@ -60,32 +36,24 @@ public interface PublishResponseOrBuilder com.google.cloud.pubsublite.proto.InitialPublishResponseOrBuilder getInitialResponseOrBuilder(); /** - * - * *
    * Response to publishing messages.
    * 
* * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; - * * @return Whether the messageResponse field is set. */ boolean hasMessageResponse(); /** - * - * *
    * Response to publishing messages.
    * 
* * .google.cloud.pubsublite.v1.MessagePublishResponse message_response = 2; - * * @return The messageResponse. */ com.google.cloud.pubsublite.proto.MessagePublishResponse getMessageResponse(); /** - * - * *
    * Response to publishing messages.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherProto.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherProto.java new file mode 100644 index 000000000..d1737469c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherProto.java @@ -0,0 +1,162 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/publisher.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.pubsublite.proto; + +public final class PublisherProto { + private PublisherProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PublishRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PublishResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n*google/cloud/pubsublite/v1/publisher.p" + + "roto\022\032google.cloud.pubsublite.v1\032\034google" + + "/api/annotations.proto\032\027google/api/clien" + + "t.proto\032\'google/cloud/pubsublite/v1/comm" + + "on.proto\"L\n\025InitialPublishRequest\022\r\n\005top" + + "ic\030\001 \001(\t\022\021\n\tpartition\030\002 \001(\003\022\021\n\tclient_id" + + "\030\003 \001(\014\"\030\n\026InitialPublishResponse\"s\n\025Mess" + + "agePublishRequest\022;\n\010messages\030\001 \003(\0132).go" + + "ogle.cloud.pubsublite.v1.PubSubMessage\022\035" + + "\n\025first_sequence_number\030\002 \001(\003\"\232\002\n\026Messag" + + "ePublishResponse\0228\n\014start_cursor\030\001 \001(\0132\"" + + ".google.cloud.pubsublite.v1.Cursor\022U\n\rcu" + + "rsor_ranges\030\002 \003(\0132>.google.cloud.pubsubl" + + "ite.v1.MessagePublishResponse.CursorRang" + + "e\032o\n\013CursorRange\0228\n\014start_cursor\030\001 \001(\0132\"" + + ".google.cloud.pubsublite.v1.Cursor\022\023\n\013st" + + "art_index\030\002 \001(\005\022\021\n\tend_index\030\003 \001(\005\"\304\001\n\016P" + + "ublishRequest\022L\n\017initial_request\030\001 \001(\01321" + + ".google.cloud.pubsublite.v1.InitialPubli" + + "shRequestH\000\022T\n\027message_publish_request\030\002" + + " \001(\01321.google.cloud.pubsublite.v1.Messag" + + "ePublishRequestH\000B\016\n\014request_type\"\302\001\n\017Pu" + + "blishResponse\022N\n\020initial_response\030\001 \001(\0132" + + "2.google.cloud.pubsublite.v1.InitialPubl" + + "ishResponseH\000\022N\n\020message_response\030\002 \001(\0132" + + "2.google.cloud.pubsublite.v1.MessagePubl" + + "ishResponseH\000B\017\n\rresponse_type2\313\001\n\020Publi" + + "sherService\022h\n\007Publish\022*.google.cloud.pu" + + "bsublite.v1.PublishRequest\032+.google.clou" + + "d.pubsublite.v1.PublishResponse\"\000(\0010\001\032M\312" + + "A\031pubsublite.googleapis.com\322A.https://ww" + + "w.googleapis.com/auth/cloud-platformB\322\001\n" + + "!com.google.cloud.pubsublite.protoB\016Publ" + + "isherProtoP\001Z>cloud.google.com/go/pubsub" + + "lite/apiv1/pubsublitepb;pubsublitepb\370\001\001\252" + + "\002\032Google.Cloud.PubSubLite.V1\312\002\032Google\\Cl" + + "oud\\PubSubLite\\V1\352\002\035Google::Cloud::PubSu" + + "bLite::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(), + }); + internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor, + new java.lang.String[] { "Topic", "Partition", "ClientId", }); + internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor, + new java.lang.String[] { "Messages", "FirstSequenceNumber", }); + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor, + new java.lang.String[] { "StartCursor", "CursorRanges", }); + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor = + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor, + new java.lang.String[] { "StartCursor", "StartIndex", "EndIndex", }); + internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_pubsublite_v1_PublishRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor, + new java.lang.String[] { "InitialRequest", "MessagePublishRequest", "RequestType", }); + internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_pubsublite_v1_PublishResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor, + new java.lang.String[] { "InitialResponse", "MessageResponse", "ResponseType", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.ClientProto.oauthScopes); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Reservation.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Reservation.java similarity index 69% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Reservation.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Reservation.java index 2de089d89..e13ec2989 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Reservation.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Reservation.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/common.proto @@ -20,56 +5,49 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Metadata about a reservation resource.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Reservation} */ -public final class Reservation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Reservation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.Reservation) ReservationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Reservation.newBuilder() to construct. private Reservation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Reservation() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Reservation(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Reservation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Reservation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Reservation.class, - com.google.cloud.pubsublite.proto.Reservation.Builder.class); + com.google.cloud.pubsublite.proto.Reservation.class, com.google.cloud.pubsublite.proto.Reservation.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The name of the reservation.
    * Structured like:
@@ -77,7 +55,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -86,15 +63,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The name of the reservation.
    * Structured like:
@@ -102,15 +78,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -121,8 +98,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int THROUGHPUT_CAPACITY_FIELD_NUMBER = 2; private long throughputCapacity_ = 0L; /** - * - * *
    * The reserved throughput capacity. Every unit of throughput capacity is
    * equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed
@@ -134,7 +109,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * int64 throughput_capacity = 2; - * * @return The throughputCapacity. */ @java.lang.Override @@ -143,7 +117,6 @@ public long getThroughputCapacity() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,7 +128,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -175,7 +149,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (throughputCapacity_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, throughputCapacity_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, throughputCapacity_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -185,16 +160,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.Reservation)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.Reservation other = - (com.google.cloud.pubsublite.proto.Reservation) obj; + com.google.cloud.pubsublite.proto.Reservation other = (com.google.cloud.pubsublite.proto.Reservation) obj; - if (!getName().equals(other.getName())) return false; - if (getThroughputCapacity() != other.getThroughputCapacity()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getThroughputCapacity() + != other.getThroughputCapacity()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -209,142 +185,139 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + THROUGHPUT_CAPACITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getThroughputCapacity()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getThroughputCapacity()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.pubsublite.proto.Reservation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.pubsublite.proto.Reservation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Reservation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Reservation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Reservation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Reservation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Reservation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Reservation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.Reservation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Reservation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.Reservation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.Reservation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Reservation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.Reservation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.pubsublite.proto.Reservation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Metadata about a reservation resource.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Reservation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.Reservation) com.google.cloud.pubsublite.proto.ReservationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Reservation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Reservation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Reservation.class, - com.google.cloud.pubsublite.proto.Reservation.Builder.class); + com.google.cloud.pubsublite.proto.Reservation.class, com.google.cloud.pubsublite.proto.Reservation.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.Reservation.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -355,9 +328,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Reservation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Reservation_descriptor; } @java.lang.Override @@ -376,11 +349,8 @@ public com.google.cloud.pubsublite.proto.Reservation build() { @java.lang.Override public com.google.cloud.pubsublite.proto.Reservation buildPartial() { - com.google.cloud.pubsublite.proto.Reservation result = - new com.google.cloud.pubsublite.proto.Reservation(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.Reservation result = new com.google.cloud.pubsublite.proto.Reservation(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -399,39 +369,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Reservation result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.Reservation) { - return mergeFrom((com.google.cloud.pubsublite.proto.Reservation) other); + return mergeFrom((com.google.cloud.pubsublite.proto.Reservation)other); } else { super.mergeFrom(other); return this; @@ -474,25 +443,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - throughputCapacity_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + throughputCapacity_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -502,13 +468,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The name of the reservation.
      * Structured like:
@@ -516,13 +479,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -531,8 +494,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the reservation.
      * Structured like:
@@ -540,14 +501,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -555,8 +517,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the reservation.
      * Structured like:
@@ -564,22 +524,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The name of the reservation.
      * Structured like:
@@ -587,7 +543,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -597,8 +552,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The name of the reservation.
      * Structured like:
@@ -606,14 +559,12 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -621,10 +572,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private long throughputCapacity_; + private long throughputCapacity_ ; /** - * - * *
      * The reserved throughput capacity. Every unit of throughput capacity is
      * equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed
@@ -636,7 +585,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * int64 throughput_capacity = 2; - * * @return The throughputCapacity. */ @java.lang.Override @@ -644,8 +592,6 @@ public long getThroughputCapacity() { return throughputCapacity_; } /** - * - * *
      * The reserved throughput capacity. Every unit of throughput capacity is
      * equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed
@@ -657,7 +603,6 @@ public long getThroughputCapacity() {
      * 
* * int64 throughput_capacity = 2; - * * @param value The throughputCapacity to set. * @return This builder for chaining. */ @@ -669,8 +614,6 @@ public Builder setThroughputCapacity(long value) { return this; } /** - * - * *
      * The reserved throughput capacity. Every unit of throughput capacity is
      * equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed
@@ -682,7 +625,6 @@ public Builder setThroughputCapacity(long value) {
      * 
* * int64 throughput_capacity = 2; - * * @return This builder for chaining. */ public Builder clearThroughputCapacity() { @@ -691,9 +633,9 @@ public Builder clearThroughputCapacity() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -703,12 +645,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Reservation) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Reservation) private static final com.google.cloud.pubsublite.proto.Reservation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Reservation(); } @@ -717,27 +659,27 @@ public static com.google.cloud.pubsublite.proto.Reservation getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Reservation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Reservation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -752,4 +694,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.Reservation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationName.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationName.java similarity index 100% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationName.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationName.java diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationOrBuilder.java similarity index 64% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationOrBuilder.java index 1fe0e55a8..2cdaf2cc3 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ReservationOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/common.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface ReservationOrBuilder - extends +public interface ReservationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Reservation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the reservation.
    * Structured like:
@@ -34,13 +16,10 @@ public interface ReservationOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the reservation.
    * Structured like:
@@ -48,14 +27,12 @@ public interface ReservationOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The reserved throughput capacity. Every unit of throughput capacity is
    * equivalent to 1 MiB/s of published messages or 2 MiB/s of subscribed
@@ -67,7 +44,6 @@ public interface ReservationOrBuilder
    * 
* * int64 throughput_capacity = 2; - * * @return The throughputCapacity. */ long getThroughputCapacity(); diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequest.java similarity index 71% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequest.java index b9af0e4b4..ca4f6c153 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto @@ -20,8 +5,6 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request to update the stream's delivery cursor based on the given target.
  * Resets the server available tokens to 0. SeekRequests past head result in
@@ -33,52 +16,48 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.SeekRequest}
  */
-public final class SeekRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SeekRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.SeekRequest)
     SeekRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SeekRequest.newBuilder() to construct.
   private SeekRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private SeekRequest() {}
+  private SeekRequest() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SeekRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.SubscriberProto
-        .internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.SeekRequest.class,
-            com.google.cloud.pubsublite.proto.SeekRequest.Builder.class);
+            com.google.cloud.pubsublite.proto.SeekRequest.class, com.google.cloud.pubsublite.proto.SeekRequest.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * A special target in the partition that takes no other parameters.
    * 
* * Protobuf enum {@code google.cloud.pubsublite.v1.SeekRequest.NamedTarget} */ - public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum { + public enum NamedTarget + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value. This value is unused.
      * 
@@ -87,8 +66,6 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum { */ NAMED_TARGET_UNSPECIFIED(0), /** - * - * *
      * A target corresponding to the most recently published message in the
      * partition.
@@ -98,8 +75,6 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum {
      */
     HEAD(1),
     /**
-     *
-     *
      * 
      * A target corresponding to the committed cursor for the given subscription
      * and topic partition.
@@ -112,8 +87,6 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Default value. This value is unused.
      * 
@@ -122,8 +95,6 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NAMED_TARGET_UNSPECIFIED_VALUE = 0; /** - * - * *
      * A target corresponding to the most recently published message in the
      * partition.
@@ -133,8 +104,6 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int HEAD_VALUE = 1;
     /**
-     *
-     *
      * 
      * A target corresponding to the committed cursor for the given subscription
      * and topic partition.
@@ -144,6 +113,7 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int COMMITTED_CURSOR_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -168,49 +138,49 @@ public static NamedTarget valueOf(int value) {
      */
     public static NamedTarget forNumber(int value) {
       switch (value) {
-        case 0:
-          return NAMED_TARGET_UNSPECIFIED;
-        case 1:
-          return HEAD;
-        case 2:
-          return COMMITTED_CURSOR;
-        default:
-          return null;
+        case 0: return NAMED_TARGET_UNSPECIFIED;
+        case 1: return HEAD;
+        case 2: return COMMITTED_CURSOR;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        NamedTarget> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public NamedTarget findValueByNumber(int number) {
+              return NamedTarget.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public NamedTarget findValueByNumber(int number) {
-            return NamedTarget.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.pubsublite.proto.SeekRequest.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final NamedTarget[] VALUES = values();
 
-    public static NamedTarget valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static NamedTarget valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -228,19 +198,15 @@ private NamedTarget(int value) {
   }
 
   private int targetCase_ = 0;
-
   @SuppressWarnings("serial")
   private java.lang.Object target_;
-
   public enum TargetCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     NAMED_TARGET(1),
     CURSOR(2),
     TARGET_NOT_SET(0);
     private final int value;
-
     private TargetCase(int value) {
       this.value = value;
     }
@@ -256,50 +222,41 @@ public static TargetCase valueOf(int value) {
 
     public static TargetCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return NAMED_TARGET;
-        case 2:
-          return CURSOR;
-        case 0:
-          return TARGET_NOT_SET;
-        default:
-          return null;
+        case 1: return NAMED_TARGET;
+        case 2: return CURSOR;
+        case 0: return TARGET_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public TargetCase getTargetCase() {
-    return TargetCase.forNumber(targetCase_);
+  public TargetCase
+  getTargetCase() {
+    return TargetCase.forNumber(
+        targetCase_);
   }
 
   public static final int NAMED_TARGET_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * A named target.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; - * * @return Whether the namedTarget field is set. */ public boolean hasNamedTarget() { return targetCase_ == 1; } /** - * - * *
    * A named target.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; - * * @return The enum numeric value on the wire for namedTarget. */ public int getNamedTargetValue() { @@ -309,39 +266,30 @@ public int getNamedTargetValue() { return 0; } /** - * - * *
    * A named target.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; - * * @return The namedTarget. */ public com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget getNamedTarget() { if (targetCase_ == 1) { - com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget result = - com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.forNumber( - (java.lang.Integer) target_); - return result == null - ? com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.UNRECOGNIZED - : result; + com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget result = com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.forNumber( + (java.lang.Integer) target_); + return result == null ? com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.UNRECOGNIZED : result; } return com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.NAMED_TARGET_UNSPECIFIED; } public static final int CURSOR_FIELD_NUMBER = 2; /** - * - * *
    * A target corresponding to the cursor, pointing to anywhere in the
    * topic partition.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; - * * @return Whether the cursor field is set. */ @java.lang.Override @@ -349,27 +297,22 @@ public boolean hasCursor() { return targetCase_ == 2; } /** - * - * *
    * A target corresponding to the cursor, pointing to anywhere in the
    * topic partition.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; - * * @return The cursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getCursor() { if (targetCase_ == 2) { - return (com.google.cloud.pubsublite.proto.Cursor) target_; + return (com.google.cloud.pubsublite.proto.Cursor) target_; } return com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance(); } /** - * - * *
    * A target corresponding to the cursor, pointing to anywhere in the
    * topic partition.
@@ -380,13 +323,12 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() {
   @java.lang.Override
   public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
     if (targetCase_ == 2) {
-      return (com.google.cloud.pubsublite.proto.Cursor) target_;
+       return (com.google.cloud.pubsublite.proto.Cursor) target_;
     }
     return com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -398,7 +340,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (targetCase_ == 1) {
       output.writeEnum(1, ((java.lang.Integer) target_));
     }
@@ -415,13 +358,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (targetCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeEnumSize(1, ((java.lang.Integer) target_));
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(1, ((java.lang.Integer) target_));
     }
     if (targetCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.cloud.pubsublite.proto.Cursor) target_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.cloud.pubsublite.proto.Cursor) target_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -431,21 +373,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.pubsublite.proto.SeekRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.SeekRequest other =
-        (com.google.cloud.pubsublite.proto.SeekRequest) obj;
+    com.google.cloud.pubsublite.proto.SeekRequest other = (com.google.cloud.pubsublite.proto.SeekRequest) obj;
 
     if (!getTargetCase().equals(other.getTargetCase())) return false;
     switch (targetCase_) {
       case 1:
-        if (getNamedTargetValue() != other.getNamedTargetValue()) return false;
+        if (getNamedTargetValue()
+            != other.getNamedTargetValue()) return false;
         break;
       case 2:
-        if (!getCursor().equals(other.getCursor())) return false;
+        if (!getCursor()
+            .equals(other.getCursor())) return false;
         break;
       case 0:
       default:
@@ -478,104 +421,99 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.pubsublite.proto.SeekRequest parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.pubsublite.proto.SeekRequest parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.SeekRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.SeekRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.SeekRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.SeekRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.SeekRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.SeekRequest parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.SeekRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.pubsublite.proto.SeekRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.SeekRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.pubsublite.proto.SeekRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.SeekRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.SeekRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.pubsublite.proto.SeekRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request to update the stream's delivery cursor based on the given target.
    * Resets the server available tokens to 0. SeekRequests past head result in
@@ -587,32 +525,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.SeekRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.SeekRequest)
       com.google.cloud.pubsublite.proto.SeekRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.SeekRequest.class,
-              com.google.cloud.pubsublite.proto.SeekRequest.Builder.class);
+              com.google.cloud.pubsublite.proto.SeekRequest.class, com.google.cloud.pubsublite.proto.SeekRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.SeekRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -626,9 +565,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.SubscriberProto
-          .internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor;
     }
 
     @java.lang.Override
@@ -647,11 +586,8 @@ public com.google.cloud.pubsublite.proto.SeekRequest build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.SeekRequest buildPartial() {
-      com.google.cloud.pubsublite.proto.SeekRequest result =
-          new com.google.cloud.pubsublite.proto.SeekRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.pubsublite.proto.SeekRequest result = new com.google.cloud.pubsublite.proto.SeekRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -664,7 +600,8 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.SeekRequest result)
     private void buildPartialOneofs(com.google.cloud.pubsublite.proto.SeekRequest result) {
       result.targetCase_ = targetCase_;
       result.target_ = this.target_;
-      if (targetCase_ == 2 && cursorBuilder_ != null) {
+      if (targetCase_ == 2 &&
+          cursorBuilder_ != null) {
         result.target_ = cursorBuilder_.build();
       }
     }
@@ -673,39 +610,38 @@ private void buildPartialOneofs(com.google.cloud.pubsublite.proto.SeekRequest re
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.pubsublite.proto.SeekRequest) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.SeekRequest) other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.SeekRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -715,20 +651,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.SeekRequest other) {
       if (other == com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance()) return this;
       switch (other.getTargetCase()) {
-        case NAMED_TARGET:
-          {
-            setNamedTargetValue(other.getNamedTargetValue());
-            break;
-          }
-        case CURSOR:
-          {
-            mergeCursor(other.getCursor());
-            break;
-          }
-        case TARGET_NOT_SET:
-          {
-            break;
-          }
+        case NAMED_TARGET: {
+          setNamedTargetValue(other.getNamedTargetValue());
+          break;
+        }
+        case CURSOR: {
+          mergeCursor(other.getCursor());
+          break;
+        }
+        case TARGET_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -756,26 +689,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                int rawValue = input.readEnum();
-                targetCase_ = 1;
-                target_ = rawValue;
-                break;
-              } // case 8
-            case 18:
-              {
-                input.readMessage(getCursorFieldBuilder().getBuilder(), extensionRegistry);
-                targetCase_ = 2;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              int rawValue = input.readEnum();
+              targetCase_ = 1;
+              target_ = rawValue;
+              break;
+            } // case 8
+            case 18: {
+              input.readMessage(
+                  getCursorFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              targetCase_ = 2;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -785,12 +717,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int targetCase_ = 0;
     private java.lang.Object target_;
-
-    public TargetCase getTargetCase() {
-      return TargetCase.forNumber(targetCase_);
+    public TargetCase
+        getTargetCase() {
+      return TargetCase.forNumber(
+          targetCase_);
     }
 
     public Builder clearTarget() {
@@ -803,14 +735,11 @@ public Builder clearTarget() {
     private int bitField0_;
 
     /**
-     *
-     *
      * 
      * A named target.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; - * * @return Whether the namedTarget field is set. */ @java.lang.Override @@ -818,14 +747,11 @@ public boolean hasNamedTarget() { return targetCase_ == 1; } /** - * - * *
      * A named target.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; - * * @return The enum numeric value on the wire for namedTarget. */ @java.lang.Override @@ -836,14 +762,11 @@ public int getNamedTargetValue() { return 0; } /** - * - * *
      * A named target.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; - * * @param value The enum numeric value on the wire for namedTarget to set. * @return This builder for chaining. */ @@ -854,37 +777,28 @@ public Builder setNamedTargetValue(int value) { return this; } /** - * - * *
      * A named target.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; - * * @return The namedTarget. */ @java.lang.Override public com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget getNamedTarget() { if (targetCase_ == 1) { - com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget result = - com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.forNumber( - (java.lang.Integer) target_); - return result == null - ? com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.UNRECOGNIZED - : result; + com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget result = com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.forNumber( + (java.lang.Integer) target_); + return result == null ? com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.UNRECOGNIZED : result; } return com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget.NAMED_TARGET_UNSPECIFIED; } /** - * - * *
      * A named target.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; - * * @param value The namedTarget to set. * @return This builder for chaining. */ @@ -898,14 +812,11 @@ public Builder setNamedTarget(com.google.cloud.pubsublite.proto.SeekRequest.Name return this; } /** - * - * *
      * A named target.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; - * * @return This builder for chaining. */ public Builder clearNamedTarget() { @@ -918,20 +829,14 @@ public Builder clearNamedTarget() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> - cursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> cursorBuilder_; /** - * - * *
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; - * * @return Whether the cursor field is set. */ @java.lang.Override @@ -939,15 +844,12 @@ public boolean hasCursor() { return targetCase_ == 2; } /** - * - * *
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; - * * @return The cursor. */ @java.lang.Override @@ -965,8 +867,6 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() { } } /** - * - * *
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -988,8 +888,6 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -997,7 +895,8 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) {
      *
      * .google.cloud.pubsublite.v1.Cursor cursor = 2;
      */
-    public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
+    public Builder setCursor(
+        com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) {
       if (cursorBuilder_ == null) {
         target_ = builderForValue.build();
         onChanged();
@@ -1008,8 +907,6 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde
       return this;
     }
     /**
-     *
-     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -1019,13 +916,10 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde
      */
     public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       if (cursorBuilder_ == null) {
-        if (targetCase_ == 2
-            && target_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
-          target_ =
-              com.google.cloud.pubsublite.proto.Cursor.newBuilder(
-                      (com.google.cloud.pubsublite.proto.Cursor) target_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (targetCase_ == 2 &&
+            target_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) {
+          target_ = com.google.cloud.pubsublite.proto.Cursor.newBuilder((com.google.cloud.pubsublite.proto.Cursor) target_)
+              .mergeFrom(value).buildPartial();
         } else {
           target_ = value;
         }
@@ -1041,8 +935,6 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -1067,8 +959,6 @@ public Builder clearCursor() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -1080,8 +970,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() {
       return getCursorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -1101,8 +989,6 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * A target corresponding to the cursor, pointing to anywhere in the
      * topic partition.
@@ -1111,19 +997,14 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
      * .google.cloud.pubsublite.v1.Cursor cursor = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Cursor,
-            com.google.cloud.pubsublite.proto.Cursor.Builder,
-            com.google.cloud.pubsublite.proto.CursorOrBuilder>
+        com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> 
         getCursorFieldBuilder() {
       if (cursorBuilder_ == null) {
         if (!(targetCase_ == 2)) {
           target_ = com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance();
         }
-        cursorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.pubsublite.proto.Cursor,
-                com.google.cloud.pubsublite.proto.Cursor.Builder,
-                com.google.cloud.pubsublite.proto.CursorOrBuilder>(
+        cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>(
                 (com.google.cloud.pubsublite.proto.Cursor) target_,
                 getParentForChildren(),
                 isClean());
@@ -1133,9 +1014,9 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() {
       onChanged();
       return cursorBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1145,12 +1026,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SeekRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SeekRequest)
   private static final com.google.cloud.pubsublite.proto.SeekRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SeekRequest();
   }
@@ -1159,27 +1040,27 @@ public static com.google.cloud.pubsublite.proto.SeekRequest getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SeekRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SeekRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1194,4 +1075,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.pubsublite.proto.SeekRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequestOrBuilder.java
similarity index 72%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequestOrBuilder.java
index 460bf3fbb..e3f7f94ab 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekRequestOrBuilder.java
@@ -1,95 +1,62 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/subscriber.proto
 
 // Protobuf Java Version: 3.25.2
 package com.google.cloud.pubsublite.proto;
 
-public interface SeekRequestOrBuilder
-    extends
+public interface SeekRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SeekRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A named target.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; - * * @return Whether the namedTarget field is set. */ boolean hasNamedTarget(); /** - * - * *
    * A named target.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; - * * @return The enum numeric value on the wire for namedTarget. */ int getNamedTargetValue(); /** - * - * *
    * A named target.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1; - * * @return The namedTarget. */ com.google.cloud.pubsublite.proto.SeekRequest.NamedTarget getNamedTarget(); /** - * - * *
    * A target corresponding to the cursor, pointing to anywhere in the
    * topic partition.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; - * * @return Whether the cursor field is set. */ boolean hasCursor(); /** - * - * *
    * A target corresponding to the cursor, pointing to anywhere in the
    * topic partition.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 2; - * * @return The cursor. */ com.google.cloud.pubsublite.proto.Cursor getCursor(); /** - * - * *
    * A target corresponding to the cursor, pointing to anywhere in the
    * topic partition.
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponse.java
similarity index 65%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponse.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponse.java
index a8f62dbe6..fa05aec44 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponse.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponse.java
@@ -1,18 +1,3 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/subscriber.proto
 
@@ -20,59 +5,53 @@
 package com.google.cloud.pubsublite.proto;
 
 /**
- *
- *
  * 
  * Response to a SeekRequest.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SeekResponse} */ -public final class SeekResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SeekResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.SeekResponse) SeekResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SeekResponse.newBuilder() to construct. private SeekResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SeekResponse() {} + private SeekResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SeekResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SeekResponse.class, - com.google.cloud.pubsublite.proto.SeekResponse.Builder.class); + com.google.cloud.pubsublite.proto.SeekResponse.class, com.google.cloud.pubsublite.proto.SeekResponse.Builder.class); } private int bitField0_; public static final int CURSOR_FIELD_NUMBER = 1; private com.google.cloud.pubsublite.proto.Cursor cursor_; /** - * - * *
    * The new delivery cursor for the current stream.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ @java.lang.Override @@ -80,25 +59,18 @@ public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The new delivery cursor for the current stream.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getCursor() { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } /** - * - * *
    * The new delivery cursor for the current stream.
    * 
@@ -107,13 +79,10 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() { */ @java.lang.Override public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -125,7 +94,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCursor()); } @@ -139,7 +109,8 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCursor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCursor()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -149,17 +120,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.SeekResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.SeekResponse other = - (com.google.cloud.pubsublite.proto.SeekResponse) obj; + com.google.cloud.pubsublite.proto.SeekResponse other = (com.google.cloud.pubsublite.proto.SeekResponse) obj; if (hasCursor() != other.hasCursor()) return false; if (hasCursor()) { - if (!getCursor().equals(other.getCursor())) return false; + if (!getCursor() + .equals(other.getCursor())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -181,127 +152,120 @@ public int hashCode() { return hash; } - public static com.google.cloud.pubsublite.proto.SeekResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.pubsublite.proto.SeekResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SeekResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.SeekResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SeekResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.SeekResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SeekResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.SeekResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.SeekResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.SeekResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.SeekResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.SeekResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.SeekResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.SeekResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.pubsublite.proto.SeekResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response to a SeekRequest.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SeekResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.SeekResponse) com.google.cloud.pubsublite.proto.SeekResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SeekResponse.class, - com.google.cloud.pubsublite.proto.SeekResponse.Builder.class); + com.google.cloud.pubsublite.proto.SeekResponse.class, com.google.cloud.pubsublite.proto.SeekResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.SeekResponse.newBuilder() @@ -309,17 +273,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCursorFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -333,9 +297,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor; } @java.lang.Override @@ -354,11 +318,8 @@ public com.google.cloud.pubsublite.proto.SeekResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.SeekResponse buildPartial() { - com.google.cloud.pubsublite.proto.SeekResponse result = - new com.google.cloud.pubsublite.proto.SeekResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.SeekResponse result = new com.google.cloud.pubsublite.proto.SeekResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -367,7 +328,9 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.SeekResponse result int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build(); + result.cursor_ = cursorBuilder_ == null + ? cursor_ + : cursorBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -377,39 +340,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.SeekResponse result public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.SeekResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.SeekResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.SeekResponse)other); } else { super.mergeFrom(other); return this; @@ -447,19 +409,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCursorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCursorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -469,52 +431,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.pubsublite.proto.Cursor cursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> - cursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> cursorBuilder_; /** - * - * *
      * The new delivery cursor for the current stream.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The new delivery cursor for the current stream.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ public com.google.cloud.pubsublite.proto.Cursor getCursor() { if (cursorBuilder_ == null) { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } else { return cursorBuilder_.getMessage(); } } /** - * - * *
      * The new delivery cursor for the current stream.
      * 
@@ -535,15 +483,14 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The new delivery cursor for the current stream.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; */ - public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { + public Builder setCursor( + com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { if (cursorBuilder_ == null) { cursor_ = builderForValue.build(); } else { @@ -554,8 +501,6 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde return this; } /** - * - * *
      * The new delivery cursor for the current stream.
      * 
@@ -564,9 +509,9 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde */ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { if (cursorBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && cursor_ != null - && cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + cursor_ != null && + cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { getCursorBuilder().mergeFrom(value); } else { cursor_ = value; @@ -581,8 +526,6 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The new delivery cursor for the current stream.
      * 
@@ -600,8 +543,6 @@ public Builder clearCursor() { return this; } /** - * - * *
      * The new delivery cursor for the current stream.
      * 
@@ -614,8 +555,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() { return getCursorFieldBuilder().getBuilder(); } /** - * - * *
      * The new delivery cursor for the current stream.
      * 
@@ -626,14 +565,11 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { if (cursorBuilder_ != null) { return cursorBuilder_.getMessageOrBuilder(); } else { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? + com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } } /** - * - * *
      * The new delivery cursor for the current stream.
      * 
@@ -641,24 +577,21 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { * .google.cloud.pubsublite.v1.Cursor cursor = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> getCursorFieldBuilder() { if (cursorBuilder_ == null) { - cursorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder>( - getCursor(), getParentForChildren(), isClean()); + cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>( + getCursor(), + getParentForChildren(), + isClean()); cursor_ = null; } return cursorBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -668,12 +601,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SeekResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SeekResponse) private static final com.google.cloud.pubsublite.proto.SeekResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SeekResponse(); } @@ -682,27 +615,27 @@ public static com.google.cloud.pubsublite.proto.SeekResponse getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SeekResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SeekResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -717,4 +650,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.SeekResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponseOrBuilder.java similarity index 59% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponseOrBuilder.java index 25d192989..635ed5310 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekResponseOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface SeekResponseOrBuilder - extends +public interface SeekResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SeekResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The new delivery cursor for the current stream.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ boolean hasCursor(); /** - * - * *
    * The new delivery cursor for the current stream.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ com.google.cloud.pubsublite.proto.Cursor getCursor(); /** - * - * *
    * The new delivery cursor for the current stream.
    * 
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequest.java similarity index 69% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequest.java index 666eefef5..af1829ca3 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -20,62 +5,55 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for SeekSubscription.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SeekSubscriptionRequest} */ -public final class SeekSubscriptionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SeekSubscriptionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.SeekSubscriptionRequest) SeekSubscriptionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SeekSubscriptionRequest.newBuilder() to construct. private SeekSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SeekSubscriptionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SeekSubscriptionRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.class, - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.class, com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.Builder.class); } /** - * - * *
    * A named position with respect to the message backlog.
    * 
* * Protobuf enum {@code google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget} */ - public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum { + public enum NamedTarget + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified named target. Do not use.
      * 
@@ -84,8 +62,6 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum { */ NAMED_TARGET_UNSPECIFIED(0), /** - * - * *
      * Seek to the oldest retained message.
      * 
@@ -94,8 +70,6 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum { */ TAIL(1), /** - * - * *
      * Seek past all recently published messages, skipping the entire message
      * backlog.
@@ -108,8 +82,6 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified named target. Do not use.
      * 
@@ -118,8 +90,6 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NAMED_TARGET_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Seek to the oldest retained message.
      * 
@@ -128,8 +98,6 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TAIL_VALUE = 1; /** - * - * *
      * Seek past all recently published messages, skipping the entire message
      * backlog.
@@ -139,6 +107,7 @@ public enum NamedTarget implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int HEAD_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -163,51 +132,49 @@ public static NamedTarget valueOf(int value) {
      */
     public static NamedTarget forNumber(int value) {
       switch (value) {
-        case 0:
-          return NAMED_TARGET_UNSPECIFIED;
-        case 1:
-          return TAIL;
-        case 2:
-          return HEAD;
-        default:
-          return null;
+        case 0: return NAMED_TARGET_UNSPECIFIED;
+        case 1: return TAIL;
+        case 2: return HEAD;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        NamedTarget> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public NamedTarget findValueByNumber(int number) {
+              return NamedTarget.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public NamedTarget findValueByNumber(int number) {
-            return NamedTarget.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final NamedTarget[] VALUES = values();
 
-    public static NamedTarget valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static NamedTarget valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -225,19 +192,15 @@ private NamedTarget(int value) {
   }
 
   private int targetCase_ = 0;
-
   @SuppressWarnings("serial")
   private java.lang.Object target_;
-
   public enum TargetCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     NAMED_TARGET(2),
     TIME_TARGET(3),
     TARGET_NOT_SET(0);
     private final int value;
-
     private TargetCase(int value) {
       this.value = value;
     }
@@ -253,41 +216,32 @@ public static TargetCase valueOf(int value) {
 
     public static TargetCase forNumber(int value) {
       switch (value) {
-        case 2:
-          return NAMED_TARGET;
-        case 3:
-          return TIME_TARGET;
-        case 0:
-          return TARGET_NOT_SET;
-        default:
-          return null;
+        case 2: return NAMED_TARGET;
+        case 3: return TIME_TARGET;
+        case 0: return TARGET_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public TargetCase getTargetCase() {
-    return TargetCase.forNumber(targetCase_);
+  public TargetCase
+  getTargetCase() {
+    return TargetCase.forNumber(
+        targetCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the subscription to seek.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -296,31 +250,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the subscription to seek.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -330,28 +282,22 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int NAMED_TARGET_FIELD_NUMBER = 2; /** - * - * *
    * Seek to a named position with respect to the message backlog.
    * 
* * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; - * * @return Whether the namedTarget field is set. */ public boolean hasNamedTarget() { return targetCase_ == 2; } /** - * - * *
    * Seek to a named position with respect to the message backlog.
    * 
* * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; - * * @return The enum numeric value on the wire for namedTarget. */ public int getNamedTargetValue() { @@ -361,33 +307,24 @@ public int getNamedTargetValue() { return 0; } /** - * - * *
    * Seek to a named position with respect to the message backlog.
    * 
* * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; - * * @return The namedTarget. */ public com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget getNamedTarget() { if (targetCase_ == 2) { - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget result = - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.forNumber( - (java.lang.Integer) target_); - return result == null - ? com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.UNRECOGNIZED - : result; - } - return com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget - .NAMED_TARGET_UNSPECIFIED; + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget result = com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.forNumber( + (java.lang.Integer) target_); + return result == null ? com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.UNRECOGNIZED : result; + } + return com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.NAMED_TARGET_UNSPECIFIED; } public static final int TIME_TARGET_FIELD_NUMBER = 3; /** - * - * *
    * Seek to the first message whose publish or event time is greater than or
    * equal to the specified query time. If no such message can be located,
@@ -395,7 +332,6 @@ public com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget get
    * 
* * .google.cloud.pubsublite.v1.TimeTarget time_target = 3; - * * @return Whether the timeTarget field is set. */ @java.lang.Override @@ -403,8 +339,6 @@ public boolean hasTimeTarget() { return targetCase_ == 3; } /** - * - * *
    * Seek to the first message whose publish or event time is greater than or
    * equal to the specified query time. If no such message can be located,
@@ -412,19 +346,16 @@ public boolean hasTimeTarget() {
    * 
* * .google.cloud.pubsublite.v1.TimeTarget time_target = 3; - * * @return The timeTarget. */ @java.lang.Override public com.google.cloud.pubsublite.proto.TimeTarget getTimeTarget() { if (targetCase_ == 3) { - return (com.google.cloud.pubsublite.proto.TimeTarget) target_; + return (com.google.cloud.pubsublite.proto.TimeTarget) target_; } return com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance(); } /** - * - * *
    * Seek to the first message whose publish or event time is greater than or
    * equal to the specified query time. If no such message can be located,
@@ -436,13 +367,12 @@ public com.google.cloud.pubsublite.proto.TimeTarget getTimeTarget() {
   @java.lang.Override
   public com.google.cloud.pubsublite.proto.TimeTargetOrBuilder getTimeTargetOrBuilder() {
     if (targetCase_ == 3) {
-      return (com.google.cloud.pubsublite.proto.TimeTarget) target_;
+       return (com.google.cloud.pubsublite.proto.TimeTarget) target_;
     }
     return com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -454,7 +384,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -477,13 +408,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (targetCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeEnumSize(2, ((java.lang.Integer) target_));
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(2, ((java.lang.Integer) target_));
     }
     if (targetCase_ == 3) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              3, (com.google.cloud.pubsublite.proto.TimeTarget) target_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, (com.google.cloud.pubsublite.proto.TimeTarget) target_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -493,22 +423,24 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.pubsublite.proto.SeekSubscriptionRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.SeekSubscriptionRequest other =
-        (com.google.cloud.pubsublite.proto.SeekSubscriptionRequest) obj;
+    com.google.cloud.pubsublite.proto.SeekSubscriptionRequest other = (com.google.cloud.pubsublite.proto.SeekSubscriptionRequest) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (!getTargetCase().equals(other.getTargetCase())) return false;
     switch (targetCase_) {
       case 2:
-        if (getNamedTargetValue() != other.getNamedTargetValue()) return false;
+        if (getNamedTargetValue()
+            != other.getNamedTargetValue()) return false;
         break;
       case 3:
-        if (!getTimeTarget().equals(other.getTimeTarget())) return false;
+        if (!getTimeTarget()
+            .equals(other.getTimeTarget())) return false;
         break;
       case 0:
       default:
@@ -544,136 +476,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.pubsublite.proto.SeekSubscriptionRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.pubsublite.proto.SeekSubscriptionRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request for SeekSubscription.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SeekSubscriptionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.SeekSubscriptionRequest) com.google.cloud.pubsublite.proto.SeekSubscriptionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.class, - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.class, com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -688,9 +615,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor; } @java.lang.Override @@ -709,11 +636,8 @@ public com.google.cloud.pubsublite.proto.SeekSubscriptionRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.SeekSubscriptionRequest buildPartial() { - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest result = - new com.google.cloud.pubsublite.proto.SeekSubscriptionRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest result = new com.google.cloud.pubsublite.proto.SeekSubscriptionRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -726,11 +650,11 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.SeekSubscriptionReq } } - private void buildPartialOneofs( - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest result) { + private void buildPartialOneofs(com.google.cloud.pubsublite.proto.SeekSubscriptionRequest result) { result.targetCase_ = targetCase_; result.target_ = this.target_; - if (targetCase_ == 3 && timeTargetBuilder_ != null) { + if (targetCase_ == 3 && + timeTargetBuilder_ != null) { result.target_ = timeTargetBuilder_.build(); } } @@ -739,39 +663,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.SeekSubscriptionRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.SeekSubscriptionRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.SeekSubscriptionRequest)other); } else { super.mergeFrom(other); return this; @@ -779,28 +702,24 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.SeekSubscriptionRequest other) { - if (other == com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } switch (other.getTargetCase()) { - case NAMED_TARGET: - { - setNamedTargetValue(other.getNamedTargetValue()); - break; - } - case TIME_TARGET: - { - mergeTimeTarget(other.getTimeTarget()); - break; - } - case TARGET_NOT_SET: - { - break; - } + case NAMED_TARGET: { + setNamedTargetValue(other.getNamedTargetValue()); + break; + } + case TIME_TARGET: { + mergeTimeTarget(other.getTimeTarget()); + break; + } + case TARGET_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -828,32 +747,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - int rawValue = input.readEnum(); - targetCase_ = 2; - target_ = rawValue; - break; - } // case 16 - case 26: - { - input.readMessage(getTimeTargetFieldBuilder().getBuilder(), extensionRegistry); - targetCase_ = 3; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + int rawValue = input.readEnum(); + targetCase_ = 2; + target_ = rawValue; + break; + } // case 16 + case 26: { + input.readMessage( + getTimeTargetFieldBuilder().getBuilder(), + extensionRegistry); + targetCase_ = 3; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -863,12 +780,12 @@ public Builder mergeFrom( } // finally return this; } - private int targetCase_ = 0; private java.lang.Object target_; - - public TargetCase getTargetCase() { - return TargetCase.forNumber(targetCase_); + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); } public Builder clearTarget() { @@ -882,22 +799,18 @@ public Builder clearTarget() { private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the subscription to seek.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -906,23 +819,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the subscription to seek.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -930,39 +840,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the subscription to seek.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the subscription to seek.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -972,23 +871,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the subscription to seek.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -997,15 +890,11 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * Seek to a named position with respect to the message backlog.
      * 
* - * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; - * - * + * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; * @return Whether the namedTarget field is set. */ @java.lang.Override @@ -1013,15 +902,11 @@ public boolean hasNamedTarget() { return targetCase_ == 2; } /** - * - * *
      * Seek to a named position with respect to the message backlog.
      * 
* - * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; - * - * + * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; * @return The enum numeric value on the wire for namedTarget. */ @java.lang.Override @@ -1032,15 +917,11 @@ public int getNamedTargetValue() { return 0; } /** - * - * *
      * Seek to a named position with respect to the message backlog.
      * 
* - * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; - * - * + * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; * @param value The enum numeric value on the wire for namedTarget to set. * @return This builder for chaining. */ @@ -1051,45 +932,32 @@ public Builder setNamedTargetValue(int value) { return this; } /** - * - * *
      * Seek to a named position with respect to the message backlog.
      * 
* - * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; - * - * + * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; * @return The namedTarget. */ @java.lang.Override public com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget getNamedTarget() { if (targetCase_ == 2) { - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget result = - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.forNumber( - (java.lang.Integer) target_); - return result == null - ? com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.UNRECOGNIZED - : result; + com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget result = com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.forNumber( + (java.lang.Integer) target_); + return result == null ? com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.UNRECOGNIZED : result; } - return com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget - .NAMED_TARGET_UNSPECIFIED; + return com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget.NAMED_TARGET_UNSPECIFIED; } /** - * - * *
      * Seek to a named position with respect to the message backlog.
      * 
* - * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; - * - * + * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; * @param value The namedTarget to set. * @return This builder for chaining. */ - public Builder setNamedTarget( - com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget value) { + public Builder setNamedTarget(com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget value) { if (value == null) { throw new NullPointerException(); } @@ -1099,15 +967,11 @@ public Builder setNamedTarget( return this; } /** - * - * *
      * Seek to a named position with respect to the message backlog.
      * 
* - * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; - * - * + * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; * @return This builder for chaining. */ public Builder clearNamedTarget() { @@ -1120,13 +984,8 @@ public Builder clearNamedTarget() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.TimeTarget, - com.google.cloud.pubsublite.proto.TimeTarget.Builder, - com.google.cloud.pubsublite.proto.TimeTargetOrBuilder> - timeTargetBuilder_; + com.google.cloud.pubsublite.proto.TimeTarget, com.google.cloud.pubsublite.proto.TimeTarget.Builder, com.google.cloud.pubsublite.proto.TimeTargetOrBuilder> timeTargetBuilder_; /** - * - * *
      * Seek to the first message whose publish or event time is greater than or
      * equal to the specified query time. If no such message can be located,
@@ -1134,7 +993,6 @@ public Builder clearNamedTarget() {
      * 
* * .google.cloud.pubsublite.v1.TimeTarget time_target = 3; - * * @return Whether the timeTarget field is set. */ @java.lang.Override @@ -1142,8 +1000,6 @@ public boolean hasTimeTarget() { return targetCase_ == 3; } /** - * - * *
      * Seek to the first message whose publish or event time is greater than or
      * equal to the specified query time. If no such message can be located,
@@ -1151,7 +1007,6 @@ public boolean hasTimeTarget() {
      * 
* * .google.cloud.pubsublite.v1.TimeTarget time_target = 3; - * * @return The timeTarget. */ @java.lang.Override @@ -1169,8 +1024,6 @@ public com.google.cloud.pubsublite.proto.TimeTarget getTimeTarget() { } } /** - * - * *
      * Seek to the first message whose publish or event time is greater than or
      * equal to the specified query time. If no such message can be located,
@@ -1193,8 +1046,6 @@ public Builder setTimeTarget(com.google.cloud.pubsublite.proto.TimeTarget value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Seek to the first message whose publish or event time is greater than or
      * equal to the specified query time. If no such message can be located,
@@ -1215,8 +1066,6 @@ public Builder setTimeTarget(
       return this;
     }
     /**
-     *
-     *
      * 
      * Seek to the first message whose publish or event time is greater than or
      * equal to the specified query time. If no such message can be located,
@@ -1227,13 +1076,10 @@ public Builder setTimeTarget(
      */
     public Builder mergeTimeTarget(com.google.cloud.pubsublite.proto.TimeTarget value) {
       if (timeTargetBuilder_ == null) {
-        if (targetCase_ == 3
-            && target_ != com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance()) {
-          target_ =
-              com.google.cloud.pubsublite.proto.TimeTarget.newBuilder(
-                      (com.google.cloud.pubsublite.proto.TimeTarget) target_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (targetCase_ == 3 &&
+            target_ != com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance()) {
+          target_ = com.google.cloud.pubsublite.proto.TimeTarget.newBuilder((com.google.cloud.pubsublite.proto.TimeTarget) target_)
+              .mergeFrom(value).buildPartial();
         } else {
           target_ = value;
         }
@@ -1249,8 +1095,6 @@ public Builder mergeTimeTarget(com.google.cloud.pubsublite.proto.TimeTarget valu
       return this;
     }
     /**
-     *
-     *
      * 
      * Seek to the first message whose publish or event time is greater than or
      * equal to the specified query time. If no such message can be located,
@@ -1276,8 +1120,6 @@ public Builder clearTimeTarget() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Seek to the first message whose publish or event time is greater than or
      * equal to the specified query time. If no such message can be located,
@@ -1290,8 +1132,6 @@ public com.google.cloud.pubsublite.proto.TimeTarget.Builder getTimeTargetBuilder
       return getTimeTargetFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Seek to the first message whose publish or event time is greater than or
      * equal to the specified query time. If no such message can be located,
@@ -1312,8 +1152,6 @@ public com.google.cloud.pubsublite.proto.TimeTargetOrBuilder getTimeTargetOrBuil
       }
     }
     /**
-     *
-     *
      * 
      * Seek to the first message whose publish or event time is greater than or
      * equal to the specified query time. If no such message can be located,
@@ -1323,19 +1161,14 @@ public com.google.cloud.pubsublite.proto.TimeTargetOrBuilder getTimeTargetOrBuil
      * .google.cloud.pubsublite.v1.TimeTarget time_target = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.TimeTarget,
-            com.google.cloud.pubsublite.proto.TimeTarget.Builder,
-            com.google.cloud.pubsublite.proto.TimeTargetOrBuilder>
+        com.google.cloud.pubsublite.proto.TimeTarget, com.google.cloud.pubsublite.proto.TimeTarget.Builder, com.google.cloud.pubsublite.proto.TimeTargetOrBuilder> 
         getTimeTargetFieldBuilder() {
       if (timeTargetBuilder_ == null) {
         if (!(targetCase_ == 3)) {
           target_ = com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance();
         }
-        timeTargetBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.pubsublite.proto.TimeTarget,
-                com.google.cloud.pubsublite.proto.TimeTarget.Builder,
-                com.google.cloud.pubsublite.proto.TimeTargetOrBuilder>(
+        timeTargetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.pubsublite.proto.TimeTarget, com.google.cloud.pubsublite.proto.TimeTarget.Builder, com.google.cloud.pubsublite.proto.TimeTargetOrBuilder>(
                 (com.google.cloud.pubsublite.proto.TimeTarget) target_,
                 getParentForChildren(),
                 isClean());
@@ -1345,9 +1178,9 @@ public com.google.cloud.pubsublite.proto.TimeTargetOrBuilder getTimeTargetOrBuil
       onChanged();
       return timeTargetBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1357,12 +1190,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SeekSubscriptionRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SeekSubscriptionRequest)
   private static final com.google.cloud.pubsublite.proto.SeekSubscriptionRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SeekSubscriptionRequest();
   }
@@ -1371,27 +1204,27 @@ public static com.google.cloud.pubsublite.proto.SeekSubscriptionRequest getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SeekSubscriptionRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SeekSubscriptionRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1406,4 +1239,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.pubsublite.proto.SeekSubscriptionRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequestOrBuilder.java
similarity index 72%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequestOrBuilder.java
index 23e977678..a3c10e567 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionRequestOrBuilder.java
@@ -1,98 +1,62 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/admin.proto
 
 // Protobuf Java Version: 3.25.2
 package com.google.cloud.pubsublite.proto;
 
-public interface SeekSubscriptionRequestOrBuilder
-    extends
+public interface SeekSubscriptionRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SeekSubscriptionRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The name of the subscription to seek.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the subscription to seek.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Seek to a named position with respect to the message backlog.
    * 
* * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; - * * @return Whether the namedTarget field is set. */ boolean hasNamedTarget(); /** - * - * *
    * Seek to a named position with respect to the message backlog.
    * 
* * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; - * * @return The enum numeric value on the wire for namedTarget. */ int getNamedTargetValue(); /** - * - * *
    * Seek to a named position with respect to the message backlog.
    * 
* * .google.cloud.pubsublite.v1.SeekSubscriptionRequest.NamedTarget named_target = 2; - * * @return The namedTarget. */ com.google.cloud.pubsublite.proto.SeekSubscriptionRequest.NamedTarget getNamedTarget(); /** - * - * *
    * Seek to the first message whose publish or event time is greater than or
    * equal to the specified query time. If no such message can be located,
@@ -100,13 +64,10 @@ public interface SeekSubscriptionRequestOrBuilder
    * 
* * .google.cloud.pubsublite.v1.TimeTarget time_target = 3; - * * @return Whether the timeTarget field is set. */ boolean hasTimeTarget(); /** - * - * *
    * Seek to the first message whose publish or event time is greater than or
    * equal to the specified query time. If no such message can be located,
@@ -114,13 +75,10 @@ public interface SeekSubscriptionRequestOrBuilder
    * 
* * .google.cloud.pubsublite.v1.TimeTarget time_target = 3; - * * @return The timeTarget. */ com.google.cloud.pubsublite.proto.TimeTarget getTimeTarget(); /** - * - * *
    * Seek to the first message whose publish or event time is greater than or
    * equal to the specified query time. If no such message can be located,
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponse.java
similarity index 61%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponse.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponse.java
index 99d87267c..3202a4bac 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponse.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponse.java
@@ -1,18 +1,3 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/admin.proto
 
@@ -20,49 +5,45 @@
 package com.google.cloud.pubsublite.proto;
 
 /**
- *
- *
  * 
  * Response for SeekSubscription long running operation.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SeekSubscriptionResponse} */ -public final class SeekSubscriptionResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SeekSubscriptionResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.SeekSubscriptionResponse) SeekSubscriptionResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SeekSubscriptionResponse.newBuilder() to construct. private SeekSubscriptionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SeekSubscriptionResponse() {} + private SeekSubscriptionResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SeekSubscriptionResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.class, - com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.Builder.class); + com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.class, com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -74,7 +55,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -92,13 +74,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.SeekSubscriptionResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.SeekSubscriptionResponse other = - (com.google.cloud.pubsublite.proto.SeekSubscriptionResponse) obj; + com.google.cloud.pubsublite.proto.SeekSubscriptionResponse other = (com.google.cloud.pubsublite.proto.SeekSubscriptionResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -117,136 +98,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.SeekSubscriptionResponse prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.SeekSubscriptionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for SeekSubscription long running operation.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SeekSubscriptionResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.SeekSubscriptionResponse) com.google.cloud.pubsublite.proto.SeekSubscriptionResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.class, - com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.Builder.class); + com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.class, com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -254,9 +230,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor; } @java.lang.Override @@ -275,8 +251,7 @@ public com.google.cloud.pubsublite.proto.SeekSubscriptionResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.SeekSubscriptionResponse buildPartial() { - com.google.cloud.pubsublite.proto.SeekSubscriptionResponse result = - new com.google.cloud.pubsublite.proto.SeekSubscriptionResponse(this); + com.google.cloud.pubsublite.proto.SeekSubscriptionResponse result = new com.google.cloud.pubsublite.proto.SeekSubscriptionResponse(this); onBuilt(); return result; } @@ -285,39 +260,38 @@ public com.google.cloud.pubsublite.proto.SeekSubscriptionResponse buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.SeekSubscriptionResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.SeekSubscriptionResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.SeekSubscriptionResponse)other); } else { super.mergeFrom(other); return this; @@ -325,8 +299,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.SeekSubscriptionResponse other) { - if (other == com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.SeekSubscriptionResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -353,13 +326,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -369,9 +341,9 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -381,12 +353,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SeekSubscriptionResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SeekSubscriptionResponse) private static final com.google.cloud.pubsublite.proto.SeekSubscriptionResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SeekSubscriptionResponse(); } @@ -395,27 +367,27 @@ public static com.google.cloud.pubsublite.proto.SeekSubscriptionResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SeekSubscriptionResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SeekSubscriptionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -430,4 +402,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.SeekSubscriptionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponseOrBuilder.java new file mode 100644 index 000000000..07c33a401 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponseOrBuilder.java @@ -0,0 +1,10 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.pubsublite.proto; + +public interface SeekSubscriptionResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SeekSubscriptionResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequest.java similarity index 63% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequest.java index 7d014a647..d3302ef84 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto @@ -20,8 +5,6 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Streaming request to update the committed cursor. Subsequent
  * SequencedCommitCursorRequests override outstanding ones.
@@ -29,51 +12,47 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.SequencedCommitCursorRequest}
  */
-public final class SequencedCommitCursorRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SequencedCommitCursorRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.SequencedCommitCursorRequest)
     SequencedCommitCursorRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SequencedCommitCursorRequest.newBuilder() to construct.
   private SequencedCommitCursorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private SequencedCommitCursorRequest() {}
+  private SequencedCommitCursorRequest() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SequencedCommitCursorRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.pubsublite.proto.CursorProto
-        .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.CursorProto
-        .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.class,
-            com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder.class);
+            com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.class, com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder.class);
   }
 
   private int bitField0_;
   public static final int CURSOR_FIELD_NUMBER = 1;
   private com.google.cloud.pubsublite.proto.Cursor cursor_;
   /**
-   *
-   *
    * 
    * The new value for the committed cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ @java.lang.Override @@ -81,25 +60,18 @@ public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The new value for the committed cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getCursor() { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } /** - * - * *
    * The new value for the committed cursor.
    * 
@@ -108,13 +80,10 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() { */ @java.lang.Override public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -126,7 +95,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCursor()); } @@ -140,7 +110,8 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCursor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCursor()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -150,17 +121,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest other = - (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) obj; + com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest other = (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) obj; if (hasCursor() != other.hasCursor()) return false; if (hasCursor()) { - if (!getCursor().equals(other.getCursor())) return false; + if (!getCursor() + .equals(other.getCursor())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -183,104 +154,98 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Streaming request to update the committed cursor. Subsequent
    * SequencedCommitCursorRequests override outstanding ones.
@@ -288,23 +253,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.SequencedCommitCursorRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.SequencedCommitCursorRequest)
       com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.pubsublite.proto.CursorProto
-          .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.CursorProto
-          .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.class,
-              com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder.class);
+              com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.class, com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.newBuilder()
@@ -312,17 +275,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getCursorFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -336,14 +299,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.CursorProto
-          .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest getDefaultInstanceForType() {
       return com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.getDefaultInstance();
     }
 
@@ -358,21 +320,19 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest buildPartial() {
-      com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest result =
-          new com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest result = new com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest result) {
+    private void buildPartial0(com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest result) {
       int from_bitField0_ = bitField0_;
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build();
+        result.cursor_ = cursorBuilder_ == null
+            ? cursor_
+            : cursorBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       result.bitField0_ |= to_bitField0_;
@@ -382,39 +342,38 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -422,9 +381,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest other) {
-      if (other
-          == com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.getDefaultInstance()) return this;
       if (other.hasCursor()) {
         mergeCursor(other.getCursor());
       }
@@ -454,19 +411,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getCursorFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getCursorFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -476,52 +433,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.pubsublite.proto.Cursor cursor_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.Cursor,
-            com.google.cloud.pubsublite.proto.Cursor.Builder,
-            com.google.cloud.pubsublite.proto.CursorOrBuilder>
-        cursorBuilder_;
+        com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> cursorBuilder_;
     /**
-     *
-     *
      * 
      * The new value for the committed cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The new value for the committed cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ public com.google.cloud.pubsublite.proto.Cursor getCursor() { if (cursorBuilder_ == null) { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } else { return cursorBuilder_.getMessage(); } } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -542,15 +485,14 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The new value for the committed cursor.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; */ - public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { + public Builder setCursor( + com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { if (cursorBuilder_ == null) { cursor_ = builderForValue.build(); } else { @@ -561,8 +503,6 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde return this; } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -571,9 +511,9 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde */ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { if (cursorBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && cursor_ != null - && cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + cursor_ != null && + cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { getCursorBuilder().mergeFrom(value); } else { cursor_ = value; @@ -588,8 +528,6 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -607,8 +545,6 @@ public Builder clearCursor() { return this; } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -621,8 +557,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() { return getCursorFieldBuilder().getBuilder(); } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -633,14 +567,11 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { if (cursorBuilder_ != null) { return cursorBuilder_.getMessageOrBuilder(); } else { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? + com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } } /** - * - * *
      * The new value for the committed cursor.
      * 
@@ -648,24 +579,21 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { * .google.cloud.pubsublite.v1.Cursor cursor = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> getCursorFieldBuilder() { if (cursorBuilder_ == null) { - cursorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder>( - getCursor(), getParentForChildren(), isClean()); + cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>( + getCursor(), + getParentForChildren(), + isClean()); cursor_ = null; } return cursorBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -675,43 +603,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SequencedCommitCursorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SequencedCommitCursorRequest) - private static final com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest(); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest - getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SequencedCommitCursorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SequencedCommitCursorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -723,8 +649,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequestOrBuilder.java index 2324b377f..504b9c263 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorRequestOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface SequencedCommitCursorRequestOrBuilder - extends +public interface SequencedCommitCursorRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SequencedCommitCursorRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The new value for the committed cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ boolean hasCursor(); /** - * - * *
    * The new value for the committed cursor.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ com.google.cloud.pubsublite.proto.Cursor getCursor(); /** - * - * *
    * The new value for the committed cursor.
    * 
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponse.java similarity index 62% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponse.java index 6906df462..46e94a363 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponse.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto @@ -20,52 +5,47 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response to a SequencedCommitCursorRequest.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SequencedCommitCursorResponse} */ -public final class SequencedCommitCursorResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SequencedCommitCursorResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.SequencedCommitCursorResponse) SequencedCommitCursorResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SequencedCommitCursorResponse.newBuilder() to construct. private SequencedCommitCursorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SequencedCommitCursorResponse() {} + private SequencedCommitCursorResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SequencedCommitCursorResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.class, - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.class, com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder.class); } public static final int ACKNOWLEDGED_COMMITS_FIELD_NUMBER = 1; private long acknowledgedCommits_ = 0L; /** - * - * *
    * The number of outstanding SequencedCommitCursorRequests acknowledged by
    * this response. Note that SequencedCommitCursorRequests are acknowledged in
@@ -73,7 +53,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * int64 acknowledged_commits = 1; - * * @return The acknowledgedCommits. */ @java.lang.Override @@ -82,7 +61,6 @@ public long getAcknowledgedCommits() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -94,7 +72,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (acknowledgedCommits_ != 0L) { output.writeInt64(1, acknowledgedCommits_); } @@ -108,7 +87,8 @@ public int getSerializedSize() { size = 0; if (acknowledgedCommits_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, acknowledgedCommits_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, acknowledgedCommits_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -118,15 +98,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse other = - (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) obj; + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse other = (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) obj; - if (getAcknowledgedCommits() != other.getAcknowledgedCommits()) return false; + if (getAcknowledgedCommits() + != other.getAcknowledgedCommits()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -139,143 +119,139 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ACKNOWLEDGED_COMMITS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAcknowledgedCommits()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAcknowledgedCommits()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response to a SequencedCommitCursorRequest.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SequencedCommitCursorResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.SequencedCommitCursorResponse) com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.class, - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.class, com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -285,14 +261,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.getDefaultInstance(); } @@ -307,17 +282,13 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse buildPartial() { - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse result = - new com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse result = new com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.acknowledgedCommits_ = acknowledgedCommits_; @@ -328,50 +299,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse other) { - if (other - == com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse other) { + if (other == com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.getDefaultInstance()) return this; if (other.getAcknowledgedCommits() != 0L) { setAcknowledgedCommits(other.getAcknowledgedCommits()); } @@ -401,19 +368,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - acknowledgedCommits_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + acknowledgedCommits_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,13 +388,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long acknowledgedCommits_; + private long acknowledgedCommits_ ; /** - * - * *
      * The number of outstanding SequencedCommitCursorRequests acknowledged by
      * this response. Note that SequencedCommitCursorRequests are acknowledged in
@@ -437,7 +399,6 @@ public Builder mergeFrom(
      * 
* * int64 acknowledged_commits = 1; - * * @return The acknowledgedCommits. */ @java.lang.Override @@ -445,8 +406,6 @@ public long getAcknowledgedCommits() { return acknowledgedCommits_; } /** - * - * *
      * The number of outstanding SequencedCommitCursorRequests acknowledged by
      * this response. Note that SequencedCommitCursorRequests are acknowledged in
@@ -454,7 +413,6 @@ public long getAcknowledgedCommits() {
      * 
* * int64 acknowledged_commits = 1; - * * @param value The acknowledgedCommits to set. * @return This builder for chaining. */ @@ -466,8 +424,6 @@ public Builder setAcknowledgedCommits(long value) { return this; } /** - * - * *
      * The number of outstanding SequencedCommitCursorRequests acknowledged by
      * this response. Note that SequencedCommitCursorRequests are acknowledged in
@@ -475,7 +431,6 @@ public Builder setAcknowledgedCommits(long value) {
      * 
* * int64 acknowledged_commits = 1; - * * @return This builder for chaining. */ public Builder clearAcknowledgedCommits() { @@ -484,9 +439,9 @@ public Builder clearAcknowledgedCommits() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -496,43 +451,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SequencedCommitCursorResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SequencedCommitCursorResponse) - private static final com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse(); } - public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse - getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SequencedCommitCursorResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SequencedCommitCursorResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -544,8 +497,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponseOrBuilder.java similarity index 50% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponseOrBuilder.java index 82b0a39a6..aed8de8e6 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedCommitCursorResponseOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface SequencedCommitCursorResponseOrBuilder - extends +public interface SequencedCommitCursorResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SequencedCommitCursorResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The number of outstanding SequencedCommitCursorRequests acknowledged by
    * this response. Note that SequencedCommitCursorRequests are acknowledged in
@@ -34,7 +16,6 @@ public interface SequencedCommitCursorResponseOrBuilder
    * 
* * int64 acknowledged_commits = 1; - * * @return The acknowledgedCommits. */ long getAcknowledgedCommits(); diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessage.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessage.java similarity index 70% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessage.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessage.java index 4570dd775..bd1000b1c 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessage.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessage.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/common.proto @@ -20,59 +5,53 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * A message that has been stored and sequenced by the Pub/Sub Lite system.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SequencedMessage} */ -public final class SequencedMessage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SequencedMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.SequencedMessage) SequencedMessageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SequencedMessage.newBuilder() to construct. private SequencedMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SequencedMessage() {} + private SequencedMessage() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SequencedMessage(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SequencedMessage.class, - com.google.cloud.pubsublite.proto.SequencedMessage.Builder.class); + com.google.cloud.pubsublite.proto.SequencedMessage.class, com.google.cloud.pubsublite.proto.SequencedMessage.Builder.class); } private int bitField0_; public static final int CURSOR_FIELD_NUMBER = 1; private com.google.cloud.pubsublite.proto.Cursor cursor_; /** - * - * *
    * The position of a message within the partition where it is stored.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ @java.lang.Override @@ -80,25 +59,18 @@ public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The position of a message within the partition where it is stored.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Cursor getCursor() { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } /** - * - * *
    * The position of a message within the partition where it is stored.
    * 
@@ -107,23 +79,18 @@ public com.google.cloud.pubsublite.proto.Cursor getCursor() { */ @java.lang.Override public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } public static final int PUBLISH_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp publishTime_; /** - * - * *
    * The time when the message was received by the server when it was first
    * published.
    * 
* * .google.protobuf.Timestamp publish_time = 2; - * * @return Whether the publishTime field is set. */ @java.lang.Override @@ -131,15 +98,12 @@ public boolean hasPublishTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * The time when the message was received by the server when it was first
    * published.
    * 
* * .google.protobuf.Timestamp publish_time = 2; - * * @return The publishTime. */ @java.lang.Override @@ -147,8 +111,6 @@ public com.google.protobuf.Timestamp getPublishTime() { return publishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : publishTime_; } /** - * - * *
    * The time when the message was received by the server when it was first
    * published.
@@ -164,14 +126,11 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
   public static final int MESSAGE_FIELD_NUMBER = 3;
   private com.google.cloud.pubsublite.proto.PubSubMessage message_;
   /**
-   *
-   *
    * 
    * The user message.
    * 
* * .google.cloud.pubsublite.v1.PubSubMessage message = 3; - * * @return Whether the message field is set. */ @java.lang.Override @@ -179,25 +138,18 @@ public boolean hasMessage() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * The user message.
    * 
* * .google.cloud.pubsublite.v1.PubSubMessage message = 3; - * * @return The message. */ @java.lang.Override public com.google.cloud.pubsublite.proto.PubSubMessage getMessage() { - return message_ == null - ? com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance() - : message_; + return message_ == null ? com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance() : message_; } /** - * - * *
    * The user message.
    * 
@@ -206,22 +158,17 @@ public com.google.cloud.pubsublite.proto.PubSubMessage getMessage() { */ @java.lang.Override public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessageOrBuilder() { - return message_ == null - ? com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance() - : message_; + return message_ == null ? com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance() : message_; } public static final int SIZE_BYTES_FIELD_NUMBER = 4; private long sizeBytes_ = 0L; /** - * - * *
    * The size in bytes of this message for flow control and quota purposes.
    * 
* * int64 size_bytes = 4; - * * @return The sizeBytes. */ @java.lang.Override @@ -230,7 +177,6 @@ public long getSizeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,7 +188,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCursor()); } @@ -265,16 +212,20 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCursor()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCursor()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPublishTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPublishTime()); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMessage()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMessage()); } if (sizeBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, sizeBytes_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, sizeBytes_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -284,27 +235,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.SequencedMessage)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.SequencedMessage other = - (com.google.cloud.pubsublite.proto.SequencedMessage) obj; + com.google.cloud.pubsublite.proto.SequencedMessage other = (com.google.cloud.pubsublite.proto.SequencedMessage) obj; if (hasCursor() != other.hasCursor()) return false; if (hasCursor()) { - if (!getCursor().equals(other.getCursor())) return false; + if (!getCursor() + .equals(other.getCursor())) return false; } if (hasPublishTime() != other.hasPublishTime()) return false; if (hasPublishTime()) { - if (!getPublishTime().equals(other.getPublishTime())) return false; + if (!getPublishTime() + .equals(other.getPublishTime())) return false; } if (hasMessage() != other.hasMessage()) return false; if (hasMessage()) { - if (!getMessage().equals(other.getMessage())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; } - if (getSizeBytes() != other.getSizeBytes()) return false; + if (getSizeBytes() + != other.getSizeBytes()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -329,133 +283,127 @@ public int hashCode() { hash = (53 * hash) + getMessage().hashCode(); } hash = (37 * hash) + SIZE_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSizeBytes()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.pubsublite.proto.SequencedMessage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SequencedMessage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.SequencedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SequencedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.SequencedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SequencedMessage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.SequencedMessage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.SequencedMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.SequencedMessage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.SequencedMessage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.SequencedMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.SequencedMessage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.SequencedMessage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.SequencedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.pubsublite.proto.SequencedMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A message that has been stored and sequenced by the Pub/Sub Lite system.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SequencedMessage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.SequencedMessage) com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SequencedMessage.class, - com.google.cloud.pubsublite.proto.SequencedMessage.Builder.class); + com.google.cloud.pubsublite.proto.SequencedMessage.class, com.google.cloud.pubsublite.proto.SequencedMessage.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.SequencedMessage.newBuilder() @@ -463,19 +411,19 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCursorFieldBuilder(); getPublishTimeFieldBuilder(); getMessageFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -500,9 +448,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor; } @java.lang.Override @@ -521,11 +469,8 @@ public com.google.cloud.pubsublite.proto.SequencedMessage build() { @java.lang.Override public com.google.cloud.pubsublite.proto.SequencedMessage buildPartial() { - com.google.cloud.pubsublite.proto.SequencedMessage result = - new com.google.cloud.pubsublite.proto.SequencedMessage(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.SequencedMessage result = new com.google.cloud.pubsublite.proto.SequencedMessage(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -534,16 +479,21 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.SequencedMessage re int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.cursor_ = cursorBuilder_ == null ? cursor_ : cursorBuilder_.build(); + result.cursor_ = cursorBuilder_ == null + ? cursor_ + : cursorBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.publishTime_ = - publishTimeBuilder_ == null ? publishTime_ : publishTimeBuilder_.build(); + result.publishTime_ = publishTimeBuilder_ == null + ? publishTime_ + : publishTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.message_ = messageBuilder_ == null ? message_ : messageBuilder_.build(); + result.message_ = messageBuilder_ == null + ? message_ + : messageBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { @@ -556,39 +506,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.SequencedMessage re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.SequencedMessage) { - return mergeFrom((com.google.cloud.pubsublite.proto.SequencedMessage) other); + return mergeFrom((com.google.cloud.pubsublite.proto.SequencedMessage)other); } else { super.mergeFrom(other); return this; @@ -596,8 +545,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.SequencedMessage other) { - if (other == com.google.cloud.pubsublite.proto.SequencedMessage.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.SequencedMessage.getDefaultInstance()) return this; if (other.hasCursor()) { mergeCursor(other.getCursor()); } @@ -636,37 +584,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCursorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getPublishTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getMessageFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - sizeBytes_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCursorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getPublishTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getMessageFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + sizeBytes_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -676,52 +625,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.pubsublite.proto.Cursor cursor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> - cursorBuilder_; + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> cursorBuilder_; /** - * - * *
      * The position of a message within the partition where it is stored.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ public boolean hasCursor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The position of a message within the partition where it is stored.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ public com.google.cloud.pubsublite.proto.Cursor getCursor() { if (cursorBuilder_ == null) { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } else { return cursorBuilder_.getMessage(); } } /** - * - * *
      * The position of a message within the partition where it is stored.
      * 
@@ -742,15 +677,14 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The position of a message within the partition where it is stored.
      * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; */ - public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { + public Builder setCursor( + com.google.cloud.pubsublite.proto.Cursor.Builder builderForValue) { if (cursorBuilder_ == null) { cursor_ = builderForValue.build(); } else { @@ -761,8 +695,6 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde return this; } /** - * - * *
      * The position of a message within the partition where it is stored.
      * 
@@ -771,9 +703,9 @@ public Builder setCursor(com.google.cloud.pubsublite.proto.Cursor.Builder builde */ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { if (cursorBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && cursor_ != null - && cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + cursor_ != null && + cursor_ != com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance()) { getCursorBuilder().mergeFrom(value); } else { cursor_ = value; @@ -788,8 +720,6 @@ public Builder mergeCursor(com.google.cloud.pubsublite.proto.Cursor value) { return this; } /** - * - * *
      * The position of a message within the partition where it is stored.
      * 
@@ -807,8 +737,6 @@ public Builder clearCursor() { return this; } /** - * - * *
      * The position of a message within the partition where it is stored.
      * 
@@ -821,8 +749,6 @@ public com.google.cloud.pubsublite.proto.Cursor.Builder getCursorBuilder() { return getCursorFieldBuilder().getBuilder(); } /** - * - * *
      * The position of a message within the partition where it is stored.
      * 
@@ -833,14 +759,11 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { if (cursorBuilder_ != null) { return cursorBuilder_.getMessageOrBuilder(); } else { - return cursor_ == null - ? com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() - : cursor_; + return cursor_ == null ? + com.google.cloud.pubsublite.proto.Cursor.getDefaultInstance() : cursor_; } } /** - * - * *
      * The position of a message within the partition where it is stored.
      * 
@@ -848,17 +771,14 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { * .google.cloud.pubsublite.v1.Cursor cursor = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder> + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder> getCursorFieldBuilder() { if (cursorBuilder_ == null) { - cursorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Cursor, - com.google.cloud.pubsublite.proto.Cursor.Builder, - com.google.cloud.pubsublite.proto.CursorOrBuilder>( - getCursor(), getParentForChildren(), isClean()); + cursorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Cursor, com.google.cloud.pubsublite.proto.Cursor.Builder, com.google.cloud.pubsublite.proto.CursorOrBuilder>( + getCursor(), + getParentForChildren(), + isClean()); cursor_ = null; } return cursorBuilder_; @@ -866,49 +786,36 @@ public com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder() { private com.google.protobuf.Timestamp publishTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - publishTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> publishTimeBuilder_; /** - * - * *
      * The time when the message was received by the server when it was first
      * published.
      * 
* * .google.protobuf.Timestamp publish_time = 2; - * * @return Whether the publishTime field is set. */ public boolean hasPublishTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The time when the message was received by the server when it was first
      * published.
      * 
* * .google.protobuf.Timestamp publish_time = 2; - * * @return The publishTime. */ public com.google.protobuf.Timestamp getPublishTime() { if (publishTimeBuilder_ == null) { - return publishTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : publishTime_; + return publishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : publishTime_; } else { return publishTimeBuilder_.getMessage(); } } /** - * - * *
      * The time when the message was received by the server when it was first
      * published.
@@ -930,8 +837,6 @@ public Builder setPublishTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the message was received by the server when it was first
      * published.
@@ -939,7 +844,8 @@ public Builder setPublishTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp publish_time = 2;
      */
-    public Builder setPublishTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setPublishTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (publishTimeBuilder_ == null) {
         publishTime_ = builderForValue.build();
       } else {
@@ -950,8 +856,6 @@ public Builder setPublishTime(com.google.protobuf.Timestamp.Builder builderForVa
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the message was received by the server when it was first
      * published.
@@ -961,9 +865,9 @@ public Builder setPublishTime(com.google.protobuf.Timestamp.Builder builderForVa
      */
     public Builder mergePublishTime(com.google.protobuf.Timestamp value) {
       if (publishTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && publishTime_ != null
-            && publishTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          publishTime_ != null &&
+          publishTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getPublishTimeBuilder().mergeFrom(value);
         } else {
           publishTime_ = value;
@@ -978,8 +882,6 @@ public Builder mergePublishTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the message was received by the server when it was first
      * published.
@@ -998,8 +900,6 @@ public Builder clearPublishTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time when the message was received by the server when it was first
      * published.
@@ -1013,8 +913,6 @@ public com.google.protobuf.Timestamp.Builder getPublishTimeBuilder() {
       return getPublishTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time when the message was received by the server when it was first
      * published.
@@ -1026,14 +924,11 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
       if (publishTimeBuilder_ != null) {
         return publishTimeBuilder_.getMessageOrBuilder();
       } else {
-        return publishTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : publishTime_;
+        return publishTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : publishTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time when the message was received by the server when it was first
      * published.
@@ -1042,17 +937,14 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
      * .google.protobuf.Timestamp publish_time = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getPublishTimeFieldBuilder() {
       if (publishTimeBuilder_ == null) {
-        publishTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getPublishTime(), getParentForChildren(), isClean());
+        publishTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getPublishTime(),
+                getParentForChildren(),
+                isClean());
         publishTime_ = null;
       }
       return publishTimeBuilder_;
@@ -1060,47 +952,34 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
 
     private com.google.cloud.pubsublite.proto.PubSubMessage message_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.PubSubMessage,
-            com.google.cloud.pubsublite.proto.PubSubMessage.Builder,
-            com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder>
-        messageBuilder_;
+        com.google.cloud.pubsublite.proto.PubSubMessage, com.google.cloud.pubsublite.proto.PubSubMessage.Builder, com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder> messageBuilder_;
     /**
-     *
-     *
      * 
      * The user message.
      * 
* * .google.cloud.pubsublite.v1.PubSubMessage message = 3; - * * @return Whether the message field is set. */ public boolean hasMessage() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The user message.
      * 
* * .google.cloud.pubsublite.v1.PubSubMessage message = 3; - * * @return The message. */ public com.google.cloud.pubsublite.proto.PubSubMessage getMessage() { if (messageBuilder_ == null) { - return message_ == null - ? com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance() - : message_; + return message_ == null ? com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance() : message_; } else { return messageBuilder_.getMessage(); } } /** - * - * *
      * The user message.
      * 
@@ -1121,8 +1000,6 @@ public Builder setMessage(com.google.cloud.pubsublite.proto.PubSubMessage value) return this; } /** - * - * *
      * The user message.
      * 
@@ -1141,8 +1018,6 @@ public Builder setMessage( return this; } /** - * - * *
      * The user message.
      * 
@@ -1151,9 +1026,9 @@ public Builder setMessage( */ public Builder mergeMessage(com.google.cloud.pubsublite.proto.PubSubMessage value) { if (messageBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && message_ != null - && message_ != com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + message_ != null && + message_ != com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance()) { getMessageBuilder().mergeFrom(value); } else { message_ = value; @@ -1168,8 +1043,6 @@ public Builder mergeMessage(com.google.cloud.pubsublite.proto.PubSubMessage valu return this; } /** - * - * *
      * The user message.
      * 
@@ -1187,8 +1060,6 @@ public Builder clearMessage() { return this; } /** - * - * *
      * The user message.
      * 
@@ -1201,8 +1072,6 @@ public com.google.cloud.pubsublite.proto.PubSubMessage.Builder getMessageBuilder return getMessageFieldBuilder().getBuilder(); } /** - * - * *
      * The user message.
      * 
@@ -1213,14 +1082,11 @@ public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessageOrBuil if (messageBuilder_ != null) { return messageBuilder_.getMessageOrBuilder(); } else { - return message_ == null - ? com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance() - : message_; + return message_ == null ? + com.google.cloud.pubsublite.proto.PubSubMessage.getDefaultInstance() : message_; } } /** - * - * *
      * The user message.
      * 
@@ -1228,32 +1094,26 @@ public com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessageOrBuil * .google.cloud.pubsublite.v1.PubSubMessage message = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.PubSubMessage, - com.google.cloud.pubsublite.proto.PubSubMessage.Builder, - com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder> + com.google.cloud.pubsublite.proto.PubSubMessage, com.google.cloud.pubsublite.proto.PubSubMessage.Builder, com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder> getMessageFieldBuilder() { if (messageBuilder_ == null) { - messageBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.PubSubMessage, - com.google.cloud.pubsublite.proto.PubSubMessage.Builder, - com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder>( - getMessage(), getParentForChildren(), isClean()); + messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.PubSubMessage, com.google.cloud.pubsublite.proto.PubSubMessage.Builder, com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder>( + getMessage(), + getParentForChildren(), + isClean()); message_ = null; } return messageBuilder_; } - private long sizeBytes_; + private long sizeBytes_ ; /** - * - * *
      * The size in bytes of this message for flow control and quota purposes.
      * 
* * int64 size_bytes = 4; - * * @return The sizeBytes. */ @java.lang.Override @@ -1261,14 +1121,11 @@ public long getSizeBytes() { return sizeBytes_; } /** - * - * *
      * The size in bytes of this message for flow control and quota purposes.
      * 
* * int64 size_bytes = 4; - * * @param value The sizeBytes to set. * @return This builder for chaining. */ @@ -1280,14 +1137,11 @@ public Builder setSizeBytes(long value) { return this; } /** - * - * *
      * The size in bytes of this message for flow control and quota purposes.
      * 
* * int64 size_bytes = 4; - * * @return This builder for chaining. */ public Builder clearSizeBytes() { @@ -1296,9 +1150,9 @@ public Builder clearSizeBytes() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1308,12 +1162,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SequencedMessage) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SequencedMessage) private static final com.google.cloud.pubsublite.proto.SequencedMessage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SequencedMessage(); } @@ -1322,27 +1176,27 @@ public static com.google.cloud.pubsublite.proto.SequencedMessage getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SequencedMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SequencedMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1357,4 +1211,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.SequencedMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessageOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessageOrBuilder.java similarity index 77% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessageOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessageOrBuilder.java index d38984833..a9f49813f 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessageOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SequencedMessageOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/common.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface SequencedMessageOrBuilder - extends +public interface SequencedMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SequencedMessage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The position of a message within the partition where it is stored.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return Whether the cursor field is set. */ boolean hasCursor(); /** - * - * *
    * The position of a message within the partition where it is stored.
    * 
* * .google.cloud.pubsublite.v1.Cursor cursor = 1; - * * @return The cursor. */ com.google.cloud.pubsublite.proto.Cursor getCursor(); /** - * - * *
    * The position of a message within the partition where it is stored.
    * 
@@ -60,34 +36,26 @@ public interface SequencedMessageOrBuilder com.google.cloud.pubsublite.proto.CursorOrBuilder getCursorOrBuilder(); /** - * - * *
    * The time when the message was received by the server when it was first
    * published.
    * 
* * .google.protobuf.Timestamp publish_time = 2; - * * @return Whether the publishTime field is set. */ boolean hasPublishTime(); /** - * - * *
    * The time when the message was received by the server when it was first
    * published.
    * 
* * .google.protobuf.Timestamp publish_time = 2; - * * @return The publishTime. */ com.google.protobuf.Timestamp getPublishTime(); /** - * - * *
    * The time when the message was received by the server when it was first
    * published.
@@ -98,32 +66,24 @@ public interface SequencedMessageOrBuilder
   com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The user message.
    * 
* * .google.cloud.pubsublite.v1.PubSubMessage message = 3; - * * @return Whether the message field is set. */ boolean hasMessage(); /** - * - * *
    * The user message.
    * 
* * .google.cloud.pubsublite.v1.PubSubMessage message = 3; - * * @return The message. */ com.google.cloud.pubsublite.proto.PubSubMessage getMessage(); /** - * - * *
    * The user message.
    * 
@@ -133,14 +93,11 @@ public interface SequencedMessageOrBuilder com.google.cloud.pubsublite.proto.PubSubMessageOrBuilder getMessageOrBuilder(); /** - * - * *
    * The size in bytes of this message for flow control and quota purposes.
    * 
* * int64 size_bytes = 4; - * * @return The sizeBytes. */ long getSizeBytes(); diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequest.java similarity index 65% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequest.java index 349b48d30..2852f5204 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto @@ -20,61 +5,54 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * A request sent from the client to the server on a stream.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.StreamingCommitCursorRequest} */ -public final class StreamingCommitCursorRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StreamingCommitCursorRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.StreamingCommitCursorRequest) StreamingCommitCursorRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StreamingCommitCursorRequest.newBuilder() to construct. private StreamingCommitCursorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private StreamingCommitCursorRequest() {} + private StreamingCommitCursorRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StreamingCommitCursorRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.class, - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.Builder.class); + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.class, com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.Builder.class); } private int requestCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object request_; - public enum RequestCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INITIAL(1), COMMIT(2), REQUEST_NOT_SET(0); private final int value; - private RequestCase(int value) { this.value = value; } @@ -90,36 +68,30 @@ public static RequestCase valueOf(int value) { public static RequestCase forNumber(int value) { switch (value) { - case 1: - return INITIAL; - case 2: - return COMMIT; - case 0: - return REQUEST_NOT_SET; - default: - return null; + case 1: return INITIAL; + case 2: return COMMIT; + case 0: return REQUEST_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public RequestCase getRequestCase() { - return RequestCase.forNumber(requestCase_); + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); } public static final int INITIAL_FIELD_NUMBER = 1; /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; - * * @return Whether the initial field is set. */ @java.lang.Override @@ -127,26 +99,21 @@ public boolean hasInitial() { return requestCase_ == 1; } /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; - * * @return The initial. */ @java.lang.Override public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest getInitial() { if (requestCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_; + return (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_; } return com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.getDefaultInstance(); } /** - * - * *
    * Initial request on the stream.
    * 
@@ -154,24 +121,20 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest getInitial() * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder - getInitialOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder getInitialOrBuilder() { if (requestCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_; + return (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_; } return com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.getDefaultInstance(); } public static final int COMMIT_FIELD_NUMBER = 2; /** - * - * *
    * Request to commit a new cursor value.
    * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; - * * @return Whether the commit field is set. */ @java.lang.Override @@ -179,26 +142,21 @@ public boolean hasCommit() { return requestCase_ == 2; } /** - * - * *
    * Request to commit a new cursor value.
    * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; - * * @return The commit. */ @java.lang.Override public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest getCommit() { if (requestCase_ == 2) { - return (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_; + return (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_; } return com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.getDefaultInstance(); } /** - * - * *
    * Request to commit a new cursor value.
    * 
@@ -206,16 +164,14 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest getCommit( * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder - getCommitOrBuilder() { + public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder getCommitOrBuilder() { if (requestCase_ == 2) { - return (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_; + return (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_; } return com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,14 +183,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (requestCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_); + output.writeMessage(1, (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_); } if (requestCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_); + output.writeMessage(2, (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_); } getUnknownFields().writeTo(output); } @@ -246,14 +201,12 @@ public int getSerializedSize() { size = 0; if (requestCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_); } if (requestCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -263,21 +216,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest other = - (com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest) obj; + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest other = (com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest) obj; if (!getRequestCase().equals(other.getRequestCase())) return false; switch (requestCase_) { case 1: - if (!getInitial().equals(other.getInitial())) return false; + if (!getInitial() + .equals(other.getInitial())) return false; break; case 2: - if (!getCommit().equals(other.getCommit())) return false; + if (!getCommit() + .equals(other.getCommit())) return false; break; case 0: default: @@ -311,136 +265,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A request sent from the client to the server on a stream.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.StreamingCommitCursorRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.StreamingCommitCursorRequest) com.google.cloud.pubsublite.proto.StreamingCommitCursorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.class, - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.Builder.class); + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.class, com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -457,14 +406,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.getDefaultInstance(); } @@ -479,29 +427,26 @@ public com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest buildPartial() { - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest result = - new com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest result = new com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest result) { + private void buildPartialOneofs(com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest result) { result.requestCase_ = requestCase_; result.request_ = this.request_; - if (requestCase_ == 1 && initialBuilder_ != null) { + if (requestCase_ == 1 && + initialBuilder_ != null) { result.request_ = initialBuilder_.build(); } - if (requestCase_ == 2 && commitBuilder_ != null) { + if (requestCase_ == 2 && + commitBuilder_ != null) { result.request_ = commitBuilder_.build(); } } @@ -510,39 +455,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest)other); } else { super.mergeFrom(other); return this; @@ -550,24 +494,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest other) { - if (other - == com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest.getDefaultInstance()) return this; switch (other.getRequestCase()) { - case INITIAL: - { - mergeInitial(other.getInitial()); - break; - } - case COMMIT: - { - mergeCommit(other.getCommit()); - break; - } - case REQUEST_NOT_SET: - { - break; - } + case INITIAL: { + mergeInitial(other.getInitial()); + break; + } + case COMMIT: { + mergeCommit(other.getCommit()); + break; + } + case REQUEST_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -595,25 +534,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getInitialFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getCommitFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getInitialFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getCommitFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -623,12 +563,12 @@ public Builder mergeFrom( } // finally return this; } - private int requestCase_ = 0; private java.lang.Object request_; - - public RequestCase getRequestCase() { - return RequestCase.forNumber(requestCase_); + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); } public Builder clearRequest() { @@ -641,19 +581,13 @@ public Builder clearRequest() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialCommitCursorRequest, - com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder, - com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder> - initialBuilder_; + com.google.cloud.pubsublite.proto.InitialCommitCursorRequest, com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder, com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder> initialBuilder_; /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; - * * @return Whether the initial field is set. */ @java.lang.Override @@ -661,14 +595,11 @@ public boolean hasInitial() { return requestCase_ == 1; } /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; - * * @return The initial. */ @java.lang.Override @@ -686,8 +617,6 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest getInitial() } } /** - * - * *
      * Initial request on the stream.
      * 
@@ -708,8 +637,6 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialCommitCursorR return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -728,26 +655,18 @@ public Builder setInitial( return this; } /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; */ - public Builder mergeInitial( - com.google.cloud.pubsublite.proto.InitialCommitCursorRequest value) { + public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialCommitCursorRequest value) { if (initialBuilder_ == null) { - if (requestCase_ == 1 - && request_ - != com.google.cloud.pubsublite.proto.InitialCommitCursorRequest - .getDefaultInstance()) { - request_ = - com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.newBuilder( - (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 1 && + request_ != com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.getDefaultInstance()) { + request_ = com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.newBuilder((com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -763,8 +682,6 @@ public Builder mergeInitial( return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -788,21 +705,16 @@ public Builder clearInitial() { return this; } /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; */ - public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder - getInitialBuilder() { + public com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder getInitialBuilder() { return getInitialFieldBuilder().getBuilder(); } /** - * - * *
      * Initial request on the stream.
      * 
@@ -810,8 +722,7 @@ public Builder clearInitial() { * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder - getInitialOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder getInitialOrBuilder() { if ((requestCase_ == 1) && (initialBuilder_ != null)) { return initialBuilder_.getMessageOrBuilder(); } else { @@ -822,8 +733,6 @@ public Builder clearInitial() { } } /** - * - * *
      * Initial request on the stream.
      * 
@@ -831,20 +740,14 @@ public Builder clearInitial() { * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialCommitCursorRequest, - com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder, - com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder> + com.google.cloud.pubsublite.proto.InitialCommitCursorRequest, com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder, com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder> getInitialFieldBuilder() { if (initialBuilder_ == null) { if (!(requestCase_ == 1)) { - request_ = - com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.getDefaultInstance(); + request_ = com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.getDefaultInstance(); } - initialBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialCommitCursorRequest, - com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder, - com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder>( + initialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.InitialCommitCursorRequest, com.google.cloud.pubsublite.proto.InitialCommitCursorRequest.Builder, com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder>( (com.google.cloud.pubsublite.proto.InitialCommitCursorRequest) request_, getParentForChildren(), isClean()); @@ -856,19 +759,13 @@ public Builder clearInitial() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest, - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder, - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder> - commitBuilder_; + com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest, com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder, com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder> commitBuilder_; /** - * - * *
      * Request to commit a new cursor value.
      * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; - * * @return Whether the commit field is set. */ @java.lang.Override @@ -876,14 +773,11 @@ public boolean hasCommit() { return requestCase_ == 2; } /** - * - * *
      * Request to commit a new cursor value.
      * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; - * * @return The commit. */ @java.lang.Override @@ -901,8 +795,6 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest getCommit( } } /** - * - * *
      * Request to commit a new cursor value.
      * 
@@ -923,8 +815,6 @@ public Builder setCommit(com.google.cloud.pubsublite.proto.SequencedCommitCursor return this; } /** - * - * *
      * Request to commit a new cursor value.
      * 
@@ -943,26 +833,18 @@ public Builder setCommit( return this; } /** - * - * *
      * Request to commit a new cursor value.
      * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; */ - public Builder mergeCommit( - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest value) { + public Builder mergeCommit(com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest value) { if (commitBuilder_ == null) { - if (requestCase_ == 2 - && request_ - != com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest - .getDefaultInstance()) { - request_ = - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.newBuilder( - (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 2 && + request_ != com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.getDefaultInstance()) { + request_ = com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.newBuilder((com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -978,8 +860,6 @@ public Builder mergeCommit( return this; } /** - * - * *
      * Request to commit a new cursor value.
      * 
@@ -1003,21 +883,16 @@ public Builder clearCommit() { return this; } /** - * - * *
      * Request to commit a new cursor value.
      * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; */ - public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder - getCommitBuilder() { + public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder getCommitBuilder() { return getCommitFieldBuilder().getBuilder(); } /** - * - * *
      * Request to commit a new cursor value.
      * 
@@ -1025,8 +900,7 @@ public Builder clearCommit() { * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder - getCommitOrBuilder() { + public com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder getCommitOrBuilder() { if ((requestCase_ == 2) && (commitBuilder_ != null)) { return commitBuilder_.getMessageOrBuilder(); } else { @@ -1037,8 +911,6 @@ public Builder clearCommit() { } } /** - * - * *
      * Request to commit a new cursor value.
      * 
@@ -1046,20 +918,14 @@ public Builder clearCommit() { * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest, - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder, - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder> + com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest, com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder, com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder> getCommitFieldBuilder() { if (commitBuilder_ == null) { if (!(requestCase_ == 2)) { - request_ = - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.getDefaultInstance(); + request_ = com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.getDefaultInstance(); } - commitBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest, - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder, - com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder>( + commitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest, com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest.Builder, com.google.cloud.pubsublite.proto.SequencedCommitCursorRequestOrBuilder>( (com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest) request_, getParentForChildren(), isClean()); @@ -1069,9 +935,9 @@ public Builder clearCommit() { onChanged(); return commitBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1081,43 +947,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.StreamingCommitCursorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.StreamingCommitCursorRequest) - private static final com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest(); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest - getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingCommitCursorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingCommitCursorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1129,8 +993,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.StreamingCommitCursorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequestOrBuilder.java index c5ccb91a5..d8f338aee 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorRequestOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface StreamingCommitCursorRequestOrBuilder - extends +public interface StreamingCommitCursorRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.StreamingCommitCursorRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; - * * @return Whether the initial field is set. */ boolean hasInitial(); /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorRequest initial = 1; - * * @return The initial. */ com.google.cloud.pubsublite.proto.InitialCommitCursorRequest getInitial(); /** - * - * *
    * Initial request on the stream.
    * 
@@ -60,32 +36,24 @@ public interface StreamingCommitCursorRequestOrBuilder com.google.cloud.pubsublite.proto.InitialCommitCursorRequestOrBuilder getInitialOrBuilder(); /** - * - * *
    * Request to commit a new cursor value.
    * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; - * * @return Whether the commit field is set. */ boolean hasCommit(); /** - * - * *
    * Request to commit a new cursor value.
    * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorRequest commit = 2; - * * @return The commit. */ com.google.cloud.pubsublite.proto.SequencedCommitCursorRequest getCommit(); /** - * - * *
    * Request to commit a new cursor value.
    * 
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponse.java similarity index 65% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponse.java index eaf5d98ac..5eb43342a 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponse.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto @@ -20,61 +5,54 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response to a StreamingCommitCursorRequest.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.StreamingCommitCursorResponse} */ -public final class StreamingCommitCursorResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StreamingCommitCursorResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.StreamingCommitCursorResponse) StreamingCommitCursorResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StreamingCommitCursorResponse.newBuilder() to construct. private StreamingCommitCursorResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private StreamingCommitCursorResponse() {} + private StreamingCommitCursorResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StreamingCommitCursorResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.class, - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.class, com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.Builder.class); } private int requestCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object request_; - public enum RequestCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INITIAL(1), COMMIT(2), REQUEST_NOT_SET(0); private final int value; - private RequestCase(int value) { this.value = value; } @@ -90,36 +68,30 @@ public static RequestCase valueOf(int value) { public static RequestCase forNumber(int value) { switch (value) { - case 1: - return INITIAL; - case 2: - return COMMIT; - case 0: - return REQUEST_NOT_SET; - default: - return null; + case 1: return INITIAL; + case 2: return COMMIT; + case 0: return REQUEST_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public RequestCase getRequestCase() { - return RequestCase.forNumber(requestCase_); + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); } public static final int INITIAL_FIELD_NUMBER = 1; /** - * - * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; - * * @return Whether the initial field is set. */ @java.lang.Override @@ -127,26 +99,21 @@ public boolean hasInitial() { return requestCase_ == 1; } /** - * - * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; - * * @return The initial. */ @java.lang.Override public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse getInitial() { if (requestCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_; + return (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_; } return com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.getDefaultInstance(); } /** - * - * *
    * Initial response on the stream.
    * 
@@ -154,24 +121,20 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse getInitial( * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder - getInitialOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder getInitialOrBuilder() { if (requestCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_; + return (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_; } return com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.getDefaultInstance(); } public static final int COMMIT_FIELD_NUMBER = 2; /** - * - * *
    * Response to committing a new cursor value.
    * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; - * * @return Whether the commit field is set. */ @java.lang.Override @@ -179,26 +142,21 @@ public boolean hasCommit() { return requestCase_ == 2; } /** - * - * *
    * Response to committing a new cursor value.
    * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; - * * @return The commit. */ @java.lang.Override public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse getCommit() { if (requestCase_ == 2) { - return (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_; + return (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_; } return com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.getDefaultInstance(); } /** - * - * *
    * Response to committing a new cursor value.
    * 
@@ -206,16 +164,14 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse getCommit * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder - getCommitOrBuilder() { + public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder getCommitOrBuilder() { if (requestCase_ == 2) { - return (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_; + return (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_; } return com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,14 +183,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (requestCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_); + output.writeMessage(1, (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_); } if (requestCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_); + output.writeMessage(2, (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_); } getUnknownFields().writeTo(output); } @@ -246,14 +201,12 @@ public int getSerializedSize() { size = 0; if (requestCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_); } if (requestCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -263,21 +216,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse other = - (com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse) obj; + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse other = (com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse) obj; if (!getRequestCase().equals(other.getRequestCase())) return false; switch (requestCase_) { case 1: - if (!getInitial().equals(other.getInitial())) return false; + if (!getInitial() + .equals(other.getInitial())) return false; break; case 2: - if (!getCommit().equals(other.getCommit())) return false; + if (!getCommit() + .equals(other.getCommit())) return false; break; case 0: default: @@ -311,136 +265,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response to a StreamingCommitCursorRequest.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.StreamingCommitCursorResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.StreamingCommitCursorResponse) com.google.cloud.pubsublite.proto.StreamingCommitCursorResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.class, - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.Builder.class); + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.class, com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -457,14 +406,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CursorProto - .internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CursorProto.internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.getDefaultInstance(); } @@ -479,29 +427,26 @@ public com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse buildPartial() { - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse result = - new com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse result = new com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse result) { + private void buildPartialOneofs(com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse result) { result.requestCase_ = requestCase_; result.request_ = this.request_; - if (requestCase_ == 1 && initialBuilder_ != null) { + if (requestCase_ == 1 && + initialBuilder_ != null) { result.request_ = initialBuilder_.build(); } - if (requestCase_ == 2 && commitBuilder_ != null) { + if (requestCase_ == 2 && + commitBuilder_ != null) { result.request_ = commitBuilder_.build(); } } @@ -510,65 +455,58 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse other) { - if (other - == com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse other) { + if (other == com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse.getDefaultInstance()) return this; switch (other.getRequestCase()) { - case INITIAL: - { - mergeInitial(other.getInitial()); - break; - } - case COMMIT: - { - mergeCommit(other.getCommit()); - break; - } - case REQUEST_NOT_SET: - { - break; - } + case INITIAL: { + mergeInitial(other.getInitial()); + break; + } + case COMMIT: { + mergeCommit(other.getCommit()); + break; + } + case REQUEST_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -596,25 +534,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getInitialFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getCommitFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getInitialFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getCommitFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -624,12 +563,12 @@ public Builder mergeFrom( } // finally return this; } - private int requestCase_ = 0; private java.lang.Object request_; - - public RequestCase getRequestCase() { - return RequestCase.forNumber(requestCase_); + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); } public Builder clearRequest() { @@ -642,19 +581,13 @@ public Builder clearRequest() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse, - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder, - com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder> - initialBuilder_; + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse, com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder, com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder> initialBuilder_; /** - * - * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; - * * @return Whether the initial field is set. */ @java.lang.Override @@ -662,14 +595,11 @@ public boolean hasInitial() { return requestCase_ == 1; } /** - * - * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; - * * @return The initial. */ @java.lang.Override @@ -687,8 +617,6 @@ public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse getInitial( } } /** - * - * *
      * Initial response on the stream.
      * 
@@ -709,8 +637,6 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialCommitCursorR return this; } /** - * - * *
      * Initial response on the stream.
      * 
@@ -729,26 +655,18 @@ public Builder setInitial( return this; } /** - * - * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; */ - public Builder mergeInitial( - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse value) { + public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialCommitCursorResponse value) { if (initialBuilder_ == null) { - if (requestCase_ == 1 - && request_ - != com.google.cloud.pubsublite.proto.InitialCommitCursorResponse - .getDefaultInstance()) { - request_ = - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.newBuilder( - (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 1 && + request_ != com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.getDefaultInstance()) { + request_ = com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.newBuilder((com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -764,8 +682,6 @@ public Builder mergeInitial( return this; } /** - * - * *
      * Initial response on the stream.
      * 
@@ -789,21 +705,16 @@ public Builder clearInitial() { return this; } /** - * - * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; */ - public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder - getInitialBuilder() { + public com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder getInitialBuilder() { return getInitialFieldBuilder().getBuilder(); } /** - * - * *
      * Initial response on the stream.
      * 
@@ -811,8 +722,7 @@ public Builder clearInitial() { * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder - getInitialOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder getInitialOrBuilder() { if ((requestCase_ == 1) && (initialBuilder_ != null)) { return initialBuilder_.getMessageOrBuilder(); } else { @@ -823,8 +733,6 @@ public Builder clearInitial() { } } /** - * - * *
      * Initial response on the stream.
      * 
@@ -832,20 +740,14 @@ public Builder clearInitial() { * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse, - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder, - com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder> + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse, com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder, com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder> getInitialFieldBuilder() { if (initialBuilder_ == null) { if (!(requestCase_ == 1)) { - request_ = - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.getDefaultInstance(); + request_ = com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.getDefaultInstance(); } - initialBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse, - com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder, - com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder>( + initialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.InitialCommitCursorResponse, com.google.cloud.pubsublite.proto.InitialCommitCursorResponse.Builder, com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder>( (com.google.cloud.pubsublite.proto.InitialCommitCursorResponse) request_, getParentForChildren(), isClean()); @@ -857,19 +759,13 @@ public Builder clearInitial() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse, - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder, - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder> - commitBuilder_; + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse, com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder, com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder> commitBuilder_; /** - * - * *
      * Response to committing a new cursor value.
      * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; - * * @return Whether the commit field is set. */ @java.lang.Override @@ -877,14 +773,11 @@ public boolean hasCommit() { return requestCase_ == 2; } /** - * - * *
      * Response to committing a new cursor value.
      * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; - * * @return The commit. */ @java.lang.Override @@ -902,16 +795,13 @@ public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse getCommit } } /** - * - * *
      * Response to committing a new cursor value.
      * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; */ - public Builder setCommit( - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse value) { + public Builder setCommit(com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse value) { if (commitBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -925,8 +815,6 @@ public Builder setCommit( return this; } /** - * - * *
      * Response to committing a new cursor value.
      * 
@@ -945,26 +833,18 @@ public Builder setCommit( return this; } /** - * - * *
      * Response to committing a new cursor value.
      * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; */ - public Builder mergeCommit( - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse value) { + public Builder mergeCommit(com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse value) { if (commitBuilder_ == null) { - if (requestCase_ == 2 - && request_ - != com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse - .getDefaultInstance()) { - request_ = - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.newBuilder( - (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 2 && + request_ != com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.getDefaultInstance()) { + request_ = com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.newBuilder((com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -980,8 +860,6 @@ public Builder mergeCommit( return this; } /** - * - * *
      * Response to committing a new cursor value.
      * 
@@ -1005,21 +883,16 @@ public Builder clearCommit() { return this; } /** - * - * *
      * Response to committing a new cursor value.
      * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; */ - public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder - getCommitBuilder() { + public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder getCommitBuilder() { return getCommitFieldBuilder().getBuilder(); } /** - * - * *
      * Response to committing a new cursor value.
      * 
@@ -1027,8 +900,7 @@ public Builder clearCommit() { * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder - getCommitOrBuilder() { + public com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder getCommitOrBuilder() { if ((requestCase_ == 2) && (commitBuilder_ != null)) { return commitBuilder_.getMessageOrBuilder(); } else { @@ -1039,8 +911,6 @@ public Builder clearCommit() { } } /** - * - * *
      * Response to committing a new cursor value.
      * 
@@ -1048,20 +918,14 @@ public Builder clearCommit() { * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse, - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder, - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder> + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse, com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder, com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder> getCommitFieldBuilder() { if (commitBuilder_ == null) { if (!(requestCase_ == 2)) { - request_ = - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.getDefaultInstance(); + request_ = com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.getDefaultInstance(); } - commitBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse, - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder, - com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder>( + commitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse, com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse.Builder, com.google.cloud.pubsublite.proto.SequencedCommitCursorResponseOrBuilder>( (com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse) request_, getParentForChildren(), isClean()); @@ -1071,9 +935,9 @@ public Builder clearCommit() { onChanged(); return commitBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1083,43 +947,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.StreamingCommitCursorResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.StreamingCommitCursorResponse) - private static final com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse(); } - public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse - getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingCommitCursorResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingCommitCursorResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1131,8 +993,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.StreamingCommitCursorResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponseOrBuilder.java similarity index 72% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponseOrBuilder.java index 682779d15..f2446a5ad 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/StreamingCommitCursorResponseOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/cursor.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface StreamingCommitCursorResponseOrBuilder - extends +public interface StreamingCommitCursorResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.StreamingCommitCursorResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; - * * @return Whether the initial field is set. */ boolean hasInitial(); /** - * - * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialCommitCursorResponse initial = 1; - * * @return The initial. */ com.google.cloud.pubsublite.proto.InitialCommitCursorResponse getInitial(); /** - * - * *
    * Initial response on the stream.
    * 
@@ -60,32 +36,24 @@ public interface StreamingCommitCursorResponseOrBuilder com.google.cloud.pubsublite.proto.InitialCommitCursorResponseOrBuilder getInitialOrBuilder(); /** - * - * *
    * Response to committing a new cursor value.
    * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; - * * @return Whether the commit field is set. */ boolean hasCommit(); /** - * - * *
    * Response to committing a new cursor value.
    * 
* * .google.cloud.pubsublite.v1.SequencedCommitCursorResponse commit = 2; - * * @return The commit. */ com.google.cloud.pubsublite.proto.SequencedCommitCursorResponse getCommit(); /** - * - * *
    * Response to committing a new cursor value.
    * 
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequest.java similarity index 71% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequest.java index f3c08ab70..de4d67675 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto @@ -20,62 +5,55 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * A request sent from the client to the server on a stream.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SubscribeRequest} */ -public final class SubscribeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SubscribeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.SubscribeRequest) SubscribeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SubscribeRequest.newBuilder() to construct. private SubscribeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SubscribeRequest() {} + private SubscribeRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SubscribeRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SubscribeRequest.class, - com.google.cloud.pubsublite.proto.SubscribeRequest.Builder.class); + com.google.cloud.pubsublite.proto.SubscribeRequest.class, com.google.cloud.pubsublite.proto.SubscribeRequest.Builder.class); } private int requestCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object request_; - public enum RequestCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INITIAL(1), SEEK(2), FLOW_CONTROL(3), REQUEST_NOT_SET(0); private final int value; - private RequestCase(int value) { this.value = value; } @@ -91,38 +69,31 @@ public static RequestCase valueOf(int value) { public static RequestCase forNumber(int value) { switch (value) { - case 1: - return INITIAL; - case 2: - return SEEK; - case 3: - return FLOW_CONTROL; - case 0: - return REQUEST_NOT_SET; - default: - return null; + case 1: return INITIAL; + case 2: return SEEK; + case 3: return FLOW_CONTROL; + case 0: return REQUEST_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public RequestCase getRequestCase() { - return RequestCase.forNumber(requestCase_); + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); } public static final int INITIAL_FIELD_NUMBER = 1; /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1; - * * @return Whether the initial field is set. */ @java.lang.Override @@ -130,26 +101,21 @@ public boolean hasInitial() { return requestCase_ == 1; } /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1; - * * @return The initial. */ @java.lang.Override public com.google.cloud.pubsublite.proto.InitialSubscribeRequest getInitial() { if (requestCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_; + return (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_; } return com.google.cloud.pubsublite.proto.InitialSubscribeRequest.getDefaultInstance(); } /** - * - * *
    * Initial request on the stream.
    * 
@@ -159,21 +125,18 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest getInitial() { @java.lang.Override public com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder getInitialOrBuilder() { if (requestCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_; + return (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_; } return com.google.cloud.pubsublite.proto.InitialSubscribeRequest.getDefaultInstance(); } public static final int SEEK_FIELD_NUMBER = 2; /** - * - * *
    * Request to update the stream's delivery cursor.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest seek = 2; - * * @return Whether the seek field is set. */ @java.lang.Override @@ -181,26 +144,21 @@ public boolean hasSeek() { return requestCase_ == 2; } /** - * - * *
    * Request to update the stream's delivery cursor.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest seek = 2; - * * @return The seek. */ @java.lang.Override public com.google.cloud.pubsublite.proto.SeekRequest getSeek() { if (requestCase_ == 2) { - return (com.google.cloud.pubsublite.proto.SeekRequest) request_; + return (com.google.cloud.pubsublite.proto.SeekRequest) request_; } return com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance(); } /** - * - * *
    * Request to update the stream's delivery cursor.
    * 
@@ -210,21 +168,18 @@ public com.google.cloud.pubsublite.proto.SeekRequest getSeek() { @java.lang.Override public com.google.cloud.pubsublite.proto.SeekRequestOrBuilder getSeekOrBuilder() { if (requestCase_ == 2) { - return (com.google.cloud.pubsublite.proto.SeekRequest) request_; + return (com.google.cloud.pubsublite.proto.SeekRequest) request_; } return com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance(); } public static final int FLOW_CONTROL_FIELD_NUMBER = 3; /** - * - * *
    * Request to grant tokens to the server,
    * 
* * .google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3; - * * @return Whether the flowControl field is set. */ @java.lang.Override @@ -232,26 +187,21 @@ public boolean hasFlowControl() { return requestCase_ == 3; } /** - * - * *
    * Request to grant tokens to the server,
    * 
* * .google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3; - * * @return The flowControl. */ @java.lang.Override public com.google.cloud.pubsublite.proto.FlowControlRequest getFlowControl() { if (requestCase_ == 3) { - return (com.google.cloud.pubsublite.proto.FlowControlRequest) request_; + return (com.google.cloud.pubsublite.proto.FlowControlRequest) request_; } return com.google.cloud.pubsublite.proto.FlowControlRequest.getDefaultInstance(); } /** - * - * *
    * Request to grant tokens to the server,
    * 
@@ -261,13 +211,12 @@ public com.google.cloud.pubsublite.proto.FlowControlRequest getFlowControl() { @java.lang.Override public com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder getFlowControlOrBuilder() { if (requestCase_ == 3) { - return (com.google.cloud.pubsublite.proto.FlowControlRequest) request_; + return (com.google.cloud.pubsublite.proto.FlowControlRequest) request_; } return com.google.cloud.pubsublite.proto.FlowControlRequest.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -279,7 +228,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (requestCase_ == 1) { output.writeMessage(1, (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_); } @@ -299,19 +249,16 @@ public int getSerializedSize() { size = 0; if (requestCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_); } if (requestCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.pubsublite.proto.SeekRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.pubsublite.proto.SeekRequest) request_); } if (requestCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.pubsublite.proto.FlowControlRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.pubsublite.proto.FlowControlRequest) request_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -321,24 +268,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.SubscribeRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.SubscribeRequest other = - (com.google.cloud.pubsublite.proto.SubscribeRequest) obj; + com.google.cloud.pubsublite.proto.SubscribeRequest other = (com.google.cloud.pubsublite.proto.SubscribeRequest) obj; if (!getRequestCase().equals(other.getRequestCase())) return false; switch (requestCase_) { case 1: - if (!getInitial().equals(other.getInitial())) return false; + if (!getInitial() + .equals(other.getInitial())) return false; break; case 2: - if (!getSeek().equals(other.getSeek())) return false; + if (!getSeek() + .equals(other.getSeek())) return false; break; case 3: - if (!getFlowControl().equals(other.getFlowControl())) return false; + if (!getFlowControl() + .equals(other.getFlowControl())) return false; break; case 0: default: @@ -376,135 +325,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.SubscribeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SubscribeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.SubscribeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SubscribeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.SubscribeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SubscribeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.SubscribeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.SubscribeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.SubscribeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.SubscribeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.SubscribeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.SubscribeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.SubscribeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.SubscribeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.pubsublite.proto.SubscribeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A request sent from the client to the server on a stream.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SubscribeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.SubscribeRequest) com.google.cloud.pubsublite.proto.SubscribeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SubscribeRequest.class, - com.google.cloud.pubsublite.proto.SubscribeRequest.Builder.class); + com.google.cloud.pubsublite.proto.SubscribeRequest.class, com.google.cloud.pubsublite.proto.SubscribeRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.SubscribeRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -524,9 +469,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor; } @java.lang.Override @@ -545,11 +490,8 @@ public com.google.cloud.pubsublite.proto.SubscribeRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.SubscribeRequest buildPartial() { - com.google.cloud.pubsublite.proto.SubscribeRequest result = - new com.google.cloud.pubsublite.proto.SubscribeRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.SubscribeRequest result = new com.google.cloud.pubsublite.proto.SubscribeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -562,13 +504,16 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.SubscribeRequest re private void buildPartialOneofs(com.google.cloud.pubsublite.proto.SubscribeRequest result) { result.requestCase_ = requestCase_; result.request_ = this.request_; - if (requestCase_ == 1 && initialBuilder_ != null) { + if (requestCase_ == 1 && + initialBuilder_ != null) { result.request_ = initialBuilder_.build(); } - if (requestCase_ == 2 && seekBuilder_ != null) { + if (requestCase_ == 2 && + seekBuilder_ != null) { result.request_ = seekBuilder_.build(); } - if (requestCase_ == 3 && flowControlBuilder_ != null) { + if (requestCase_ == 3 && + flowControlBuilder_ != null) { result.request_ = flowControlBuilder_.build(); } } @@ -577,39 +522,38 @@ private void buildPartialOneofs(com.google.cloud.pubsublite.proto.SubscribeReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.SubscribeRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.SubscribeRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.SubscribeRequest)other); } else { super.mergeFrom(other); return this; @@ -617,28 +561,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.SubscribeRequest other) { - if (other == com.google.cloud.pubsublite.proto.SubscribeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.SubscribeRequest.getDefaultInstance()) return this; switch (other.getRequestCase()) { - case INITIAL: - { - mergeInitial(other.getInitial()); - break; - } - case SEEK: - { - mergeSeek(other.getSeek()); - break; - } - case FLOW_CONTROL: - { - mergeFlowControl(other.getFlowControl()); - break; - } - case REQUEST_NOT_SET: - { - break; - } + case INITIAL: { + mergeInitial(other.getInitial()); + break; + } + case SEEK: { + mergeSeek(other.getSeek()); + break; + } + case FLOW_CONTROL: { + mergeFlowControl(other.getFlowControl()); + break; + } + case REQUEST_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -666,31 +605,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getInitialFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getSeekFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getFlowControlFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 3; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getInitialFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getSeekFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getFlowControlFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 3; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -700,12 +641,12 @@ public Builder mergeFrom( } // finally return this; } - private int requestCase_ = 0; private java.lang.Object request_; - - public RequestCase getRequestCase() { - return RequestCase.forNumber(requestCase_); + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); } public Builder clearRequest() { @@ -718,19 +659,13 @@ public Builder clearRequest() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialSubscribeRequest, - com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder, - com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder> - initialBuilder_; + com.google.cloud.pubsublite.proto.InitialSubscribeRequest, com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder, com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder> initialBuilder_; /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1; - * * @return Whether the initial field is set. */ @java.lang.Override @@ -738,14 +673,11 @@ public boolean hasInitial() { return requestCase_ == 1; } /** - * - * *
      * Initial request on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1; - * * @return The initial. */ @java.lang.Override @@ -763,8 +695,6 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest getInitial() { } } /** - * - * *
      * Initial request on the stream.
      * 
@@ -785,8 +715,6 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialSubscribeRequ return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -805,8 +733,6 @@ public Builder setInitial( return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -815,14 +741,10 @@ public Builder setInitial( */ public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialSubscribeRequest value) { if (initialBuilder_ == null) { - if (requestCase_ == 1 - && request_ - != com.google.cloud.pubsublite.proto.InitialSubscribeRequest.getDefaultInstance()) { - request_ = - com.google.cloud.pubsublite.proto.InitialSubscribeRequest.newBuilder( - (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 1 && + request_ != com.google.cloud.pubsublite.proto.InitialSubscribeRequest.getDefaultInstance()) { + request_ = com.google.cloud.pubsublite.proto.InitialSubscribeRequest.newBuilder((com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -838,8 +760,6 @@ public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialSubscribeRe return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -863,8 +783,6 @@ public Builder clearInitial() { return this; } /** - * - * *
      * Initial request on the stream.
      * 
@@ -875,8 +793,6 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder getInit return getInitialFieldBuilder().getBuilder(); } /** - * - * *
      * Initial request on the stream.
      * 
@@ -884,8 +800,7 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder getInit * .google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder - getInitialOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder getInitialOrBuilder() { if ((requestCase_ == 1) && (initialBuilder_ != null)) { return initialBuilder_.getMessageOrBuilder(); } else { @@ -896,8 +811,6 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder getInit } } /** - * - * *
      * Initial request on the stream.
      * 
@@ -905,19 +818,14 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder getInit * .google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialSubscribeRequest, - com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder, - com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder> + com.google.cloud.pubsublite.proto.InitialSubscribeRequest, com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder, com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder> getInitialFieldBuilder() { if (initialBuilder_ == null) { if (!(requestCase_ == 1)) { request_ = com.google.cloud.pubsublite.proto.InitialSubscribeRequest.getDefaultInstance(); } - initialBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialSubscribeRequest, - com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder, - com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder>( + initialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.InitialSubscribeRequest, com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder, com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder>( (com.google.cloud.pubsublite.proto.InitialSubscribeRequest) request_, getParentForChildren(), isClean()); @@ -929,19 +837,13 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeRequest.Builder getInit } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SeekRequest, - com.google.cloud.pubsublite.proto.SeekRequest.Builder, - com.google.cloud.pubsublite.proto.SeekRequestOrBuilder> - seekBuilder_; + com.google.cloud.pubsublite.proto.SeekRequest, com.google.cloud.pubsublite.proto.SeekRequest.Builder, com.google.cloud.pubsublite.proto.SeekRequestOrBuilder> seekBuilder_; /** - * - * *
      * Request to update the stream's delivery cursor.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest seek = 2; - * * @return Whether the seek field is set. */ @java.lang.Override @@ -949,14 +851,11 @@ public boolean hasSeek() { return requestCase_ == 2; } /** - * - * *
      * Request to update the stream's delivery cursor.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest seek = 2; - * * @return The seek. */ @java.lang.Override @@ -974,8 +873,6 @@ public com.google.cloud.pubsublite.proto.SeekRequest getSeek() { } } /** - * - * *
      * Request to update the stream's delivery cursor.
      * 
@@ -996,15 +893,14 @@ public Builder setSeek(com.google.cloud.pubsublite.proto.SeekRequest value) { return this; } /** - * - * *
      * Request to update the stream's delivery cursor.
      * 
* * .google.cloud.pubsublite.v1.SeekRequest seek = 2; */ - public Builder setSeek(com.google.cloud.pubsublite.proto.SeekRequest.Builder builderForValue) { + public Builder setSeek( + com.google.cloud.pubsublite.proto.SeekRequest.Builder builderForValue) { if (seekBuilder_ == null) { request_ = builderForValue.build(); onChanged(); @@ -1015,8 +911,6 @@ public Builder setSeek(com.google.cloud.pubsublite.proto.SeekRequest.Builder bui return this; } /** - * - * *
      * Request to update the stream's delivery cursor.
      * 
@@ -1025,13 +919,10 @@ public Builder setSeek(com.google.cloud.pubsublite.proto.SeekRequest.Builder bui */ public Builder mergeSeek(com.google.cloud.pubsublite.proto.SeekRequest value) { if (seekBuilder_ == null) { - if (requestCase_ == 2 - && request_ != com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance()) { - request_ = - com.google.cloud.pubsublite.proto.SeekRequest.newBuilder( - (com.google.cloud.pubsublite.proto.SeekRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 2 && + request_ != com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance()) { + request_ = com.google.cloud.pubsublite.proto.SeekRequest.newBuilder((com.google.cloud.pubsublite.proto.SeekRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -1047,8 +938,6 @@ public Builder mergeSeek(com.google.cloud.pubsublite.proto.SeekRequest value) { return this; } /** - * - * *
      * Request to update the stream's delivery cursor.
      * 
@@ -1072,8 +961,6 @@ public Builder clearSeek() { return this; } /** - * - * *
      * Request to update the stream's delivery cursor.
      * 
@@ -1084,8 +971,6 @@ public com.google.cloud.pubsublite.proto.SeekRequest.Builder getSeekBuilder() { return getSeekFieldBuilder().getBuilder(); } /** - * - * *
      * Request to update the stream's delivery cursor.
      * 
@@ -1104,8 +989,6 @@ public com.google.cloud.pubsublite.proto.SeekRequestOrBuilder getSeekOrBuilder() } } /** - * - * *
      * Request to update the stream's delivery cursor.
      * 
@@ -1113,19 +996,14 @@ public com.google.cloud.pubsublite.proto.SeekRequestOrBuilder getSeekOrBuilder() * .google.cloud.pubsublite.v1.SeekRequest seek = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SeekRequest, - com.google.cloud.pubsublite.proto.SeekRequest.Builder, - com.google.cloud.pubsublite.proto.SeekRequestOrBuilder> + com.google.cloud.pubsublite.proto.SeekRequest, com.google.cloud.pubsublite.proto.SeekRequest.Builder, com.google.cloud.pubsublite.proto.SeekRequestOrBuilder> getSeekFieldBuilder() { if (seekBuilder_ == null) { if (!(requestCase_ == 2)) { request_ = com.google.cloud.pubsublite.proto.SeekRequest.getDefaultInstance(); } - seekBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SeekRequest, - com.google.cloud.pubsublite.proto.SeekRequest.Builder, - com.google.cloud.pubsublite.proto.SeekRequestOrBuilder>( + seekBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.SeekRequest, com.google.cloud.pubsublite.proto.SeekRequest.Builder, com.google.cloud.pubsublite.proto.SeekRequestOrBuilder>( (com.google.cloud.pubsublite.proto.SeekRequest) request_, getParentForChildren(), isClean()); @@ -1137,19 +1015,13 @@ public com.google.cloud.pubsublite.proto.SeekRequestOrBuilder getSeekOrBuilder() } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.FlowControlRequest, - com.google.cloud.pubsublite.proto.FlowControlRequest.Builder, - com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder> - flowControlBuilder_; + com.google.cloud.pubsublite.proto.FlowControlRequest, com.google.cloud.pubsublite.proto.FlowControlRequest.Builder, com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder> flowControlBuilder_; /** - * - * *
      * Request to grant tokens to the server,
      * 
* * .google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3; - * * @return Whether the flowControl field is set. */ @java.lang.Override @@ -1157,14 +1029,11 @@ public boolean hasFlowControl() { return requestCase_ == 3; } /** - * - * *
      * Request to grant tokens to the server,
      * 
* * .google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3; - * * @return The flowControl. */ @java.lang.Override @@ -1182,8 +1051,6 @@ public com.google.cloud.pubsublite.proto.FlowControlRequest getFlowControl() { } } /** - * - * *
      * Request to grant tokens to the server,
      * 
@@ -1204,8 +1071,6 @@ public Builder setFlowControl(com.google.cloud.pubsublite.proto.FlowControlReque return this; } /** - * - * *
      * Request to grant tokens to the server,
      * 
@@ -1224,8 +1089,6 @@ public Builder setFlowControl( return this; } /** - * - * *
      * Request to grant tokens to the server,
      * 
@@ -1234,14 +1097,10 @@ public Builder setFlowControl( */ public Builder mergeFlowControl(com.google.cloud.pubsublite.proto.FlowControlRequest value) { if (flowControlBuilder_ == null) { - if (requestCase_ == 3 - && request_ - != com.google.cloud.pubsublite.proto.FlowControlRequest.getDefaultInstance()) { - request_ = - com.google.cloud.pubsublite.proto.FlowControlRequest.newBuilder( - (com.google.cloud.pubsublite.proto.FlowControlRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 3 && + request_ != com.google.cloud.pubsublite.proto.FlowControlRequest.getDefaultInstance()) { + request_ = com.google.cloud.pubsublite.proto.FlowControlRequest.newBuilder((com.google.cloud.pubsublite.proto.FlowControlRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -1257,8 +1116,6 @@ public Builder mergeFlowControl(com.google.cloud.pubsublite.proto.FlowControlReq return this; } /** - * - * *
      * Request to grant tokens to the server,
      * 
@@ -1282,8 +1139,6 @@ public Builder clearFlowControl() { return this; } /** - * - * *
      * Request to grant tokens to the server,
      * 
@@ -1294,8 +1149,6 @@ public com.google.cloud.pubsublite.proto.FlowControlRequest.Builder getFlowContr return getFlowControlFieldBuilder().getBuilder(); } /** - * - * *
      * Request to grant tokens to the server,
      * 
@@ -1314,8 +1167,6 @@ public com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder getFlowCont } } /** - * - * *
      * Request to grant tokens to the server,
      * 
@@ -1323,19 +1174,14 @@ public com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder getFlowCont * .google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.FlowControlRequest, - com.google.cloud.pubsublite.proto.FlowControlRequest.Builder, - com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder> + com.google.cloud.pubsublite.proto.FlowControlRequest, com.google.cloud.pubsublite.proto.FlowControlRequest.Builder, com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder> getFlowControlFieldBuilder() { if (flowControlBuilder_ == null) { if (!(requestCase_ == 3)) { request_ = com.google.cloud.pubsublite.proto.FlowControlRequest.getDefaultInstance(); } - flowControlBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.FlowControlRequest, - com.google.cloud.pubsublite.proto.FlowControlRequest.Builder, - com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder>( + flowControlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.FlowControlRequest, com.google.cloud.pubsublite.proto.FlowControlRequest.Builder, com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder>( (com.google.cloud.pubsublite.proto.FlowControlRequest) request_, getParentForChildren(), isClean()); @@ -1345,9 +1191,9 @@ public com.google.cloud.pubsublite.proto.FlowControlRequestOrBuilder getFlowCont onChanged(); return flowControlBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1357,12 +1203,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SubscribeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SubscribeRequest) private static final com.google.cloud.pubsublite.proto.SubscribeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SubscribeRequest(); } @@ -1371,27 +1217,27 @@ public static com.google.cloud.pubsublite.proto.SubscribeRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubscribeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubscribeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1406,4 +1252,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.SubscribeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequestOrBuilder.java similarity index 77% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequestOrBuilder.java index 2b7ccfb8e..74cd6cbd4 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeRequestOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface SubscribeRequestOrBuilder - extends +public interface SubscribeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SubscribeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1; - * * @return Whether the initial field is set. */ boolean hasInitial(); /** - * - * *
    * Initial request on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialSubscribeRequest initial = 1; - * * @return The initial. */ com.google.cloud.pubsublite.proto.InitialSubscribeRequest getInitial(); /** - * - * *
    * Initial request on the stream.
    * 
@@ -60,32 +36,24 @@ public interface SubscribeRequestOrBuilder com.google.cloud.pubsublite.proto.InitialSubscribeRequestOrBuilder getInitialOrBuilder(); /** - * - * *
    * Request to update the stream's delivery cursor.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest seek = 2; - * * @return Whether the seek field is set. */ boolean hasSeek(); /** - * - * *
    * Request to update the stream's delivery cursor.
    * 
* * .google.cloud.pubsublite.v1.SeekRequest seek = 2; - * * @return The seek. */ com.google.cloud.pubsublite.proto.SeekRequest getSeek(); /** - * - * *
    * Request to update the stream's delivery cursor.
    * 
@@ -95,32 +63,24 @@ public interface SubscribeRequestOrBuilder com.google.cloud.pubsublite.proto.SeekRequestOrBuilder getSeekOrBuilder(); /** - * - * *
    * Request to grant tokens to the server,
    * 
* * .google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3; - * * @return Whether the flowControl field is set. */ boolean hasFlowControl(); /** - * - * *
    * Request to grant tokens to the server,
    * 
* * .google.cloud.pubsublite.v1.FlowControlRequest flow_control = 3; - * * @return The flowControl. */ com.google.cloud.pubsublite.proto.FlowControlRequest getFlowControl(); /** - * - * *
    * Request to grant tokens to the server,
    * 
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponse.java similarity index 70% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponse.java index 13a39cfbb..c20f5786f 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponse.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto @@ -20,62 +5,55 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response to SubscribeRequest.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SubscribeResponse} */ -public final class SubscribeResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SubscribeResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.SubscribeResponse) SubscribeResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SubscribeResponse.newBuilder() to construct. private SubscribeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SubscribeResponse() {} + private SubscribeResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SubscribeResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SubscribeResponse.class, - com.google.cloud.pubsublite.proto.SubscribeResponse.Builder.class); + com.google.cloud.pubsublite.proto.SubscribeResponse.class, com.google.cloud.pubsublite.proto.SubscribeResponse.Builder.class); } private int responseCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object response_; - public enum ResponseCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INITIAL(1), SEEK(2), MESSAGES(3), RESPONSE_NOT_SET(0); private final int value; - private ResponseCase(int value) { this.value = value; } @@ -91,38 +69,31 @@ public static ResponseCase valueOf(int value) { public static ResponseCase forNumber(int value) { switch (value) { - case 1: - return INITIAL; - case 2: - return SEEK; - case 3: - return MESSAGES; - case 0: - return RESPONSE_NOT_SET; - default: - return null; + case 1: return INITIAL; + case 2: return SEEK; + case 3: return MESSAGES; + case 0: return RESPONSE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ResponseCase getResponseCase() { - return ResponseCase.forNumber(responseCase_); + public ResponseCase + getResponseCase() { + return ResponseCase.forNumber( + responseCase_); } public static final int INITIAL_FIELD_NUMBER = 1; /** - * - * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1; - * * @return Whether the initial field is set. */ @java.lang.Override @@ -130,26 +101,21 @@ public boolean hasInitial() { return responseCase_ == 1; } /** - * - * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1; - * * @return The initial. */ @java.lang.Override public com.google.cloud.pubsublite.proto.InitialSubscribeResponse getInitial() { if (responseCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_; + return (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_; } return com.google.cloud.pubsublite.proto.InitialSubscribeResponse.getDefaultInstance(); } /** - * - * *
    * Initial response on the stream.
    * 
@@ -159,21 +125,18 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse getInitial() { @java.lang.Override public com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder getInitialOrBuilder() { if (responseCase_ == 1) { - return (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_; + return (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_; } return com.google.cloud.pubsublite.proto.InitialSubscribeResponse.getDefaultInstance(); } public static final int SEEK_FIELD_NUMBER = 2; /** - * - * *
    * Response to a Seek operation.
    * 
* * .google.cloud.pubsublite.v1.SeekResponse seek = 2; - * * @return Whether the seek field is set. */ @java.lang.Override @@ -181,26 +144,21 @@ public boolean hasSeek() { return responseCase_ == 2; } /** - * - * *
    * Response to a Seek operation.
    * 
* * .google.cloud.pubsublite.v1.SeekResponse seek = 2; - * * @return The seek. */ @java.lang.Override public com.google.cloud.pubsublite.proto.SeekResponse getSeek() { if (responseCase_ == 2) { - return (com.google.cloud.pubsublite.proto.SeekResponse) response_; + return (com.google.cloud.pubsublite.proto.SeekResponse) response_; } return com.google.cloud.pubsublite.proto.SeekResponse.getDefaultInstance(); } /** - * - * *
    * Response to a Seek operation.
    * 
@@ -210,21 +168,18 @@ public com.google.cloud.pubsublite.proto.SeekResponse getSeek() { @java.lang.Override public com.google.cloud.pubsublite.proto.SeekResponseOrBuilder getSeekOrBuilder() { if (responseCase_ == 2) { - return (com.google.cloud.pubsublite.proto.SeekResponse) response_; + return (com.google.cloud.pubsublite.proto.SeekResponse) response_; } return com.google.cloud.pubsublite.proto.SeekResponse.getDefaultInstance(); } public static final int MESSAGES_FIELD_NUMBER = 3; /** - * - * *
    * Response containing messages from the topic partition.
    * 
* * .google.cloud.pubsublite.v1.MessageResponse messages = 3; - * * @return Whether the messages field is set. */ @java.lang.Override @@ -232,26 +187,21 @@ public boolean hasMessages() { return responseCase_ == 3; } /** - * - * *
    * Response containing messages from the topic partition.
    * 
* * .google.cloud.pubsublite.v1.MessageResponse messages = 3; - * * @return The messages. */ @java.lang.Override public com.google.cloud.pubsublite.proto.MessageResponse getMessages() { if (responseCase_ == 3) { - return (com.google.cloud.pubsublite.proto.MessageResponse) response_; + return (com.google.cloud.pubsublite.proto.MessageResponse) response_; } return com.google.cloud.pubsublite.proto.MessageResponse.getDefaultInstance(); } /** - * - * *
    * Response containing messages from the topic partition.
    * 
@@ -261,13 +211,12 @@ public com.google.cloud.pubsublite.proto.MessageResponse getMessages() { @java.lang.Override public com.google.cloud.pubsublite.proto.MessageResponseOrBuilder getMessagesOrBuilder() { if (responseCase_ == 3) { - return (com.google.cloud.pubsublite.proto.MessageResponse) response_; + return (com.google.cloud.pubsublite.proto.MessageResponse) response_; } return com.google.cloud.pubsublite.proto.MessageResponse.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -279,10 +228,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (responseCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_); + output.writeMessage(1, (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_); } if (responseCase_ == 2) { output.writeMessage(2, (com.google.cloud.pubsublite.proto.SeekResponse) response_); @@ -300,19 +249,16 @@ public int getSerializedSize() { size = 0; if (responseCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_); } if (responseCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.pubsublite.proto.SeekResponse) response_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.pubsublite.proto.SeekResponse) response_); } if (responseCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.pubsublite.proto.MessageResponse) response_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.pubsublite.proto.MessageResponse) response_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -322,24 +268,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.SubscribeResponse)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.SubscribeResponse other = - (com.google.cloud.pubsublite.proto.SubscribeResponse) obj; + com.google.cloud.pubsublite.proto.SubscribeResponse other = (com.google.cloud.pubsublite.proto.SubscribeResponse) obj; if (!getResponseCase().equals(other.getResponseCase())) return false; switch (responseCase_) { case 1: - if (!getInitial().equals(other.getInitial())) return false; + if (!getInitial() + .equals(other.getInitial())) return false; break; case 2: - if (!getSeek().equals(other.getSeek())) return false; + if (!getSeek() + .equals(other.getSeek())) return false; break; case 3: - if (!getMessages().equals(other.getMessages())) return false; + if (!getMessages() + .equals(other.getMessages())) return false; break; case 0: default: @@ -377,135 +325,131 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.SubscribeResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SubscribeResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.SubscribeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SubscribeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.SubscribeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.SubscribeResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.SubscribeResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.SubscribeResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.SubscribeResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.SubscribeResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.SubscribeResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.SubscribeResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.SubscribeResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.SubscribeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.pubsublite.proto.SubscribeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response to SubscribeRequest.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.SubscribeResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.SubscribeResponse) com.google.cloud.pubsublite.proto.SubscribeResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.SubscribeResponse.class, - com.google.cloud.pubsublite.proto.SubscribeResponse.Builder.class); + com.google.cloud.pubsublite.proto.SubscribeResponse.class, com.google.cloud.pubsublite.proto.SubscribeResponse.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.SubscribeResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -525,9 +469,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.SubscriberProto - .internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.SubscriberProto.internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor; } @java.lang.Override @@ -546,11 +490,8 @@ public com.google.cloud.pubsublite.proto.SubscribeResponse build() { @java.lang.Override public com.google.cloud.pubsublite.proto.SubscribeResponse buildPartial() { - com.google.cloud.pubsublite.proto.SubscribeResponse result = - new com.google.cloud.pubsublite.proto.SubscribeResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.SubscribeResponse result = new com.google.cloud.pubsublite.proto.SubscribeResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -563,13 +504,16 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.SubscribeResponse r private void buildPartialOneofs(com.google.cloud.pubsublite.proto.SubscribeResponse result) { result.responseCase_ = responseCase_; result.response_ = this.response_; - if (responseCase_ == 1 && initialBuilder_ != null) { + if (responseCase_ == 1 && + initialBuilder_ != null) { result.response_ = initialBuilder_.build(); } - if (responseCase_ == 2 && seekBuilder_ != null) { + if (responseCase_ == 2 && + seekBuilder_ != null) { result.response_ = seekBuilder_.build(); } - if (responseCase_ == 3 && messagesBuilder_ != null) { + if (responseCase_ == 3 && + messagesBuilder_ != null) { result.response_ = messagesBuilder_.build(); } } @@ -578,39 +522,38 @@ private void buildPartialOneofs(com.google.cloud.pubsublite.proto.SubscribeRespo public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.SubscribeResponse) { - return mergeFrom((com.google.cloud.pubsublite.proto.SubscribeResponse) other); + return mergeFrom((com.google.cloud.pubsublite.proto.SubscribeResponse)other); } else { super.mergeFrom(other); return this; @@ -618,28 +561,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.SubscribeResponse other) { - if (other == com.google.cloud.pubsublite.proto.SubscribeResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.SubscribeResponse.getDefaultInstance()) return this; switch (other.getResponseCase()) { - case INITIAL: - { - mergeInitial(other.getInitial()); - break; - } - case SEEK: - { - mergeSeek(other.getSeek()); - break; - } - case MESSAGES: - { - mergeMessages(other.getMessages()); - break; - } - case RESPONSE_NOT_SET: - { - break; - } + case INITIAL: { + mergeInitial(other.getInitial()); + break; + } + case SEEK: { + mergeSeek(other.getSeek()); + break; + } + case MESSAGES: { + mergeMessages(other.getMessages()); + break; + } + case RESPONSE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -667,31 +605,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getInitialFieldBuilder().getBuilder(), extensionRegistry); - responseCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getSeekFieldBuilder().getBuilder(), extensionRegistry); - responseCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getMessagesFieldBuilder().getBuilder(), extensionRegistry); - responseCase_ = 3; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getInitialFieldBuilder().getBuilder(), + extensionRegistry); + responseCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getSeekFieldBuilder().getBuilder(), + extensionRegistry); + responseCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getMessagesFieldBuilder().getBuilder(), + extensionRegistry); + responseCase_ = 3; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -701,12 +641,12 @@ public Builder mergeFrom( } // finally return this; } - private int responseCase_ = 0; private java.lang.Object response_; - - public ResponseCase getResponseCase() { - return ResponseCase.forNumber(responseCase_); + public ResponseCase + getResponseCase() { + return ResponseCase.forNumber( + responseCase_); } public Builder clearResponse() { @@ -719,19 +659,13 @@ public Builder clearResponse() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialSubscribeResponse, - com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder, - com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder> - initialBuilder_; + com.google.cloud.pubsublite.proto.InitialSubscribeResponse, com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder, com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder> initialBuilder_; /** - * - * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1; - * * @return Whether the initial field is set. */ @java.lang.Override @@ -739,14 +673,11 @@ public boolean hasInitial() { return responseCase_ == 1; } /** - * - * *
      * Initial response on the stream.
      * 
* * .google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1; - * * @return The initial. */ @java.lang.Override @@ -764,8 +695,6 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse getInitial() { } } /** - * - * *
      * Initial response on the stream.
      * 
@@ -786,8 +715,6 @@ public Builder setInitial(com.google.cloud.pubsublite.proto.InitialSubscribeResp return this; } /** - * - * *
      * Initial response on the stream.
      * 
@@ -806,8 +733,6 @@ public Builder setInitial( return this; } /** - * - * *
      * Initial response on the stream.
      * 
@@ -816,15 +741,10 @@ public Builder setInitial( */ public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialSubscribeResponse value) { if (initialBuilder_ == null) { - if (responseCase_ == 1 - && response_ - != com.google.cloud.pubsublite.proto.InitialSubscribeResponse - .getDefaultInstance()) { - response_ = - com.google.cloud.pubsublite.proto.InitialSubscribeResponse.newBuilder( - (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_) - .mergeFrom(value) - .buildPartial(); + if (responseCase_ == 1 && + response_ != com.google.cloud.pubsublite.proto.InitialSubscribeResponse.getDefaultInstance()) { + response_ = com.google.cloud.pubsublite.proto.InitialSubscribeResponse.newBuilder((com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_) + .mergeFrom(value).buildPartial(); } else { response_ = value; } @@ -840,8 +760,6 @@ public Builder mergeInitial(com.google.cloud.pubsublite.proto.InitialSubscribeRe return this; } /** - * - * *
      * Initial response on the stream.
      * 
@@ -865,8 +783,6 @@ public Builder clearInitial() { return this; } /** - * - * *
      * Initial response on the stream.
      * 
@@ -877,8 +793,6 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder getIni return getInitialFieldBuilder().getBuilder(); } /** - * - * *
      * Initial response on the stream.
      * 
@@ -886,8 +800,7 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder getIni * .google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder - getInitialOrBuilder() { + public com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder getInitialOrBuilder() { if ((responseCase_ == 1) && (initialBuilder_ != null)) { return initialBuilder_.getMessageOrBuilder(); } else { @@ -898,8 +811,6 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder getIni } } /** - * - * *
      * Initial response on the stream.
      * 
@@ -907,20 +818,14 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder getIni * .google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialSubscribeResponse, - com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder, - com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder> + com.google.cloud.pubsublite.proto.InitialSubscribeResponse, com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder, com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder> getInitialFieldBuilder() { if (initialBuilder_ == null) { if (!(responseCase_ == 1)) { - response_ = - com.google.cloud.pubsublite.proto.InitialSubscribeResponse.getDefaultInstance(); + response_ = com.google.cloud.pubsublite.proto.InitialSubscribeResponse.getDefaultInstance(); } - initialBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.InitialSubscribeResponse, - com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder, - com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder>( + initialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.InitialSubscribeResponse, com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder, com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder>( (com.google.cloud.pubsublite.proto.InitialSubscribeResponse) response_, getParentForChildren(), isClean()); @@ -932,19 +837,13 @@ public com.google.cloud.pubsublite.proto.InitialSubscribeResponse.Builder getIni } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SeekResponse, - com.google.cloud.pubsublite.proto.SeekResponse.Builder, - com.google.cloud.pubsublite.proto.SeekResponseOrBuilder> - seekBuilder_; + com.google.cloud.pubsublite.proto.SeekResponse, com.google.cloud.pubsublite.proto.SeekResponse.Builder, com.google.cloud.pubsublite.proto.SeekResponseOrBuilder> seekBuilder_; /** - * - * *
      * Response to a Seek operation.
      * 
* * .google.cloud.pubsublite.v1.SeekResponse seek = 2; - * * @return Whether the seek field is set. */ @java.lang.Override @@ -952,14 +851,11 @@ public boolean hasSeek() { return responseCase_ == 2; } /** - * - * *
      * Response to a Seek operation.
      * 
* * .google.cloud.pubsublite.v1.SeekResponse seek = 2; - * * @return The seek. */ @java.lang.Override @@ -977,8 +873,6 @@ public com.google.cloud.pubsublite.proto.SeekResponse getSeek() { } } /** - * - * *
      * Response to a Seek operation.
      * 
@@ -999,15 +893,14 @@ public Builder setSeek(com.google.cloud.pubsublite.proto.SeekResponse value) { return this; } /** - * - * *
      * Response to a Seek operation.
      * 
* * .google.cloud.pubsublite.v1.SeekResponse seek = 2; */ - public Builder setSeek(com.google.cloud.pubsublite.proto.SeekResponse.Builder builderForValue) { + public Builder setSeek( + com.google.cloud.pubsublite.proto.SeekResponse.Builder builderForValue) { if (seekBuilder_ == null) { response_ = builderForValue.build(); onChanged(); @@ -1018,8 +911,6 @@ public Builder setSeek(com.google.cloud.pubsublite.proto.SeekResponse.Builder bu return this; } /** - * - * *
      * Response to a Seek operation.
      * 
@@ -1028,13 +919,10 @@ public Builder setSeek(com.google.cloud.pubsublite.proto.SeekResponse.Builder bu */ public Builder mergeSeek(com.google.cloud.pubsublite.proto.SeekResponse value) { if (seekBuilder_ == null) { - if (responseCase_ == 2 - && response_ != com.google.cloud.pubsublite.proto.SeekResponse.getDefaultInstance()) { - response_ = - com.google.cloud.pubsublite.proto.SeekResponse.newBuilder( - (com.google.cloud.pubsublite.proto.SeekResponse) response_) - .mergeFrom(value) - .buildPartial(); + if (responseCase_ == 2 && + response_ != com.google.cloud.pubsublite.proto.SeekResponse.getDefaultInstance()) { + response_ = com.google.cloud.pubsublite.proto.SeekResponse.newBuilder((com.google.cloud.pubsublite.proto.SeekResponse) response_) + .mergeFrom(value).buildPartial(); } else { response_ = value; } @@ -1050,8 +938,6 @@ public Builder mergeSeek(com.google.cloud.pubsublite.proto.SeekResponse value) { return this; } /** - * - * *
      * Response to a Seek operation.
      * 
@@ -1075,8 +961,6 @@ public Builder clearSeek() { return this; } /** - * - * *
      * Response to a Seek operation.
      * 
@@ -1087,8 +971,6 @@ public com.google.cloud.pubsublite.proto.SeekResponse.Builder getSeekBuilder() { return getSeekFieldBuilder().getBuilder(); } /** - * - * *
      * Response to a Seek operation.
      * 
@@ -1107,8 +989,6 @@ public com.google.cloud.pubsublite.proto.SeekResponseOrBuilder getSeekOrBuilder( } } /** - * - * *
      * Response to a Seek operation.
      * 
@@ -1116,19 +996,14 @@ public com.google.cloud.pubsublite.proto.SeekResponseOrBuilder getSeekOrBuilder( * .google.cloud.pubsublite.v1.SeekResponse seek = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SeekResponse, - com.google.cloud.pubsublite.proto.SeekResponse.Builder, - com.google.cloud.pubsublite.proto.SeekResponseOrBuilder> + com.google.cloud.pubsublite.proto.SeekResponse, com.google.cloud.pubsublite.proto.SeekResponse.Builder, com.google.cloud.pubsublite.proto.SeekResponseOrBuilder> getSeekFieldBuilder() { if (seekBuilder_ == null) { if (!(responseCase_ == 2)) { response_ = com.google.cloud.pubsublite.proto.SeekResponse.getDefaultInstance(); } - seekBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.SeekResponse, - com.google.cloud.pubsublite.proto.SeekResponse.Builder, - com.google.cloud.pubsublite.proto.SeekResponseOrBuilder>( + seekBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.SeekResponse, com.google.cloud.pubsublite.proto.SeekResponse.Builder, com.google.cloud.pubsublite.proto.SeekResponseOrBuilder>( (com.google.cloud.pubsublite.proto.SeekResponse) response_, getParentForChildren(), isClean()); @@ -1140,19 +1015,13 @@ public com.google.cloud.pubsublite.proto.SeekResponseOrBuilder getSeekOrBuilder( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessageResponse, - com.google.cloud.pubsublite.proto.MessageResponse.Builder, - com.google.cloud.pubsublite.proto.MessageResponseOrBuilder> - messagesBuilder_; + com.google.cloud.pubsublite.proto.MessageResponse, com.google.cloud.pubsublite.proto.MessageResponse.Builder, com.google.cloud.pubsublite.proto.MessageResponseOrBuilder> messagesBuilder_; /** - * - * *
      * Response containing messages from the topic partition.
      * 
* * .google.cloud.pubsublite.v1.MessageResponse messages = 3; - * * @return Whether the messages field is set. */ @java.lang.Override @@ -1160,14 +1029,11 @@ public boolean hasMessages() { return responseCase_ == 3; } /** - * - * *
      * Response containing messages from the topic partition.
      * 
* * .google.cloud.pubsublite.v1.MessageResponse messages = 3; - * * @return The messages. */ @java.lang.Override @@ -1185,8 +1051,6 @@ public com.google.cloud.pubsublite.proto.MessageResponse getMessages() { } } /** - * - * *
      * Response containing messages from the topic partition.
      * 
@@ -1207,8 +1071,6 @@ public Builder setMessages(com.google.cloud.pubsublite.proto.MessageResponse val return this; } /** - * - * *
      * Response containing messages from the topic partition.
      * 
@@ -1227,8 +1089,6 @@ public Builder setMessages( return this; } /** - * - * *
      * Response containing messages from the topic partition.
      * 
@@ -1237,14 +1097,10 @@ public Builder setMessages( */ public Builder mergeMessages(com.google.cloud.pubsublite.proto.MessageResponse value) { if (messagesBuilder_ == null) { - if (responseCase_ == 3 - && response_ - != com.google.cloud.pubsublite.proto.MessageResponse.getDefaultInstance()) { - response_ = - com.google.cloud.pubsublite.proto.MessageResponse.newBuilder( - (com.google.cloud.pubsublite.proto.MessageResponse) response_) - .mergeFrom(value) - .buildPartial(); + if (responseCase_ == 3 && + response_ != com.google.cloud.pubsublite.proto.MessageResponse.getDefaultInstance()) { + response_ = com.google.cloud.pubsublite.proto.MessageResponse.newBuilder((com.google.cloud.pubsublite.proto.MessageResponse) response_) + .mergeFrom(value).buildPartial(); } else { response_ = value; } @@ -1260,8 +1116,6 @@ public Builder mergeMessages(com.google.cloud.pubsublite.proto.MessageResponse v return this; } /** - * - * *
      * Response containing messages from the topic partition.
      * 
@@ -1285,8 +1139,6 @@ public Builder clearMessages() { return this; } /** - * - * *
      * Response containing messages from the topic partition.
      * 
@@ -1297,8 +1149,6 @@ public com.google.cloud.pubsublite.proto.MessageResponse.Builder getMessagesBuil return getMessagesFieldBuilder().getBuilder(); } /** - * - * *
      * Response containing messages from the topic partition.
      * 
@@ -1317,8 +1167,6 @@ public com.google.cloud.pubsublite.proto.MessageResponseOrBuilder getMessagesOrB } } /** - * - * *
      * Response containing messages from the topic partition.
      * 
@@ -1326,19 +1174,14 @@ public com.google.cloud.pubsublite.proto.MessageResponseOrBuilder getMessagesOrB * .google.cloud.pubsublite.v1.MessageResponse messages = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessageResponse, - com.google.cloud.pubsublite.proto.MessageResponse.Builder, - com.google.cloud.pubsublite.proto.MessageResponseOrBuilder> + com.google.cloud.pubsublite.proto.MessageResponse, com.google.cloud.pubsublite.proto.MessageResponse.Builder, com.google.cloud.pubsublite.proto.MessageResponseOrBuilder> getMessagesFieldBuilder() { if (messagesBuilder_ == null) { if (!(responseCase_ == 3)) { response_ = com.google.cloud.pubsublite.proto.MessageResponse.getDefaultInstance(); } - messagesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.MessageResponse, - com.google.cloud.pubsublite.proto.MessageResponse.Builder, - com.google.cloud.pubsublite.proto.MessageResponseOrBuilder>( + messagesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.MessageResponse, com.google.cloud.pubsublite.proto.MessageResponse.Builder, com.google.cloud.pubsublite.proto.MessageResponseOrBuilder>( (com.google.cloud.pubsublite.proto.MessageResponse) response_, getParentForChildren(), isClean()); @@ -1348,9 +1191,9 @@ public com.google.cloud.pubsublite.proto.MessageResponseOrBuilder getMessagesOrB onChanged(); return messagesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1360,12 +1203,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.SubscribeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.SubscribeResponse) private static final com.google.cloud.pubsublite.proto.SubscribeResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.SubscribeResponse(); } @@ -1374,27 +1217,27 @@ public static com.google.cloud.pubsublite.proto.SubscribeResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubscribeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubscribeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1409,4 +1252,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.SubscribeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponseOrBuilder.java similarity index 77% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponseOrBuilder.java index 8c3d26811..6c46d6269 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscribeResponseOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/subscriber.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface SubscribeResponseOrBuilder - extends +public interface SubscribeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SubscribeResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1; - * * @return Whether the initial field is set. */ boolean hasInitial(); /** - * - * *
    * Initial response on the stream.
    * 
* * .google.cloud.pubsublite.v1.InitialSubscribeResponse initial = 1; - * * @return The initial. */ com.google.cloud.pubsublite.proto.InitialSubscribeResponse getInitial(); /** - * - * *
    * Initial response on the stream.
    * 
@@ -60,32 +36,24 @@ public interface SubscribeResponseOrBuilder com.google.cloud.pubsublite.proto.InitialSubscribeResponseOrBuilder getInitialOrBuilder(); /** - * - * *
    * Response to a Seek operation.
    * 
* * .google.cloud.pubsublite.v1.SeekResponse seek = 2; - * * @return Whether the seek field is set. */ boolean hasSeek(); /** - * - * *
    * Response to a Seek operation.
    * 
* * .google.cloud.pubsublite.v1.SeekResponse seek = 2; - * * @return The seek. */ com.google.cloud.pubsublite.proto.SeekResponse getSeek(); /** - * - * *
    * Response to a Seek operation.
    * 
@@ -95,32 +63,24 @@ public interface SubscribeResponseOrBuilder com.google.cloud.pubsublite.proto.SeekResponseOrBuilder getSeekOrBuilder(); /** - * - * *
    * Response containing messages from the topic partition.
    * 
* * .google.cloud.pubsublite.v1.MessageResponse messages = 3; - * * @return Whether the messages field is set. */ boolean hasMessages(); /** - * - * *
    * Response containing messages from the topic partition.
    * 
* * .google.cloud.pubsublite.v1.MessageResponse messages = 3; - * * @return The messages. */ com.google.cloud.pubsublite.proto.MessageResponse getMessages(); /** - * - * *
    * Response containing messages from the topic partition.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberProto.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberProto.java new file mode 100644 index 000000000..71f209b17 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberProto.java @@ -0,0 +1,241 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/subscriber.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.pubsublite.proto; + +public final class SubscriberProto { + private SubscriberProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/pubsublite/v1/subscriber." + + "proto\022\032google.cloud.pubsublite.v1\032\034googl" + + "e/api/annotations.proto\032\027google/api/clie" + + "nt.proto\032\037google/api/field_behavior.prot" + + "o\032\'google/cloud/pubsublite/v1/common.pro" + + "to\"\212\001\n\027InitialSubscribeRequest\022\024\n\014subscr" + + "iption\030\001 \001(\t\022\021\n\tpartition\030\002 \001(\003\022F\n\020initi" + + "al_location\030\004 \001(\0132\'.google.cloud.pubsubl" + + "ite.v1.SeekRequestB\003\340A\001\"N\n\030InitialSubscr" + + "ibeResponse\0222\n\006cursor\030\001 \001(\0132\".google.clo" + + "ud.pubsublite.v1.Cursor\"\347\001\n\013SeekRequest\022" + + "K\n\014named_target\030\001 \001(\01623.google.cloud.pub" + + "sublite.v1.SeekRequest.NamedTargetH\000\0224\n\006" + + "cursor\030\002 \001(\0132\".google.cloud.pubsublite.v" + + "1.CursorH\000\"K\n\013NamedTarget\022\034\n\030NAMED_TARGE" + + "T_UNSPECIFIED\020\000\022\010\n\004HEAD\020\001\022\024\n\020COMMITTED_C" + + "URSOR\020\002B\010\n\006target\"B\n\014SeekResponse\0222\n\006cur" + + "sor\030\001 \001(\0132\".google.cloud.pubsublite.v1.C" + + "ursor\"E\n\022FlowControlRequest\022\030\n\020allowed_m" + + "essages\030\001 \001(\003\022\025\n\rallowed_bytes\030\002 \001(\003\"\346\001\n" + + "\020SubscribeRequest\022F\n\007initial\030\001 \001(\01323.goo" + + "gle.cloud.pubsublite.v1.InitialSubscribe" + + "RequestH\000\0227\n\004seek\030\002 \001(\0132\'.google.cloud.p" + + "ubsublite.v1.SeekRequestH\000\022F\n\014flow_contr" + + "ol\030\003 \001(\0132..google.cloud.pubsublite.v1.Fl" + + "owControlRequestH\000B\t\n\007request\"Q\n\017Message" + + "Response\022>\n\010messages\030\001 \003(\0132,.google.clou" + + "d.pubsublite.v1.SequencedMessage\"\343\001\n\021Sub" + + "scribeResponse\022G\n\007initial\030\001 \001(\01324.google" + + ".cloud.pubsublite.v1.InitialSubscribeRes" + + "ponseH\000\0228\n\004seek\030\002 \001(\0132(.google.cloud.pub" + + "sublite.v1.SeekResponseH\000\022?\n\010messages\030\003 " + + "\001(\0132+.google.cloud.pubsublite.v1.Message" + + "ResponseH\000B\n\n\010response\"L\n!InitialPartiti" + + "onAssignmentRequest\022\024\n\014subscription\030\001 \001(" + + "\t\022\021\n\tclient_id\030\002 \001(\014\")\n\023PartitionAssignm" + + "ent\022\022\n\npartitions\030\001 \003(\003\"\030\n\026PartitionAssi" + + "gnmentAck\"\274\001\n\032PartitionAssignmentRequest" + + "\022P\n\007initial\030\001 \001(\0132=.google.cloud.pubsubl" + + "ite.v1.InitialPartitionAssignmentRequest" + + "H\000\022A\n\003ack\030\002 \001(\01322.google.cloud.pubsublit" + + "e.v1.PartitionAssignmentAckH\000B\t\n\007request" + + "2\322\001\n\021SubscriberService\022n\n\tSubscribe\022,.go" + + "ogle.cloud.pubsublite.v1.SubscribeReques" + + "t\032-.google.cloud.pubsublite.v1.Subscribe" + + "Response\"\000(\0010\001\032M\312A\031pubsublite.googleapis" + + ".com\322A.https://www.googleapis.com/auth/c" + + "loud-platform2\357\001\n\032PartitionAssignmentSer" + + "vice\022\201\001\n\020AssignPartitions\0226.google.cloud" + + ".pubsublite.v1.PartitionAssignmentReques" + + "t\032/.google.cloud.pubsublite.v1.Partition" + + "Assignment\"\000(\0010\001\032M\312A\031pubsublite.googleap" + + "is.com\322A.https://www.googleapis.com/auth" + + "/cloud-platformB\323\001\n!com.google.cloud.pub" + + "sublite.protoB\017SubscriberProtoP\001Z>cloud." + + "google.com/go/pubsublite/apiv1/pubsublit" + + "epb;pubsublitepb\370\001\001\252\002\032Google.Cloud.PubSu" + + "bLite.V1\312\002\032Google\\Cloud\\PubSubLite\\V1\352\002\035" + + "Google::Cloud::PubSubLite::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(), + }); + internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor, + new java.lang.String[] { "Subscription", "Partition", "InitialLocation", }); + internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor, + new java.lang.String[] { "Cursor", }); + internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor, + new java.lang.String[] { "NamedTarget", "Cursor", "Target", }); + internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor, + new java.lang.String[] { "Cursor", }); + internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor, + new java.lang.String[] { "AllowedMessages", "AllowedBytes", }); + internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor, + new java.lang.String[] { "Initial", "Seek", "FlowControl", "Request", }); + internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor, + new java.lang.String[] { "Messages", }); + internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor, + new java.lang.String[] { "Initial", "Seek", "Messages", "Response", }); + internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor, + new java.lang.String[] { "Subscription", "ClientId", }); + internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor, + new java.lang.String[] { "Partitions", }); + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor, + new java.lang.String[] { "Initial", "Ack", "Request", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ClientProto.oauthScopes); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Subscription.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Subscription.java similarity index 68% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Subscription.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Subscription.java index e7c6e9e32..f29d643d5 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Subscription.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Subscription.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/common.proto @@ -20,24 +5,21 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Metadata about a subscription resource.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Subscription} */ -public final class Subscription extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Subscription extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.Subscription) SubscriptionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Subscription.newBuilder() to construct. private Subscription(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Subscription() { name_ = ""; topic_ = ""; @@ -45,120 +27,99 @@ private Subscription() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Subscription(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Subscription_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Subscription.class, - com.google.cloud.pubsublite.proto.Subscription.Builder.class); + com.google.cloud.pubsublite.proto.Subscription.class, com.google.cloud.pubsublite.proto.Subscription.Builder.class); } - public interface DeliveryConfigOrBuilder - extends + public interface DeliveryConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Subscription.DeliveryConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The DeliveryRequirement for this subscription.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; - * - * + * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; * @return The enum numeric value on the wire for deliveryRequirement. */ int getDeliveryRequirementValue(); /** - * - * *
      * The DeliveryRequirement for this subscription.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; - * - * + * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; * @return The deliveryRequirement. */ - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement - getDeliveryRequirement(); + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement getDeliveryRequirement(); } /** - * - * *
    * The settings for a subscription's message delivery.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Subscription.DeliveryConfig} */ - public static final class DeliveryConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class DeliveryConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.Subscription.DeliveryConfig) DeliveryConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeliveryConfig.newBuilder() to construct. private DeliveryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeliveryConfig() { deliveryRequirement_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeliveryConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.class, - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder.class); + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.class, com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder.class); } /** - * - * *
      * When this subscription should send messages to subscribers relative to
      * messages persistence in storage. For details, see [Creating Lite
      * subscriptions](https://cloud.google.com/pubsub/lite/docs/subscriptions#creating_lite_subscriptions).
      * 
* - * Protobuf enum {@code - * google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement} + * Protobuf enum {@code google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement} */ - public enum DeliveryRequirement implements com.google.protobuf.ProtocolMessageEnum { + public enum DeliveryRequirement + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Default value. This value is unused.
        * 
@@ -167,8 +128,6 @@ public enum DeliveryRequirement implements com.google.protobuf.ProtocolMessageEn */ DELIVERY_REQUIREMENT_UNSPECIFIED(0), /** - * - * *
        * The server does not wait for a published message to be successfully
        * written to storage before delivering it to subscribers.
@@ -178,8 +137,6 @@ public enum DeliveryRequirement implements com.google.protobuf.ProtocolMessageEn
        */
       DELIVER_IMMEDIATELY(1),
       /**
-       *
-       *
        * 
        * The server will not deliver a published message to subscribers until
        * the message has been successfully written to storage. This will result
@@ -193,8 +150,6 @@ public enum DeliveryRequirement implements com.google.protobuf.ProtocolMessageEn
       ;
 
       /**
-       *
-       *
        * 
        * Default value. This value is unused.
        * 
@@ -203,8 +158,6 @@ public enum DeliveryRequirement implements com.google.protobuf.ProtocolMessageEn */ public static final int DELIVERY_REQUIREMENT_UNSPECIFIED_VALUE = 0; /** - * - * *
        * The server does not wait for a published message to be successfully
        * written to storage before delivering it to subscribers.
@@ -214,8 +167,6 @@ public enum DeliveryRequirement implements com.google.protobuf.ProtocolMessageEn
        */
       public static final int DELIVER_IMMEDIATELY_VALUE = 1;
       /**
-       *
-       *
        * 
        * The server will not deliver a published message to subscribers until
        * the message has been successfully written to storage. This will result
@@ -226,6 +177,7 @@ public enum DeliveryRequirement implements com.google.protobuf.ProtocolMessageEn
        */
       public static final int DELIVER_AFTER_STORED_VALUE = 2;
 
+
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -250,14 +202,10 @@ public static DeliveryRequirement valueOf(int value) {
        */
       public static DeliveryRequirement forNumber(int value) {
         switch (value) {
-          case 0:
-            return DELIVERY_REQUIREMENT_UNSPECIFIED;
-          case 1:
-            return DELIVER_IMMEDIATELY;
-          case 2:
-            return DELIVER_AFTER_STORED;
-          default:
-            return null;
+          case 0: return DELIVERY_REQUIREMENT_UNSPECIFIED;
+          case 1: return DELIVER_IMMEDIATELY;
+          case 2: return DELIVER_AFTER_STORED;
+          default: return null;
         }
       }
 
@@ -265,31 +213,29 @@ public static DeliveryRequirement forNumber(int value) {
           internalGetValueMap() {
         return internalValueMap;
       }
+      private static final com.google.protobuf.Internal.EnumLiteMap<
+          DeliveryRequirement> internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public DeliveryRequirement findValueByNumber(int number) {
+                return DeliveryRequirement.forNumber(number);
+              }
+            };
 
-      private static final com.google.protobuf.Internal.EnumLiteMap
-          internalValueMap =
-              new com.google.protobuf.Internal.EnumLiteMap() {
-                public DeliveryRequirement findValueByNumber(int number) {
-                  return DeliveryRequirement.forNumber(number);
-                }
-              };
-
-      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+      public final com.google.protobuf.Descriptors.EnumValueDescriptor
+          getValueDescriptor() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalStateException(
               "Can't get the descriptor of an unrecognized enum value.");
         }
         return getDescriptor().getValues().get(ordinal());
       }
-
-      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+      public final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptorForType() {
         return getDescriptor();
       }
-
-      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-        return com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDescriptor()
-            .getEnumTypes()
-            .get(0);
+      public static final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptor() {
+        return com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDescriptor().getEnumTypes().get(0);
       }
 
       private static final DeliveryRequirement[] VALUES = values();
@@ -297,7 +243,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
       public static DeliveryRequirement valueOf(
           com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException(
+            "EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -317,49 +264,30 @@ private DeliveryRequirement(int value) {
     public static final int DELIVERY_REQUIREMENT_FIELD_NUMBER = 3;
     private int deliveryRequirement_ = 0;
     /**
-     *
-     *
      * 
      * The DeliveryRequirement for this subscription.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; - * - * + * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; * @return The enum numeric value on the wire for deliveryRequirement. */ - @java.lang.Override - public int getDeliveryRequirementValue() { + @java.lang.Override public int getDeliveryRequirementValue() { return deliveryRequirement_; } /** - * - * *
      * The DeliveryRequirement for this subscription.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; - * - * + * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; * @return The deliveryRequirement. */ - @java.lang.Override - public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement - getDeliveryRequirement() { - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement result = - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement - .forNumber(deliveryRequirement_); - return result == null - ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement - .UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement getDeliveryRequirement() { + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement result = com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement.forNumber(deliveryRequirement_); + return result == null ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -371,11 +299,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (deliveryRequirement_ - != com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement - .DELIVERY_REQUIREMENT_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (deliveryRequirement_ != com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement.DELIVERY_REQUIREMENT_UNSPECIFIED.getNumber()) { output.writeEnum(3, deliveryRequirement_); } getUnknownFields().writeTo(output); @@ -387,11 +313,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (deliveryRequirement_ - != com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement - .DELIVERY_REQUIREMENT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, deliveryRequirement_); + if (deliveryRequirement_ != com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement.DELIVERY_REQUIREMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, deliveryRequirement_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -401,13 +325,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig other = - (com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig) obj; + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig other = (com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig) obj; if (deliveryRequirement_ != other.deliveryRequirement_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -429,94 +352,89 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -526,41 +444,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The settings for a subscription's message delivery.
      * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Subscription.DeliveryConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.Subscription.DeliveryConfig) com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.class, - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder.class); + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.class, com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -570,14 +486,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig getDefaultInstanceForType() { return com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance(); } @@ -592,17 +507,13 @@ public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig build() { @java.lang.Override public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig buildPartial() { - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig result = - new com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig result = new com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.deliveryRequirement_ = deliveryRequirement_; @@ -613,52 +524,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig) { - return mergeFrom((com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig) other); + return mergeFrom((com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig other) { - if (other - == com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig other) { + if (other == com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance()) return this; if (other.deliveryRequirement_ != 0) { setDeliveryRequirementValue(other.getDeliveryRequirementValue()); } @@ -688,19 +593,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 24: - { - deliveryRequirement_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 24: { + deliveryRequirement_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -710,38 +613,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int deliveryRequirement_ = 0; /** - * - * *
        * The DeliveryRequirement for this subscription.
        * 
* - * - * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; - * - * + * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; * @return The enum numeric value on the wire for deliveryRequirement. */ - @java.lang.Override - public int getDeliveryRequirementValue() { + @java.lang.Override public int getDeliveryRequirementValue() { return deliveryRequirement_; } /** - * - * *
        * The DeliveryRequirement for this subscription.
        * 
* - * - * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; - * - * + * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; * @param value The enum numeric value on the wire for deliveryRequirement to set. * @return This builder for chaining. */ @@ -752,45 +643,28 @@ public Builder setDeliveryRequirementValue(int value) { return this; } /** - * - * *
        * The DeliveryRequirement for this subscription.
        * 
* - * - * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; - * - * + * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; * @return The deliveryRequirement. */ @java.lang.Override - public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement - getDeliveryRequirement() { - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement result = - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement - .forNumber(deliveryRequirement_); - return result == null - ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement - .UNRECOGNIZED - : result; + public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement getDeliveryRequirement() { + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement result = com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement.forNumber(deliveryRequirement_); + return result == null ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement.UNRECOGNIZED : result; } /** - * - * *
        * The DeliveryRequirement for this subscription.
        * 
* - * - * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; - * - * + * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; * @param value The deliveryRequirement to set. * @return This builder for chaining. */ - public Builder setDeliveryRequirement( - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement value) { + public Builder setDeliveryRequirement(com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.DeliveryRequirement value) { if (value == null) { throw new NullPointerException(); } @@ -800,16 +674,11 @@ public Builder setDeliveryRequirement( return this; } /** - * - * *
        * The DeliveryRequirement for this subscription.
        * 
* - * - * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; - * - * + * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3; * @return This builder for chaining. */ public Builder clearDeliveryRequirement() { @@ -818,7 +687,6 @@ public Builder clearDeliveryRequirement() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -831,44 +699,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Subscription.DeliveryConfig) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Subscription.DeliveryConfig) - private static final com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig(); } - public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig - getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeliveryConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeliveryConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -880,20 +745,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The name of the subscription.
    * Structured like:
@@ -901,7 +763,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -910,15 +771,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The name of the subscription.
    * Structured like:
@@ -926,15 +786,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -943,12 +804,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int TOPIC_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; /** - * - * *
    * The name of the topic this subscription is attached to.
    * Structured like:
@@ -956,7 +814,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } - * * @return The topic. */ @java.lang.Override @@ -965,15 +822,14 @@ public java.lang.String getTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; } } /** - * - * *
    * The name of the topic this subscription is attached to.
    * Structured like:
@@ -981,15 +837,16 @@ public java.lang.String getTopic() {
    * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } - * * @return The bytes for topic. */ @java.lang.Override - public com.google.protobuf.ByteString getTopicBytes() { + public com.google.protobuf.ByteString + getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); topic_ = b; return b; } else { @@ -1000,14 +857,11 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int DELIVERY_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig deliveryConfig_; /** - * - * *
    * The settings for this subscription's message delivery.
    * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; - * * @return Whether the deliveryConfig field is set. */ @java.lang.Override @@ -1015,25 +869,18 @@ public boolean hasDeliveryConfig() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The settings for this subscription's message delivery.
    * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; - * * @return The deliveryConfig. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig getDeliveryConfig() { - return deliveryConfig_ == null - ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance() - : deliveryConfig_; + return deliveryConfig_ == null ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance() : deliveryConfig_; } /** - * - * *
    * The settings for this subscription's message delivery.
    * 
@@ -1041,25 +888,19 @@ public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig getDelivery * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder - getDeliveryConfigOrBuilder() { - return deliveryConfig_ == null - ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance() - : deliveryConfig_; + public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder getDeliveryConfigOrBuilder() { + return deliveryConfig_ == null ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance() : deliveryConfig_; } public static final int EXPORT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.pubsublite.proto.ExportConfig exportConfig_; /** - * - * *
    * If present, messages are automatically written from the Pub/Sub Lite topic
    * associated with this subscription to a destination.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig export_config = 4; - * * @return Whether the exportConfig field is set. */ @java.lang.Override @@ -1067,26 +908,19 @@ public boolean hasExportConfig() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * If present, messages are automatically written from the Pub/Sub Lite topic
    * associated with this subscription to a destination.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig export_config = 4; - * * @return The exportConfig. */ @java.lang.Override public com.google.cloud.pubsublite.proto.ExportConfig getExportConfig() { - return exportConfig_ == null - ? com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance() - : exportConfig_; + return exportConfig_ == null ? com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance() : exportConfig_; } /** - * - * *
    * If present, messages are automatically written from the Pub/Sub Lite topic
    * associated with this subscription to a destination.
@@ -1096,13 +930,10 @@ public com.google.cloud.pubsublite.proto.ExportConfig getExportConfig() {
    */
   @java.lang.Override
   public com.google.cloud.pubsublite.proto.ExportConfigOrBuilder getExportConfigOrBuilder() {
-    return exportConfig_ == null
-        ? com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance()
-        : exportConfig_;
+    return exportConfig_ == null ? com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance() : exportConfig_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1114,7 +945,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -1143,10 +975,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_);
     }
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDeliveryConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getDeliveryConfig());
     }
     if (((bitField0_ & 0x00000002) != 0)) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getExportConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getExportConfig());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1156,23 +990,26 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.pubsublite.proto.Subscription)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.Subscription other =
-        (com.google.cloud.pubsublite.proto.Subscription) obj;
+    com.google.cloud.pubsublite.proto.Subscription other = (com.google.cloud.pubsublite.proto.Subscription) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (!getTopic().equals(other.getTopic())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!getTopic()
+        .equals(other.getTopic())) return false;
     if (hasDeliveryConfig() != other.hasDeliveryConfig()) return false;
     if (hasDeliveryConfig()) {
-      if (!getDeliveryConfig().equals(other.getDeliveryConfig())) return false;
+      if (!getDeliveryConfig()
+          .equals(other.getDeliveryConfig())) return false;
     }
     if (hasExportConfig() != other.hasExportConfig()) return false;
     if (hasExportConfig()) {
-      if (!getExportConfig().equals(other.getExportConfig())) return false;
+      if (!getExportConfig()
+          .equals(other.getExportConfig())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -1202,127 +1039,120 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.pubsublite.proto.Subscription parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.pubsublite.proto.Subscription parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.Subscription parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.Subscription parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.Subscription parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.Subscription parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.Subscription parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.Subscription parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.Subscription parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.pubsublite.proto.Subscription parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.Subscription parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.pubsublite.proto.Subscription parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.Subscription parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.Subscription parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.pubsublite.proto.Subscription prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Metadata about a subscription resource.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Subscription} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.Subscription) com.google.cloud.pubsublite.proto.SubscriptionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Subscription_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Subscription.class, - com.google.cloud.pubsublite.proto.Subscription.Builder.class); + com.google.cloud.pubsublite.proto.Subscription.class, com.google.cloud.pubsublite.proto.Subscription.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.Subscription.newBuilder() @@ -1330,18 +1160,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getDeliveryConfigFieldBuilder(); getExportConfigFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1362,9 +1192,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Subscription_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Subscription_descriptor; } @java.lang.Override @@ -1383,11 +1213,8 @@ public com.google.cloud.pubsublite.proto.Subscription build() { @java.lang.Override public com.google.cloud.pubsublite.proto.Subscription buildPartial() { - com.google.cloud.pubsublite.proto.Subscription result = - new com.google.cloud.pubsublite.proto.Subscription(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.Subscription result = new com.google.cloud.pubsublite.proto.Subscription(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1402,13 +1229,15 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Subscription result } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.deliveryConfig_ = - deliveryConfigBuilder_ == null ? deliveryConfig_ : deliveryConfigBuilder_.build(); + result.deliveryConfig_ = deliveryConfigBuilder_ == null + ? deliveryConfig_ + : deliveryConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.exportConfig_ = - exportConfigBuilder_ == null ? exportConfig_ : exportConfigBuilder_.build(); + result.exportConfig_ = exportConfigBuilder_ == null + ? exportConfig_ + : exportConfigBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -1418,39 +1247,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Subscription result public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.Subscription) { - return mergeFrom((com.google.cloud.pubsublite.proto.Subscription) other); + return mergeFrom((com.google.cloud.pubsublite.proto.Subscription)other); } else { super.mergeFrom(other); return this; @@ -1501,37 +1329,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - topic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getDeliveryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getExportConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getDeliveryConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getExportConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1541,13 +1368,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The name of the subscription.
      * Structured like:
@@ -1555,13 +1379,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1570,8 +1394,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the subscription.
      * Structured like:
@@ -1579,14 +1401,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1594,8 +1417,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the subscription.
      * Structured like:
@@ -1603,22 +1424,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The name of the subscription.
      * Structured like:
@@ -1626,7 +1443,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1636,8 +1452,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The name of the subscription.
      * Structured like:
@@ -1645,14 +1459,12 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1662,8 +1474,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object topic_ = ""; /** - * - * *
      * The name of the topic this subscription is attached to.
      * Structured like:
@@ -1671,13 +1481,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } - * * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; @@ -1686,8 +1496,6 @@ public java.lang.String getTopic() { } } /** - * - * *
      * The name of the topic this subscription is attached to.
      * Structured like:
@@ -1695,14 +1503,15 @@ public java.lang.String getTopic() {
      * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } - * * @return The bytes for topic. */ - public com.google.protobuf.ByteString getTopicBytes() { + public com.google.protobuf.ByteString + getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); topic_ = b; return b; } else { @@ -1710,8 +1519,6 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
      * The name of the topic this subscription is attached to.
      * Structured like:
@@ -1719,22 +1526,18 @@ public com.google.protobuf.ByteString getTopicBytes() {
      * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } - * * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopic( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } topic_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The name of the topic this subscription is attached to.
      * Structured like:
@@ -1742,7 +1545,6 @@ public Builder setTopic(java.lang.String value) {
      * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearTopic() { @@ -1752,8 +1554,6 @@ public Builder clearTopic() { return this; } /** - * - * *
      * The name of the topic this subscription is attached to.
      * Structured like:
@@ -1761,14 +1561,12 @@ public Builder clearTopic() {
      * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000002; @@ -1778,55 +1576,41 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { private com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig deliveryConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig, - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder, - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder> - deliveryConfigBuilder_; + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig, com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder, com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder> deliveryConfigBuilder_; /** - * - * *
      * The settings for this subscription's message delivery.
      * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; - * * @return Whether the deliveryConfig field is set. */ public boolean hasDeliveryConfig() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The settings for this subscription's message delivery.
      * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; - * * @return The deliveryConfig. */ public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig getDeliveryConfig() { if (deliveryConfigBuilder_ == null) { - return deliveryConfig_ == null - ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance() - : deliveryConfig_; + return deliveryConfig_ == null ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance() : deliveryConfig_; } else { return deliveryConfigBuilder_.getMessage(); } } /** - * - * *
      * The settings for this subscription's message delivery.
      * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; */ - public Builder setDeliveryConfig( - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig value) { + public Builder setDeliveryConfig(com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig value) { if (deliveryConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1840,8 +1624,6 @@ public Builder setDeliveryConfig( return this; } /** - * - * *
      * The settings for this subscription's message delivery.
      * 
@@ -1860,22 +1642,17 @@ public Builder setDeliveryConfig( return this; } /** - * - * *
      * The settings for this subscription's message delivery.
      * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; */ - public Builder mergeDeliveryConfig( - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig value) { + public Builder mergeDeliveryConfig(com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig value) { if (deliveryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && deliveryConfig_ != null - && deliveryConfig_ - != com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig - .getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + deliveryConfig_ != null && + deliveryConfig_ != com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance()) { getDeliveryConfigBuilder().mergeFrom(value); } else { deliveryConfig_ = value; @@ -1890,8 +1667,6 @@ public Builder mergeDeliveryConfig( return this; } /** - * - * *
      * The settings for this subscription's message delivery.
      * 
@@ -1909,42 +1684,33 @@ public Builder clearDeliveryConfig() { return this; } /** - * - * *
      * The settings for this subscription's message delivery.
      * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; */ - public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder - getDeliveryConfigBuilder() { + public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder getDeliveryConfigBuilder() { bitField0_ |= 0x00000004; onChanged(); return getDeliveryConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The settings for this subscription's message delivery.
      * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; */ - public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder - getDeliveryConfigOrBuilder() { + public com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder getDeliveryConfigOrBuilder() { if (deliveryConfigBuilder_ != null) { return deliveryConfigBuilder_.getMessageOrBuilder(); } else { - return deliveryConfig_ == null - ? com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance() - : deliveryConfig_; + return deliveryConfig_ == null ? + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.getDefaultInstance() : deliveryConfig_; } } /** - * - * *
      * The settings for this subscription's message delivery.
      * 
@@ -1952,17 +1718,14 @@ public Builder clearDeliveryConfig() { * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig, - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder, - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder> + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig, com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder, com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder> getDeliveryConfigFieldBuilder() { if (deliveryConfigBuilder_ == null) { - deliveryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig, - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder, - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder>( - getDeliveryConfig(), getParentForChildren(), isClean()); + deliveryConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig, com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig.Builder, com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder>( + getDeliveryConfig(), + getParentForChildren(), + isClean()); deliveryConfig_ = null; } return deliveryConfigBuilder_; @@ -1970,49 +1733,36 @@ public Builder clearDeliveryConfig() { private com.google.cloud.pubsublite.proto.ExportConfig exportConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.ExportConfig, - com.google.cloud.pubsublite.proto.ExportConfig.Builder, - com.google.cloud.pubsublite.proto.ExportConfigOrBuilder> - exportConfigBuilder_; + com.google.cloud.pubsublite.proto.ExportConfig, com.google.cloud.pubsublite.proto.ExportConfig.Builder, com.google.cloud.pubsublite.proto.ExportConfigOrBuilder> exportConfigBuilder_; /** - * - * *
      * If present, messages are automatically written from the Pub/Sub Lite topic
      * associated with this subscription to a destination.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig export_config = 4; - * * @return Whether the exportConfig field is set. */ public boolean hasExportConfig() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * If present, messages are automatically written from the Pub/Sub Lite topic
      * associated with this subscription to a destination.
      * 
* * .google.cloud.pubsublite.v1.ExportConfig export_config = 4; - * * @return The exportConfig. */ public com.google.cloud.pubsublite.proto.ExportConfig getExportConfig() { if (exportConfigBuilder_ == null) { - return exportConfig_ == null - ? com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance() - : exportConfig_; + return exportConfig_ == null ? com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance() : exportConfig_; } else { return exportConfigBuilder_.getMessage(); } } /** - * - * *
      * If present, messages are automatically written from the Pub/Sub Lite topic
      * associated with this subscription to a destination.
@@ -2034,8 +1784,6 @@ public Builder setExportConfig(com.google.cloud.pubsublite.proto.ExportConfig va
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, messages are automatically written from the Pub/Sub Lite topic
      * associated with this subscription to a destination.
@@ -2055,8 +1803,6 @@ public Builder setExportConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, messages are automatically written from the Pub/Sub Lite topic
      * associated with this subscription to a destination.
@@ -2066,10 +1812,9 @@ public Builder setExportConfig(
      */
     public Builder mergeExportConfig(com.google.cloud.pubsublite.proto.ExportConfig value) {
       if (exportConfigBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && exportConfig_ != null
-            && exportConfig_
-                != com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          exportConfig_ != null &&
+          exportConfig_ != com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance()) {
           getExportConfigBuilder().mergeFrom(value);
         } else {
           exportConfig_ = value;
@@ -2084,8 +1829,6 @@ public Builder mergeExportConfig(com.google.cloud.pubsublite.proto.ExportConfig
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, messages are automatically written from the Pub/Sub Lite topic
      * associated with this subscription to a destination.
@@ -2104,8 +1847,6 @@ public Builder clearExportConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, messages are automatically written from the Pub/Sub Lite topic
      * associated with this subscription to a destination.
@@ -2119,8 +1860,6 @@ public com.google.cloud.pubsublite.proto.ExportConfig.Builder getExportConfigBui
       return getExportConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If present, messages are automatically written from the Pub/Sub Lite topic
      * associated with this subscription to a destination.
@@ -2132,14 +1871,11 @@ public com.google.cloud.pubsublite.proto.ExportConfigOrBuilder getExportConfigOr
       if (exportConfigBuilder_ != null) {
         return exportConfigBuilder_.getMessageOrBuilder();
       } else {
-        return exportConfig_ == null
-            ? com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance()
-            : exportConfig_;
+        return exportConfig_ == null ?
+            com.google.cloud.pubsublite.proto.ExportConfig.getDefaultInstance() : exportConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * If present, messages are automatically written from the Pub/Sub Lite topic
      * associated with this subscription to a destination.
@@ -2148,24 +1884,21 @@ public com.google.cloud.pubsublite.proto.ExportConfigOrBuilder getExportConfigOr
      * .google.cloud.pubsublite.v1.ExportConfig export_config = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.pubsublite.proto.ExportConfig,
-            com.google.cloud.pubsublite.proto.ExportConfig.Builder,
-            com.google.cloud.pubsublite.proto.ExportConfigOrBuilder>
+        com.google.cloud.pubsublite.proto.ExportConfig, com.google.cloud.pubsublite.proto.ExportConfig.Builder, com.google.cloud.pubsublite.proto.ExportConfigOrBuilder> 
         getExportConfigFieldBuilder() {
       if (exportConfigBuilder_ == null) {
-        exportConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.pubsublite.proto.ExportConfig,
-                com.google.cloud.pubsublite.proto.ExportConfig.Builder,
-                com.google.cloud.pubsublite.proto.ExportConfigOrBuilder>(
-                getExportConfig(), getParentForChildren(), isClean());
+        exportConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.pubsublite.proto.ExportConfig, com.google.cloud.pubsublite.proto.ExportConfig.Builder, com.google.cloud.pubsublite.proto.ExportConfigOrBuilder>(
+                getExportConfig(),
+                getParentForChildren(),
+                isClean());
         exportConfig_ = null;
       }
       return exportConfigBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2175,12 +1908,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Subscription)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Subscription)
   private static final com.google.cloud.pubsublite.proto.Subscription DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Subscription();
   }
@@ -2189,27 +1922,27 @@ public static com.google.cloud.pubsublite.proto.Subscription getDefaultInstance(
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Subscription parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Subscription parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2224,4 +1957,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.pubsublite.proto.Subscription getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionName.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionName.java
similarity index 100%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionName.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionName.java
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionOrBuilder.java
similarity index 78%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionOrBuilder.java
index 922892930..0f482d554 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriptionOrBuilder.java
@@ -1,32 +1,14 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/common.proto
 
 // Protobuf Java Version: 3.25.2
 package com.google.cloud.pubsublite.proto;
 
-public interface SubscriptionOrBuilder
-    extends
+public interface SubscriptionOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Subscription)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The name of the subscription.
    * Structured like:
@@ -34,13 +16,10 @@ public interface SubscriptionOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the subscription.
    * Structured like:
@@ -48,14 +27,12 @@ public interface SubscriptionOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The name of the topic this subscription is attached to.
    * Structured like:
@@ -63,13 +40,10 @@ public interface SubscriptionOrBuilder
    * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } - * * @return The topic. */ java.lang.String getTopic(); /** - * - * *
    * The name of the topic this subscription is attached to.
    * Structured like:
@@ -77,76 +51,59 @@ public interface SubscriptionOrBuilder
    * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } - * * @return The bytes for topic. */ - com.google.protobuf.ByteString getTopicBytes(); + com.google.protobuf.ByteString + getTopicBytes(); /** - * - * *
    * The settings for this subscription's message delivery.
    * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; - * * @return Whether the deliveryConfig field is set. */ boolean hasDeliveryConfig(); /** - * - * *
    * The settings for this subscription's message delivery.
    * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; - * * @return The deliveryConfig. */ com.google.cloud.pubsublite.proto.Subscription.DeliveryConfig getDeliveryConfig(); /** - * - * *
    * The settings for this subscription's message delivery.
    * 
* * .google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3; */ - com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder - getDeliveryConfigOrBuilder(); + com.google.cloud.pubsublite.proto.Subscription.DeliveryConfigOrBuilder getDeliveryConfigOrBuilder(); /** - * - * *
    * If present, messages are automatically written from the Pub/Sub Lite topic
    * associated with this subscription to a destination.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig export_config = 4; - * * @return Whether the exportConfig field is set. */ boolean hasExportConfig(); /** - * - * *
    * If present, messages are automatically written from the Pub/Sub Lite topic
    * associated with this subscription to a destination.
    * 
* * .google.cloud.pubsublite.v1.ExportConfig export_config = 4; - * * @return The exportConfig. */ com.google.cloud.pubsublite.proto.ExportConfig getExportConfig(); /** - * - * *
    * If present, messages are automatically written from the Pub/Sub Lite topic
    * associated with this subscription to a destination.
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTarget.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTarget.java
similarity index 73%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTarget.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTarget.java
index 84d55a8fe..025c7a737 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTarget.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTarget.java
@@ -1,18 +1,3 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/common.proto
 
@@ -20,8 +5,6 @@
 package com.google.cloud.pubsublite.proto;
 
 /**
- *
- *
  * 
  * A target publish or event time. Can be used for seeking to or retrieving the
  * corresponding cursor.
@@ -29,53 +12,48 @@
  *
  * Protobuf type {@code google.cloud.pubsublite.v1.TimeTarget}
  */
-public final class TimeTarget extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TimeTarget extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.TimeTarget)
     TimeTargetOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TimeTarget.newBuilder() to construct.
   private TimeTarget(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private TimeTarget() {}
+  private TimeTarget() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TimeTarget();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.pubsublite.proto.CommonProto
-        .internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.pubsublite.proto.CommonProto
-        .internal_static_google_cloud_pubsublite_v1_TimeTarget_fieldAccessorTable
+    return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_TimeTarget_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.pubsublite.proto.TimeTarget.class,
-            com.google.cloud.pubsublite.proto.TimeTarget.Builder.class);
+            com.google.cloud.pubsublite.proto.TimeTarget.class, com.google.cloud.pubsublite.proto.TimeTarget.Builder.class);
   }
 
   private int timeCase_ = 0;
-
   @SuppressWarnings("serial")
   private java.lang.Object time_;
-
   public enum TimeCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     PUBLISH_TIME(1),
     EVENT_TIME(2),
     TIME_NOT_SET(0);
     private final int value;
-
     private TimeCase(int value) {
       this.value = value;
     }
@@ -91,30 +69,25 @@ public static TimeCase valueOf(int value) {
 
     public static TimeCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return PUBLISH_TIME;
-        case 2:
-          return EVENT_TIME;
-        case 0:
-          return TIME_NOT_SET;
-        default:
-          return null;
+        case 1: return PUBLISH_TIME;
+        case 2: return EVENT_TIME;
+        case 0: return TIME_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public TimeCase getTimeCase() {
-    return TimeCase.forNumber(timeCase_);
+  public TimeCase
+  getTimeCase() {
+    return TimeCase.forNumber(
+        timeCase_);
   }
 
   public static final int PUBLISH_TIME_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * Request the cursor of the first message with publish time greater than or
    * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -122,7 +95,6 @@ public TimeCase getTimeCase() {
    * 
* * .google.protobuf.Timestamp publish_time = 1; - * * @return Whether the publishTime field is set. */ @java.lang.Override @@ -130,8 +102,6 @@ public boolean hasPublishTime() { return timeCase_ == 1; } /** - * - * *
    * Request the cursor of the first message with publish time greater than or
    * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -139,19 +109,16 @@ public boolean hasPublishTime() {
    * 
* * .google.protobuf.Timestamp publish_time = 1; - * * @return The publishTime. */ @java.lang.Override public com.google.protobuf.Timestamp getPublishTime() { if (timeCase_ == 1) { - return (com.google.protobuf.Timestamp) time_; + return (com.google.protobuf.Timestamp) time_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** - * - * *
    * Request the cursor of the first message with publish time greater than or
    * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -163,15 +130,13 @@ public com.google.protobuf.Timestamp getPublishTime() {
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
     if (timeCase_ == 1) {
-      return (com.google.protobuf.Timestamp) time_;
+       return (com.google.protobuf.Timestamp) time_;
     }
     return com.google.protobuf.Timestamp.getDefaultInstance();
   }
 
   public static final int EVENT_TIME_FIELD_NUMBER = 2;
   /**
-   *
-   *
    * 
    * Request the cursor of the first message with event time greater than or
    * equal to `event_time`. If messages are missing an event time, the publish
@@ -181,7 +146,6 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp event_time = 2; - * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -189,8 +153,6 @@ public boolean hasEventTime() { return timeCase_ == 2; } /** - * - * *
    * Request the cursor of the first message with event time greater than or
    * equal to `event_time`. If messages are missing an event time, the publish
@@ -200,19 +162,16 @@ public boolean hasEventTime() {
    * 
* * .google.protobuf.Timestamp event_time = 2; - * * @return The eventTime. */ @java.lang.Override public com.google.protobuf.Timestamp getEventTime() { if (timeCase_ == 2) { - return (com.google.protobuf.Timestamp) time_; + return (com.google.protobuf.Timestamp) time_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** - * - * *
    * Request the cursor of the first message with event time greater than or
    * equal to `event_time`. If messages are missing an event time, the publish
@@ -226,13 +185,12 @@ public com.google.protobuf.Timestamp getEventTime() {
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
     if (timeCase_ == 2) {
-      return (com.google.protobuf.Timestamp) time_;
+       return (com.google.protobuf.Timestamp) time_;
     }
     return com.google.protobuf.Timestamp.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -244,7 +202,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (timeCase_ == 1) {
       output.writeMessage(1, (com.google.protobuf.Timestamp) time_);
     }
@@ -261,14 +220,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (timeCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1, (com.google.protobuf.Timestamp) time_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.protobuf.Timestamp) time_);
     }
     if (timeCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.protobuf.Timestamp) time_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.protobuf.Timestamp) time_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -278,21 +235,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.pubsublite.proto.TimeTarget)) {
       return super.equals(obj);
     }
-    com.google.cloud.pubsublite.proto.TimeTarget other =
-        (com.google.cloud.pubsublite.proto.TimeTarget) obj;
+    com.google.cloud.pubsublite.proto.TimeTarget other = (com.google.cloud.pubsublite.proto.TimeTarget) obj;
 
     if (!getTimeCase().equals(other.getTimeCase())) return false;
     switch (timeCase_) {
       case 1:
-        if (!getPublishTime().equals(other.getPublishTime())) return false;
+        if (!getPublishTime()
+            .equals(other.getPublishTime())) return false;
         break;
       case 2:
-        if (!getEventTime().equals(other.getEventTime())) return false;
+        if (!getEventTime()
+            .equals(other.getEventTime())) return false;
         break;
       case 0:
       default:
@@ -325,104 +283,99 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.pubsublite.proto.TimeTarget parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.pubsublite.proto.TimeTarget parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.TimeTarget parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.TimeTarget parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.TimeTarget parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.TimeTarget parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.pubsublite.proto.TimeTarget parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.TimeTarget parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.TimeTarget parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.pubsublite.proto.TimeTarget parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.pubsublite.proto.TimeTarget parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.pubsublite.proto.TimeTarget parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.pubsublite.proto.TimeTarget parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.pubsublite.proto.TimeTarget parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.pubsublite.proto.TimeTarget prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * A target publish or event time. Can be used for seeking to or retrieving the
    * corresponding cursor.
@@ -430,32 +383,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.pubsublite.v1.TimeTarget}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.TimeTarget)
       com.google.cloud.pubsublite.proto.TimeTargetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.pubsublite.proto.CommonProto
-          .internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.pubsublite.proto.CommonProto
-          .internal_static_google_cloud_pubsublite_v1_TimeTarget_fieldAccessorTable
+      return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_TimeTarget_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.pubsublite.proto.TimeTarget.class,
-              com.google.cloud.pubsublite.proto.TimeTarget.Builder.class);
+              com.google.cloud.pubsublite.proto.TimeTarget.class, com.google.cloud.pubsublite.proto.TimeTarget.Builder.class);
     }
 
     // Construct using com.google.cloud.pubsublite.proto.TimeTarget.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -472,9 +426,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.pubsublite.proto.CommonProto
-          .internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor;
     }
 
     @java.lang.Override
@@ -493,11 +447,8 @@ public com.google.cloud.pubsublite.proto.TimeTarget build() {
 
     @java.lang.Override
     public com.google.cloud.pubsublite.proto.TimeTarget buildPartial() {
-      com.google.cloud.pubsublite.proto.TimeTarget result =
-          new com.google.cloud.pubsublite.proto.TimeTarget(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.pubsublite.proto.TimeTarget result = new com.google.cloud.pubsublite.proto.TimeTarget(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -510,10 +461,12 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.TimeTarget result)
     private void buildPartialOneofs(com.google.cloud.pubsublite.proto.TimeTarget result) {
       result.timeCase_ = timeCase_;
       result.time_ = this.time_;
-      if (timeCase_ == 1 && publishTimeBuilder_ != null) {
+      if (timeCase_ == 1 &&
+          publishTimeBuilder_ != null) {
         result.time_ = publishTimeBuilder_.build();
       }
-      if (timeCase_ == 2 && eventTimeBuilder_ != null) {
+      if (timeCase_ == 2 &&
+          eventTimeBuilder_ != null) {
         result.time_ = eventTimeBuilder_.build();
       }
     }
@@ -522,39 +475,38 @@ private void buildPartialOneofs(com.google.cloud.pubsublite.proto.TimeTarget res
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.pubsublite.proto.TimeTarget) {
-        return mergeFrom((com.google.cloud.pubsublite.proto.TimeTarget) other);
+        return mergeFrom((com.google.cloud.pubsublite.proto.TimeTarget)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -564,20 +516,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     public Builder mergeFrom(com.google.cloud.pubsublite.proto.TimeTarget other) {
       if (other == com.google.cloud.pubsublite.proto.TimeTarget.getDefaultInstance()) return this;
       switch (other.getTimeCase()) {
-        case PUBLISH_TIME:
-          {
-            mergePublishTime(other.getPublishTime());
-            break;
-          }
-        case EVENT_TIME:
-          {
-            mergeEventTime(other.getEventTime());
-            break;
-          }
-        case TIME_NOT_SET:
-          {
-            break;
-          }
+        case PUBLISH_TIME: {
+          mergePublishTime(other.getPublishTime());
+          break;
+        }
+        case EVENT_TIME: {
+          mergeEventTime(other.getEventTime());
+          break;
+        }
+        case TIME_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -605,25 +554,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getPublishTimeFieldBuilder().getBuilder(), extensionRegistry);
-                timeCase_ = 1;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getEventTimeFieldBuilder().getBuilder(), extensionRegistry);
-                timeCase_ = 2;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getPublishTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              timeCase_ = 1;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getEventTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              timeCase_ = 2;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -633,12 +583,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int timeCase_ = 0;
     private java.lang.Object time_;
-
-    public TimeCase getTimeCase() {
-      return TimeCase.forNumber(timeCase_);
+    public TimeCase
+        getTimeCase() {
+      return TimeCase.forNumber(
+          timeCase_);
     }
 
     public Builder clearTime() {
@@ -651,13 +601,8 @@ public Builder clearTime() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        publishTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> publishTimeBuilder_;
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with publish time greater than or
      * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -665,7 +610,6 @@ public Builder clearTime() {
      * 
* * .google.protobuf.Timestamp publish_time = 1; - * * @return Whether the publishTime field is set. */ @java.lang.Override @@ -673,8 +617,6 @@ public boolean hasPublishTime() { return timeCase_ == 1; } /** - * - * *
      * Request the cursor of the first message with publish time greater than or
      * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -682,7 +624,6 @@ public boolean hasPublishTime() {
      * 
* * .google.protobuf.Timestamp publish_time = 1; - * * @return The publishTime. */ @java.lang.Override @@ -700,8 +641,6 @@ public com.google.protobuf.Timestamp getPublishTime() { } } /** - * - * *
      * Request the cursor of the first message with publish time greater than or
      * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -724,8 +663,6 @@ public Builder setPublishTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with publish time greater than or
      * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -734,7 +671,8 @@ public Builder setPublishTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp publish_time = 1;
      */
-    public Builder setPublishTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setPublishTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (publishTimeBuilder_ == null) {
         time_ = builderForValue.build();
         onChanged();
@@ -745,8 +683,6 @@ public Builder setPublishTime(com.google.protobuf.Timestamp.Builder builderForVa
       return this;
     }
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with publish time greater than or
      * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -757,11 +693,10 @@ public Builder setPublishTime(com.google.protobuf.Timestamp.Builder builderForVa
      */
     public Builder mergePublishTime(com.google.protobuf.Timestamp value) {
       if (publishTimeBuilder_ == null) {
-        if (timeCase_ == 1 && time_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
-          time_ =
-              com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) time_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (timeCase_ == 1 &&
+            time_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          time_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) time_)
+              .mergeFrom(value).buildPartial();
         } else {
           time_ = value;
         }
@@ -777,8 +712,6 @@ public Builder mergePublishTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with publish time greater than or
      * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -804,8 +737,6 @@ public Builder clearPublishTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with publish time greater than or
      * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -818,8 +749,6 @@ public com.google.protobuf.Timestamp.Builder getPublishTimeBuilder() {
       return getPublishTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with publish time greater than or
      * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -840,8 +769,6 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with publish time greater than or
      * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -851,20 +778,17 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
      * .google.protobuf.Timestamp publish_time = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getPublishTimeFieldBuilder() {
       if (publishTimeBuilder_ == null) {
         if (!(timeCase_ == 1)) {
           time_ = com.google.protobuf.Timestamp.getDefaultInstance();
         }
-        publishTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                (com.google.protobuf.Timestamp) time_, getParentForChildren(), isClean());
+        publishTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                (com.google.protobuf.Timestamp) time_,
+                getParentForChildren(),
+                isClean());
         time_ = null;
       }
       timeCase_ = 1;
@@ -873,13 +797,8 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        eventTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> eventTimeBuilder_;
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with event time greater than or
      * equal to `event_time`. If messages are missing an event time, the publish
@@ -889,7 +808,6 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp event_time = 2; - * * @return Whether the eventTime field is set. */ @java.lang.Override @@ -897,8 +815,6 @@ public boolean hasEventTime() { return timeCase_ == 2; } /** - * - * *
      * Request the cursor of the first message with event time greater than or
      * equal to `event_time`. If messages are missing an event time, the publish
@@ -908,7 +824,6 @@ public boolean hasEventTime() {
      * 
* * .google.protobuf.Timestamp event_time = 2; - * * @return The eventTime. */ @java.lang.Override @@ -926,8 +841,6 @@ public com.google.protobuf.Timestamp getEventTime() { } } /** - * - * *
      * Request the cursor of the first message with event time greater than or
      * equal to `event_time`. If messages are missing an event time, the publish
@@ -952,8 +865,6 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with event time greater than or
      * equal to `event_time`. If messages are missing an event time, the publish
@@ -964,7 +875,8 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp event_time = 2;
      */
-    public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEventTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (eventTimeBuilder_ == null) {
         time_ = builderForValue.build();
         onChanged();
@@ -975,8 +887,6 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu
       return this;
     }
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with event time greater than or
      * equal to `event_time`. If messages are missing an event time, the publish
@@ -989,11 +899,10 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu
      */
     public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
       if (eventTimeBuilder_ == null) {
-        if (timeCase_ == 2 && time_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
-          time_ =
-              com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) time_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (timeCase_ == 2 &&
+            time_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          time_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) time_)
+              .mergeFrom(value).buildPartial();
         } else {
           time_ = value;
         }
@@ -1009,8 +918,6 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with event time greater than or
      * equal to `event_time`. If messages are missing an event time, the publish
@@ -1038,8 +945,6 @@ public Builder clearEventTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with event time greater than or
      * equal to `event_time`. If messages are missing an event time, the publish
@@ -1054,8 +959,6 @@ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() {
       return getEventTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with event time greater than or
      * equal to `event_time`. If messages are missing an event time, the publish
@@ -1078,8 +981,6 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * Request the cursor of the first message with event time greater than or
      * equal to `event_time`. If messages are missing an event time, the publish
@@ -1091,29 +992,26 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() {
      * .google.protobuf.Timestamp event_time = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEventTimeFieldBuilder() {
       if (eventTimeBuilder_ == null) {
         if (!(timeCase_ == 2)) {
           time_ = com.google.protobuf.Timestamp.getDefaultInstance();
         }
-        eventTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                (com.google.protobuf.Timestamp) time_, getParentForChildren(), isClean());
+        eventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                (com.google.protobuf.Timestamp) time_,
+                getParentForChildren(),
+                isClean());
         time_ = null;
       }
       timeCase_ = 2;
       onChanged();
       return eventTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1123,12 +1021,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.TimeTarget)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.TimeTarget)
   private static final com.google.cloud.pubsublite.proto.TimeTarget DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.TimeTarget();
   }
@@ -1137,27 +1035,27 @@ public static com.google.cloud.pubsublite.proto.TimeTarget getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public TimeTarget parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public TimeTarget parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1172,4 +1070,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.pubsublite.proto.TimeTarget getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTargetOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTargetOrBuilder.java
similarity index 81%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTargetOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTargetOrBuilder.java
index 5e298c839..4ab0b3cab 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTargetOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TimeTargetOrBuilder.java
@@ -1,32 +1,14 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/common.proto
 
 // Protobuf Java Version: 3.25.2
 package com.google.cloud.pubsublite.proto;
 
-public interface TimeTargetOrBuilder
-    extends
+public interface TimeTargetOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.TimeTarget)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Request the cursor of the first message with publish time greater than or
    * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -34,13 +16,10 @@ public interface TimeTargetOrBuilder
    * 
* * .google.protobuf.Timestamp publish_time = 1; - * * @return Whether the publishTime field is set. */ boolean hasPublishTime(); /** - * - * *
    * Request the cursor of the first message with publish time greater than or
    * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -48,13 +27,10 @@ public interface TimeTargetOrBuilder
    * 
* * .google.protobuf.Timestamp publish_time = 1; - * * @return The publishTime. */ com.google.protobuf.Timestamp getPublishTime(); /** - * - * *
    * Request the cursor of the first message with publish time greater than or
    * equal to `publish_time`. All messages thereafter are guaranteed to have
@@ -66,8 +42,6 @@ public interface TimeTargetOrBuilder
   com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Request the cursor of the first message with event time greater than or
    * equal to `event_time`. If messages are missing an event time, the publish
@@ -77,13 +51,10 @@ public interface TimeTargetOrBuilder
    * 
* * .google.protobuf.Timestamp event_time = 2; - * * @return Whether the eventTime field is set. */ boolean hasEventTime(); /** - * - * *
    * Request the cursor of the first message with event time greater than or
    * equal to `event_time`. If messages are missing an event time, the publish
@@ -93,13 +64,10 @@ public interface TimeTargetOrBuilder
    * 
* * .google.protobuf.Timestamp event_time = 2; - * * @return The eventTime. */ com.google.protobuf.Timestamp getEventTime(); /** - * - * *
    * Request the cursor of the first message with event time greater than or
    * equal to `event_time`. If messages are missing an event time, the publish
diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Topic.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Topic.java
similarity index 72%
rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Topic.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Topic.java
index 4292ee3c2..571110e12 100644
--- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Topic.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/Topic.java
@@ -1,18 +1,3 @@
-/*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/pubsublite/v1/common.proto
 
@@ -20,57 +5,50 @@
 package com.google.cloud.pubsublite.proto;
 
 /**
- *
- *
  * 
  * Metadata about a topic resource.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Topic} */ -public final class Topic extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Topic extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.Topic) TopicOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Topic.newBuilder() to construct. private Topic(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Topic() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Topic(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.class, - com.google.cloud.pubsublite.proto.Topic.Builder.class); + com.google.cloud.pubsublite.proto.Topic.class, com.google.cloud.pubsublite.proto.Topic.Builder.class); } - public interface PartitionConfigOrBuilder - extends + public interface PartitionConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Topic.PartitionConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The number of partitions in the topic. Must be at least 1.
      *
@@ -81,14 +59,11 @@ public interface PartitionConfigOrBuilder
      * 
* * int64 count = 1; - * * @return The count. */ long getCount(); /** - * - * *
      * DEPRECATED: Use capacity instead which can express a superset of
      * configurations.
@@ -101,16 +76,12 @@ public interface PartitionConfigOrBuilder
      * 
* * int32 scale = 2 [deprecated = true]; - * - * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See - * google/cloud/pubsublite/v1/common.proto;l=138 + * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. + * See google/cloud/pubsublite/v1/common.proto;l=138 * @return Whether the scale field is set. */ - @java.lang.Deprecated - boolean hasScale(); + @java.lang.Deprecated boolean hasScale(); /** - * - * *
      * DEPRECATED: Use capacity instead which can express a superset of
      * configurations.
@@ -123,181 +94,154 @@ public interface PartitionConfigOrBuilder
      * 
* * int32 scale = 2 [deprecated = true]; - * - * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See - * google/cloud/pubsublite/v1/common.proto;l=138 + * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. + * See google/cloud/pubsublite/v1/common.proto;l=138 * @return The scale. */ - @java.lang.Deprecated - int getScale(); + @java.lang.Deprecated int getScale(); /** - * - * *
      * The capacity configuration.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; - * * @return Whether the capacity field is set. */ boolean hasCapacity(); /** - * - * *
      * The capacity configuration.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; - * * @return The capacity. */ com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity getCapacity(); /** - * - * *
      * The capacity configuration.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; */ - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder - getCapacityOrBuilder(); + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder getCapacityOrBuilder(); com.google.cloud.pubsublite.proto.Topic.PartitionConfig.DimensionCase getDimensionCase(); } /** - * - * *
    * The settings for a topic's partitions.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Topic.PartitionConfig} */ - public static final class PartitionConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class PartitionConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.Topic.PartitionConfig) PartitionConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PartitionConfig.newBuilder() to construct. private PartitionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private PartitionConfig() {} + private PartitionConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PartitionConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.class, - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder.class); + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.class, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder.class); } - public interface CapacityOrBuilder - extends + public interface CapacityOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Publish throughput capacity per partition in MiB/s.
        * Must be >= 4 and <= 16.
        * 
* * int32 publish_mib_per_sec = 1; - * * @return The publishMibPerSec. */ int getPublishMibPerSec(); /** - * - * *
        * Subscribe throughput capacity per partition in MiB/s.
        * Must be >= 4 and <= 32.
        * 
* * int32 subscribe_mib_per_sec = 2; - * * @return The subscribeMibPerSec. */ int getSubscribeMibPerSec(); } /** - * - * *
      * The throughput capacity configuration for each partition.
      * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity} */ - public static final class Capacity extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Capacity extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity) CapacityOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Capacity.newBuilder() to construct. private Capacity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Capacity() {} + private Capacity() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Capacity(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.class, - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder.class); + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.class, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder.class); } public static final int PUBLISH_MIB_PER_SEC_FIELD_NUMBER = 1; private int publishMibPerSec_ = 0; /** - * - * *
        * Publish throughput capacity per partition in MiB/s.
        * Must be >= 4 and <= 16.
        * 
* * int32 publish_mib_per_sec = 1; - * * @return The publishMibPerSec. */ @java.lang.Override @@ -308,15 +252,12 @@ public int getPublishMibPerSec() { public static final int SUBSCRIBE_MIB_PER_SEC_FIELD_NUMBER = 2; private int subscribeMibPerSec_ = 0; /** - * - * *
        * Subscribe throughput capacity per partition in MiB/s.
        * Must be >= 4 and <= 32.
        * 
* * int32 subscribe_mib_per_sec = 2; - * * @return The subscribeMibPerSec. */ @java.lang.Override @@ -325,7 +266,6 @@ public int getSubscribeMibPerSec() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -337,7 +277,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (publishMibPerSec_ != 0) { output.writeInt32(1, publishMibPerSec_); } @@ -354,10 +295,12 @@ public int getSerializedSize() { size = 0; if (publishMibPerSec_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, publishMibPerSec_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, publishMibPerSec_); } if (subscribeMibPerSec_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, subscribeMibPerSec_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, subscribeMibPerSec_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -367,16 +310,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity other = - (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) obj; + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity other = (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) obj; - if (getPublishMibPerSec() != other.getPublishMibPerSec()) return false; - if (getSubscribeMibPerSec() != other.getSubscribeMibPerSec()) return false; + if (getPublishMibPerSec() + != other.getPublishMibPerSec()) return false; + if (getSubscribeMibPerSec() + != other.getSubscribeMibPerSec()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -398,96 +342,89 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -497,42 +434,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * The throughput capacity configuration for each partition.
        * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity) com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.class, - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder.class); + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.class, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder.class); } - // Construct using - // com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.newBuilder() - private Builder() {} + // Construct using com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -543,16 +477,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor; } @java.lang.Override - public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity - getDefaultInstanceForType() { - return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity - .getDefaultInstance(); + public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity getDefaultInstanceForType() { + return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.getDefaultInstance(); } @java.lang.Override @@ -566,17 +498,13 @@ public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity build() @java.lang.Override public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity buildPartial() { - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity result = - new com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity result = new com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity result) { + private void buildPartial0(com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.publishMibPerSec_ = publishMibPerSec_; @@ -590,53 +518,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) { - return mergeFrom( - (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) other); + return mergeFrom((com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity other) { - if (other - == com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity other) { + if (other == com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.getDefaultInstance()) return this; if (other.getPublishMibPerSec() != 0) { setPublishMibPerSec(other.getPublishMibPerSec()); } @@ -669,25 +590,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - publishMibPerSec_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - subscribeMibPerSec_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + publishMibPerSec_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + subscribeMibPerSec_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -697,20 +615,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int publishMibPerSec_; + private int publishMibPerSec_ ; /** - * - * *
          * Publish throughput capacity per partition in MiB/s.
          * Must be >= 4 and <= 16.
          * 
* * int32 publish_mib_per_sec = 1; - * * @return The publishMibPerSec. */ @java.lang.Override @@ -718,15 +632,12 @@ public int getPublishMibPerSec() { return publishMibPerSec_; } /** - * - * *
          * Publish throughput capacity per partition in MiB/s.
          * Must be >= 4 and <= 16.
          * 
* * int32 publish_mib_per_sec = 1; - * * @param value The publishMibPerSec to set. * @return This builder for chaining. */ @@ -738,15 +649,12 @@ public Builder setPublishMibPerSec(int value) { return this; } /** - * - * *
          * Publish throughput capacity per partition in MiB/s.
          * Must be >= 4 and <= 16.
          * 
* * int32 publish_mib_per_sec = 1; - * * @return This builder for chaining. */ public Builder clearPublishMibPerSec() { @@ -756,17 +664,14 @@ public Builder clearPublishMibPerSec() { return this; } - private int subscribeMibPerSec_; + private int subscribeMibPerSec_ ; /** - * - * *
          * Subscribe throughput capacity per partition in MiB/s.
          * Must be >= 4 and <= 32.
          * 
* * int32 subscribe_mib_per_sec = 2; - * * @return The subscribeMibPerSec. */ @java.lang.Override @@ -774,15 +679,12 @@ public int getSubscribeMibPerSec() { return subscribeMibPerSec_; } /** - * - * *
          * Subscribe throughput capacity per partition in MiB/s.
          * Must be >= 4 and <= 32.
          * 
* * int32 subscribe_mib_per_sec = 2; - * * @param value The subscribeMibPerSec to set. * @return This builder for chaining. */ @@ -794,15 +696,12 @@ public Builder setSubscribeMibPerSec(int value) { return this; } /** - * - * *
          * Subscribe throughput capacity per partition in MiB/s.
          * Must be >= 4 and <= 32.
          * 
* * int32 subscribe_mib_per_sec = 2; - * * @return This builder for chaining. */ public Builder clearSubscribeMibPerSec() { @@ -811,7 +710,6 @@ public Builder clearSubscribeMibPerSec() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -824,44 +722,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity) - private static final com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity - DEFAULT_INSTANCE; - + private static final com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity(); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity - getDefaultInstance() { + public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Capacity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Capacity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -873,27 +768,22 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity - getDefaultInstanceForType() { + public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int dimensionCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object dimension_; - public enum DimensionCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { - @java.lang.Deprecated - SCALE(2), + @java.lang.Deprecated SCALE(2), CAPACITY(3), DIMENSION_NOT_SET(0); private final int value; - private DimensionCase(int value) { this.value = value; } @@ -909,31 +799,26 @@ public static DimensionCase valueOf(int value) { public static DimensionCase forNumber(int value) { switch (value) { - case 2: - return SCALE; - case 3: - return CAPACITY; - case 0: - return DIMENSION_NOT_SET; - default: - return null; + case 2: return SCALE; + case 3: return CAPACITY; + case 0: return DIMENSION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DimensionCase getDimensionCase() { - return DimensionCase.forNumber(dimensionCase_); + public DimensionCase + getDimensionCase() { + return DimensionCase.forNumber( + dimensionCase_); } public static final int COUNT_FIELD_NUMBER = 1; private long count_ = 0L; /** - * - * *
      * The number of partitions in the topic. Must be at least 1.
      *
@@ -944,7 +829,6 @@ public DimensionCase getDimensionCase() {
      * 
* * int64 count = 1; - * * @return The count. */ @java.lang.Override @@ -954,8 +838,6 @@ public long getCount() { public static final int SCALE_FIELD_NUMBER = 2; /** - * - * *
      * DEPRECATED: Use capacity instead which can express a superset of
      * configurations.
@@ -968,19 +850,15 @@ public long getCount() {
      * 
* * int32 scale = 2 [deprecated = true]; - * - * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See - * google/cloud/pubsublite/v1/common.proto;l=138 + * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. + * See google/cloud/pubsublite/v1/common.proto;l=138 * @return Whether the scale field is set. */ @java.lang.Override - @java.lang.Deprecated - public boolean hasScale() { + @java.lang.Deprecated public boolean hasScale() { return dimensionCase_ == 2; } /** - * - * *
      * DEPRECATED: Use capacity instead which can express a superset of
      * configurations.
@@ -993,14 +871,12 @@ public boolean hasScale() {
      * 
* * int32 scale = 2 [deprecated = true]; - * - * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See - * google/cloud/pubsublite/v1/common.proto;l=138 + * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. + * See google/cloud/pubsublite/v1/common.proto;l=138 * @return The scale. */ @java.lang.Override - @java.lang.Deprecated - public int getScale() { + @java.lang.Deprecated public int getScale() { if (dimensionCase_ == 2) { return (java.lang.Integer) dimension_; } @@ -1009,14 +885,11 @@ public int getScale() { public static final int CAPACITY_FIELD_NUMBER = 3; /** - * - * *
      * The capacity configuration.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; - * * @return Whether the capacity field is set. */ @java.lang.Override @@ -1024,26 +897,21 @@ public boolean hasCapacity() { return dimensionCase_ == 3; } /** - * - * *
      * The capacity configuration.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; - * * @return The capacity. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity getCapacity() { if (dimensionCase_ == 3) { - return (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_; + return (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_; } return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.getDefaultInstance(); } /** - * - * *
      * The capacity configuration.
      * 
@@ -1051,16 +919,14 @@ public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity getCapac * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder - getCapacityOrBuilder() { + public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder getCapacityOrBuilder() { if (dimensionCase_ == 3) { - return (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_; + return (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_; } return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1072,16 +938,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (count_ != 0L) { output.writeInt64(1, count_); } if (dimensionCase_ == 2) { - output.writeInt32(2, (int) ((java.lang.Integer) dimension_)); + output.writeInt32( + 2, (int)((java.lang.Integer) dimension_)); } if (dimensionCase_ == 3) { - output.writeMessage( - 3, (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_); + output.writeMessage(3, (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_); } getUnknownFields().writeTo(output); } @@ -1093,17 +960,17 @@ public int getSerializedSize() { size = 0; if (count_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, count_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, count_); } if (dimensionCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size( - 2, (int) ((java.lang.Integer) dimension_)); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size( + 2, (int)((java.lang.Integer) dimension_)); } if (dimensionCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1113,22 +980,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.Topic.PartitionConfig)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.Topic.PartitionConfig other = - (com.google.cloud.pubsublite.proto.Topic.PartitionConfig) obj; + com.google.cloud.pubsublite.proto.Topic.PartitionConfig other = (com.google.cloud.pubsublite.proto.Topic.PartitionConfig) obj; - if (getCount() != other.getCount()) return false; + if (getCount() + != other.getCount()) return false; if (!getDimensionCase().equals(other.getDimensionCase())) return false; switch (dimensionCase_) { case 2: - if (getScale() != other.getScale()) return false; + if (getScale() + != other.getScale()) return false; break; case 3: - if (!getCapacity().equals(other.getCapacity())) return false; + if (!getCapacity() + .equals(other.getCapacity())) return false; break; case 0: default: @@ -1145,7 +1014,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCount()); switch (dimensionCase_) { case 2: hash = (37 * hash) + SCALE_FIELD_NUMBER; @@ -1164,94 +1034,89 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.Topic.PartitionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1261,41 +1126,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The settings for a topic's partitions.
      * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Topic.PartitionConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.Topic.PartitionConfig) com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.class, - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder.class); + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.class, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.Topic.PartitionConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1310,9 +1173,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor; } @java.lang.Override @@ -1331,11 +1194,8 @@ public com.google.cloud.pubsublite.proto.Topic.PartitionConfig build() { @java.lang.Override public com.google.cloud.pubsublite.proto.Topic.PartitionConfig buildPartial() { - com.google.cloud.pubsublite.proto.Topic.PartitionConfig result = - new com.google.cloud.pubsublite.proto.Topic.PartitionConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.Topic.PartitionConfig result = new com.google.cloud.pubsublite.proto.Topic.PartitionConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -1348,11 +1208,11 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Topic.PartitionConf } } - private void buildPartialOneofs( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig result) { + private void buildPartialOneofs(com.google.cloud.pubsublite.proto.Topic.PartitionConfig result) { result.dimensionCase_ = dimensionCase_; result.dimension_ = this.dimension_; - if (dimensionCase_ == 3 && capacityBuilder_ != null) { + if (dimensionCase_ == 3 && + capacityBuilder_ != null) { result.dimension_ = capacityBuilder_.build(); } } @@ -1361,41 +1221,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.Topic.PartitionConfig) { - return mergeFrom((com.google.cloud.pubsublite.proto.Topic.PartitionConfig) other); + return mergeFrom((com.google.cloud.pubsublite.proto.Topic.PartitionConfig)other); } else { super.mergeFrom(other); return this; @@ -1403,26 +1260,22 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.Topic.PartitionConfig other) { - if (other == com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance()) return this; if (other.getCount() != 0L) { setCount(other.getCount()); } switch (other.getDimensionCase()) { - case SCALE: - { - setScale(other.getScale()); - break; - } - case CAPACITY: - { - mergeCapacity(other.getCapacity()); - break; - } - case DIMENSION_NOT_SET: - { - break; - } + case SCALE: { + setScale(other.getScale()); + break; + } + case CAPACITY: { + mergeCapacity(other.getCapacity()); + break; + } + case DIMENSION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1450,31 +1303,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - count_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - dimension_ = input.readInt32(); - dimensionCase_ = 2; - break; - } // case 16 - case 26: - { - input.readMessage(getCapacityFieldBuilder().getBuilder(), extensionRegistry); - dimensionCase_ = 3; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + count_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + dimension_ = input.readInt32(); + dimensionCase_ = 2; + break; + } // case 16 + case 26: { + input.readMessage( + getCapacityFieldBuilder().getBuilder(), + extensionRegistry); + dimensionCase_ = 3; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1484,12 +1335,12 @@ public Builder mergeFrom( } // finally return this; } - private int dimensionCase_ = 0; private java.lang.Object dimension_; - - public DimensionCase getDimensionCase() { - return DimensionCase.forNumber(dimensionCase_); + public DimensionCase + getDimensionCase() { + return DimensionCase.forNumber( + dimensionCase_); } public Builder clearDimension() { @@ -1501,10 +1352,8 @@ public Builder clearDimension() { private int bitField0_; - private long count_; + private long count_ ; /** - * - * *
        * The number of partitions in the topic. Must be at least 1.
        *
@@ -1515,7 +1364,6 @@ public Builder clearDimension() {
        * 
* * int64 count = 1; - * * @return The count. */ @java.lang.Override @@ -1523,8 +1371,6 @@ public long getCount() { return count_; } /** - * - * *
        * The number of partitions in the topic. Must be at least 1.
        *
@@ -1535,7 +1381,6 @@ public long getCount() {
        * 
* * int64 count = 1; - * * @param value The count to set. * @return This builder for chaining. */ @@ -1547,8 +1392,6 @@ public Builder setCount(long value) { return this; } /** - * - * *
        * The number of partitions in the topic. Must be at least 1.
        *
@@ -1559,7 +1402,6 @@ public Builder setCount(long value) {
        * 
* * int64 count = 1; - * * @return This builder for chaining. */ public Builder clearCount() { @@ -1570,8 +1412,6 @@ public Builder clearCount() { } /** - * - * *
        * DEPRECATED: Use capacity instead which can express a superset of
        * configurations.
@@ -1584,18 +1424,14 @@ public Builder clearCount() {
        * 
* * int32 scale = 2 [deprecated = true]; - * - * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See - * google/cloud/pubsublite/v1/common.proto;l=138 + * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. + * See google/cloud/pubsublite/v1/common.proto;l=138 * @return Whether the scale field is set. */ - @java.lang.Deprecated - public boolean hasScale() { + @java.lang.Deprecated public boolean hasScale() { return dimensionCase_ == 2; } /** - * - * *
        * DEPRECATED: Use capacity instead which can express a superset of
        * configurations.
@@ -1608,21 +1444,17 @@ public boolean hasScale() {
        * 
* * int32 scale = 2 [deprecated = true]; - * - * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See - * google/cloud/pubsublite/v1/common.proto;l=138 + * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. + * See google/cloud/pubsublite/v1/common.proto;l=138 * @return The scale. */ - @java.lang.Deprecated - public int getScale() { + @java.lang.Deprecated public int getScale() { if (dimensionCase_ == 2) { return (java.lang.Integer) dimension_; } return 0; } /** - * - * *
        * DEPRECATED: Use capacity instead which can express a superset of
        * configurations.
@@ -1635,14 +1467,12 @@ public int getScale() {
        * 
* * int32 scale = 2 [deprecated = true]; - * - * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See - * google/cloud/pubsublite/v1/common.proto;l=138 + * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. + * See google/cloud/pubsublite/v1/common.proto;l=138 * @param value The scale to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setScale(int value) { + @java.lang.Deprecated public Builder setScale(int value) { dimensionCase_ = 2; dimension_ = value; @@ -1650,8 +1480,6 @@ public Builder setScale(int value) { return this; } /** - * - * *
        * DEPRECATED: Use capacity instead which can express a superset of
        * configurations.
@@ -1664,13 +1492,11 @@ public Builder setScale(int value) {
        * 
* * int32 scale = 2 [deprecated = true]; - * - * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. See - * google/cloud/pubsublite/v1/common.proto;l=138 + * @deprecated google.cloud.pubsublite.v1.Topic.PartitionConfig.scale is deprecated. + * See google/cloud/pubsublite/v1/common.proto;l=138 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearScale() { + @java.lang.Deprecated public Builder clearScale() { if (dimensionCase_ == 2) { dimensionCase_ = 0; dimension_ = null; @@ -1680,19 +1506,13 @@ public Builder clearScale() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity, - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder, - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder> - capacityBuilder_; + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder> capacityBuilder_; /** - * - * *
        * The capacity configuration.
        * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; - * * @return Whether the capacity field is set. */ @java.lang.Override @@ -1700,14 +1520,11 @@ public boolean hasCapacity() { return dimensionCase_ == 3; } /** - * - * *
        * The capacity configuration.
        * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; - * * @return The capacity. */ @java.lang.Override @@ -1716,27 +1533,22 @@ public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity getCapac if (dimensionCase_ == 3) { return (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_; } - return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity - .getDefaultInstance(); + return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.getDefaultInstance(); } else { if (dimensionCase_ == 3) { return capacityBuilder_.getMessage(); } - return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity - .getDefaultInstance(); + return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.getDefaultInstance(); } } /** - * - * *
        * The capacity configuration.
        * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; */ - public Builder setCapacity( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity value) { + public Builder setCapacity(com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity value) { if (capacityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1750,8 +1562,6 @@ public Builder setCapacity( return this; } /** - * - * *
        * The capacity configuration.
        * 
@@ -1759,8 +1569,7 @@ public Builder setCapacity( * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; */ public Builder setCapacity( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder - builderForValue) { + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder builderForValue) { if (capacityBuilder_ == null) { dimension_ = builderForValue.build(); onChanged(); @@ -1771,27 +1580,18 @@ public Builder setCapacity( return this; } /** - * - * *
        * The capacity configuration.
        * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; */ - public Builder mergeCapacity( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity value) { + public Builder mergeCapacity(com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity value) { if (capacityBuilder_ == null) { - if (dimensionCase_ == 3 - && dimension_ - != com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity - .getDefaultInstance()) { - dimension_ = - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.newBuilder( - (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) - dimension_) - .mergeFrom(value) - .buildPartial(); + if (dimensionCase_ == 3 && + dimension_ != com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.getDefaultInstance()) { + dimension_ = com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.newBuilder((com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_) + .mergeFrom(value).buildPartial(); } else { dimension_ = value; } @@ -1807,8 +1607,6 @@ public Builder mergeCapacity( return this; } /** - * - * *
        * The capacity configuration.
        * 
@@ -1832,21 +1630,16 @@ public Builder clearCapacity() { return this; } /** - * - * *
        * The capacity configuration.
        * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; */ - public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder - getCapacityBuilder() { + public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder getCapacityBuilder() { return getCapacityFieldBuilder().getBuilder(); } /** - * - * *
        * The capacity configuration.
        * 
@@ -1854,21 +1647,17 @@ public Builder clearCapacity() { * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder - getCapacityOrBuilder() { + public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder getCapacityOrBuilder() { if ((dimensionCase_ == 3) && (capacityBuilder_ != null)) { return capacityBuilder_.getMessageOrBuilder(); } else { if (dimensionCase_ == 3) { return (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_; } - return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity - .getDefaultInstance(); + return com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.getDefaultInstance(); } } /** - * - * *
        * The capacity configuration.
        * 
@@ -1876,21 +1665,14 @@ public Builder clearCapacity() { * .google.cloud.pubsublite.v1.Topic.PartitionConfig.Capacity capacity = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity, - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder, - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder> + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder> getCapacityFieldBuilder() { if (capacityBuilder_ == null) { if (!(dimensionCase_ == 3)) { - dimension_ = - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity - .getDefaultInstance(); + dimension_ = com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.getDefaultInstance(); } - capacityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity, - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder, - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder>( + capacityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity.Builder, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.CapacityOrBuilder>( (com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Capacity) dimension_, getParentForChildren(), isClean()); @@ -1900,7 +1682,6 @@ public Builder clearCapacity() { onChanged(); return capacityBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1913,12 +1694,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Topic.PartitionConfig) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Topic.PartitionConfig) private static final com.google.cloud.pubsublite.proto.Topic.PartitionConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Topic.PartitionConfig(); } @@ -1927,28 +1708,27 @@ public static com.google.cloud.pubsublite.proto.Topic.PartitionConfig getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PartitionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PartitionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1963,16 +1743,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.Topic.PartitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface RetentionConfigOrBuilder - extends + public interface RetentionConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Topic.RetentionConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The provisioned storage, in bytes, per partition. If the number of bytes
      * stored in any of the topic's partitions grows beyond this value, older
@@ -1981,14 +1759,11 @@ public interface RetentionConfigOrBuilder
      * 
* * int64 per_partition_bytes = 1; - * * @return The perPartitionBytes. */ long getPerPartitionBytes(); /** - * - * *
      * How long a published message is retained. If unset, messages will be
      * retained as long as the bytes retained for each partition is below
@@ -1996,13 +1771,10 @@ public interface RetentionConfigOrBuilder
      * 
* * .google.protobuf.Duration period = 2; - * * @return Whether the period field is set. */ boolean hasPeriod(); /** - * - * *
      * How long a published message is retained. If unset, messages will be
      * retained as long as the bytes retained for each partition is below
@@ -2010,13 +1782,10 @@ public interface RetentionConfigOrBuilder
      * 
* * .google.protobuf.Duration period = 2; - * * @return The period. */ com.google.protobuf.Duration getPeriod(); /** - * - * *
      * How long a published message is retained. If unset, messages will be
      * retained as long as the bytes retained for each partition is below
@@ -2028,53 +1797,48 @@ public interface RetentionConfigOrBuilder
     com.google.protobuf.DurationOrBuilder getPeriodOrBuilder();
   }
   /**
-   *
-   *
    * 
    * The settings for a topic's message retention.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Topic.RetentionConfig} */ - public static final class RetentionConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class RetentionConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.Topic.RetentionConfig) RetentionConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RetentionConfig.newBuilder() to construct. private RetentionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private RetentionConfig() {} + private RetentionConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RetentionConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.RetentionConfig.class, - com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder.class); + com.google.cloud.pubsublite.proto.Topic.RetentionConfig.class, com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder.class); } private int bitField0_; public static final int PER_PARTITION_BYTES_FIELD_NUMBER = 1; private long perPartitionBytes_ = 0L; /** - * - * *
      * The provisioned storage, in bytes, per partition. If the number of bytes
      * stored in any of the topic's partitions grows beyond this value, older
@@ -2083,7 +1847,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * int64 per_partition_bytes = 1; - * * @return The perPartitionBytes. */ @java.lang.Override @@ -2094,8 +1857,6 @@ public long getPerPartitionBytes() { public static final int PERIOD_FIELD_NUMBER = 2; private com.google.protobuf.Duration period_; /** - * - * *
      * How long a published message is retained. If unset, messages will be
      * retained as long as the bytes retained for each partition is below
@@ -2103,7 +1864,6 @@ public long getPerPartitionBytes() {
      * 
* * .google.protobuf.Duration period = 2; - * * @return Whether the period field is set. */ @java.lang.Override @@ -2111,8 +1871,6 @@ public boolean hasPeriod() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * How long a published message is retained. If unset, messages will be
      * retained as long as the bytes retained for each partition is below
@@ -2120,7 +1878,6 @@ public boolean hasPeriod() {
      * 
* * .google.protobuf.Duration period = 2; - * * @return The period. */ @java.lang.Override @@ -2128,8 +1885,6 @@ public com.google.protobuf.Duration getPeriod() { return period_ == null ? com.google.protobuf.Duration.getDefaultInstance() : period_; } /** - * - * *
      * How long a published message is retained. If unset, messages will be
      * retained as long as the bytes retained for each partition is below
@@ -2144,7 +1899,6 @@ public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -2156,7 +1910,8 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
       if (perPartitionBytes_ != 0L) {
         output.writeInt64(1, perPartitionBytes_);
       }
@@ -2173,10 +1928,12 @@ public int getSerializedSize() {
 
       size = 0;
       if (perPartitionBytes_ != 0L) {
-        size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, perPartitionBytes_);
+        size += com.google.protobuf.CodedOutputStream
+          .computeInt64Size(1, perPartitionBytes_);
       }
       if (((bitField0_ & 0x00000001) != 0)) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPeriod());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(2, getPeriod());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -2186,18 +1943,19 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-        return true;
+       return true;
       }
       if (!(obj instanceof com.google.cloud.pubsublite.proto.Topic.RetentionConfig)) {
         return super.equals(obj);
       }
-      com.google.cloud.pubsublite.proto.Topic.RetentionConfig other =
-          (com.google.cloud.pubsublite.proto.Topic.RetentionConfig) obj;
+      com.google.cloud.pubsublite.proto.Topic.RetentionConfig other = (com.google.cloud.pubsublite.proto.Topic.RetentionConfig) obj;
 
-      if (getPerPartitionBytes() != other.getPerPartitionBytes()) return false;
+      if (getPerPartitionBytes()
+          != other.getPerPartitionBytes()) return false;
       if (hasPeriod() != other.hasPeriod()) return false;
       if (hasPeriod()) {
-        if (!getPeriod().equals(other.getPeriod())) return false;
+        if (!getPeriod()
+            .equals(other.getPeriod())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -2211,7 +1969,8 @@ public int hashCode() {
       int hash = 41;
       hash = (19 * hash) + getDescriptor().hashCode();
       hash = (37 * hash) + PER_PARTITION_BYTES_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPerPartitionBytes());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+          getPerPartitionBytes());
       if (hasPeriod()) {
         hash = (37 * hash) + PERIOD_FIELD_NUMBER;
         hash = (53 * hash) + getPeriod().hashCode();
@@ -2222,94 +1981,89 @@ public int hashCode() {
     }
 
     public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig parseFrom(
-        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig parseFrom(
-        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
     public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
     public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig parseFrom(
-        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig parseFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig parseFrom(
-        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
-    public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig parseDelimitedFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
 
     public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig parseDelimitedFrom(
-        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
     }
-
     public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig parseFrom(
-        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() {
-      return newBuilder();
-    }
-
+    public Builder newBuilderForType() { return newBuilder(); }
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-
-    public static Builder newBuilder(
-        com.google.cloud.pubsublite.proto.Topic.RetentionConfig prototype) {
+    public static Builder newBuilder(com.google.cloud.pubsublite.proto.Topic.RetentionConfig prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
-
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE
+          ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -2319,32 +2073,27 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * The settings for a topic's message retention.
      * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Topic.RetentionConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.Topic.RetentionConfig) com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.RetentionConfig.class, - com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder.class); + com.google.cloud.pubsublite.proto.Topic.RetentionConfig.class, com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.Topic.RetentionConfig.newBuilder() @@ -2352,17 +2101,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getPeriodFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2377,9 +2126,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor; } @java.lang.Override @@ -2398,11 +2147,8 @@ public com.google.cloud.pubsublite.proto.Topic.RetentionConfig build() { @java.lang.Override public com.google.cloud.pubsublite.proto.Topic.RetentionConfig buildPartial() { - com.google.cloud.pubsublite.proto.Topic.RetentionConfig result = - new com.google.cloud.pubsublite.proto.Topic.RetentionConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.Topic.RetentionConfig result = new com.google.cloud.pubsublite.proto.Topic.RetentionConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -2414,7 +2160,9 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Topic.RetentionConf } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.period_ = periodBuilder_ == null ? period_ : periodBuilder_.build(); + result.period_ = periodBuilder_ == null + ? period_ + : periodBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -2424,41 +2172,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Topic.RetentionConf public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.Topic.RetentionConfig) { - return mergeFrom((com.google.cloud.pubsublite.proto.Topic.RetentionConfig) other); + return mergeFrom((com.google.cloud.pubsublite.proto.Topic.RetentionConfig)other); } else { super.mergeFrom(other); return this; @@ -2466,8 +2211,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.Topic.RetentionConfig other) { - if (other == com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance()) return this; if (other.getPerPartitionBytes() != 0L) { setPerPartitionBytes(other.getPerPartitionBytes()); } @@ -2500,25 +2244,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - perPartitionBytes_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage(getPeriodFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + perPartitionBytes_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getPeriodFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2528,13 +2271,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long perPartitionBytes_; + private long perPartitionBytes_ ; /** - * - * *
        * The provisioned storage, in bytes, per partition. If the number of bytes
        * stored in any of the topic's partitions grows beyond this value, older
@@ -2543,7 +2283,6 @@ public Builder mergeFrom(
        * 
* * int64 per_partition_bytes = 1; - * * @return The perPartitionBytes. */ @java.lang.Override @@ -2551,8 +2290,6 @@ public long getPerPartitionBytes() { return perPartitionBytes_; } /** - * - * *
        * The provisioned storage, in bytes, per partition. If the number of bytes
        * stored in any of the topic's partitions grows beyond this value, older
@@ -2561,7 +2298,6 @@ public long getPerPartitionBytes() {
        * 
* * int64 per_partition_bytes = 1; - * * @param value The perPartitionBytes to set. * @return This builder for chaining. */ @@ -2573,8 +2309,6 @@ public Builder setPerPartitionBytes(long value) { return this; } /** - * - * *
        * The provisioned storage, in bytes, per partition. If the number of bytes
        * stored in any of the topic's partitions grows beyond this value, older
@@ -2583,7 +2317,6 @@ public Builder setPerPartitionBytes(long value) {
        * 
* * int64 per_partition_bytes = 1; - * * @return This builder for chaining. */ public Builder clearPerPartitionBytes() { @@ -2595,13 +2328,8 @@ public Builder clearPerPartitionBytes() { private com.google.protobuf.Duration period_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - periodBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> periodBuilder_; /** - * - * *
        * How long a published message is retained. If unset, messages will be
        * retained as long as the bytes retained for each partition is below
@@ -2609,15 +2337,12 @@ public Builder clearPerPartitionBytes() {
        * 
* * .google.protobuf.Duration period = 2; - * * @return Whether the period field is set. */ public boolean hasPeriod() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * How long a published message is retained. If unset, messages will be
        * retained as long as the bytes retained for each partition is below
@@ -2625,7 +2350,6 @@ public boolean hasPeriod() {
        * 
* * .google.protobuf.Duration period = 2; - * * @return The period. */ public com.google.protobuf.Duration getPeriod() { @@ -2636,8 +2360,6 @@ public com.google.protobuf.Duration getPeriod() { } } /** - * - * *
        * How long a published message is retained. If unset, messages will be
        * retained as long as the bytes retained for each partition is below
@@ -2660,8 +2382,6 @@ public Builder setPeriod(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * How long a published message is retained. If unset, messages will be
        * retained as long as the bytes retained for each partition is below
@@ -2670,7 +2390,8 @@ public Builder setPeriod(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration period = 2;
        */
-      public Builder setPeriod(com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setPeriod(
+          com.google.protobuf.Duration.Builder builderForValue) {
         if (periodBuilder_ == null) {
           period_ = builderForValue.build();
         } else {
@@ -2681,8 +2402,6 @@ public Builder setPeriod(com.google.protobuf.Duration.Builder builderForValue) {
         return this;
       }
       /**
-       *
-       *
        * 
        * How long a published message is retained. If unset, messages will be
        * retained as long as the bytes retained for each partition is below
@@ -2693,9 +2412,9 @@ public Builder setPeriod(com.google.protobuf.Duration.Builder builderForValue) {
        */
       public Builder mergePeriod(com.google.protobuf.Duration value) {
         if (periodBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0)
-              && period_ != null
-              && period_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0) &&
+            period_ != null &&
+            period_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getPeriodBuilder().mergeFrom(value);
           } else {
             period_ = value;
@@ -2710,8 +2429,6 @@ public Builder mergePeriod(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * How long a published message is retained. If unset, messages will be
        * retained as long as the bytes retained for each partition is below
@@ -2731,8 +2448,6 @@ public Builder clearPeriod() {
         return this;
       }
       /**
-       *
-       *
        * 
        * How long a published message is retained. If unset, messages will be
        * retained as long as the bytes retained for each partition is below
@@ -2747,8 +2462,6 @@ public com.google.protobuf.Duration.Builder getPeriodBuilder() {
         return getPeriodFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * How long a published message is retained. If unset, messages will be
        * retained as long as the bytes retained for each partition is below
@@ -2761,12 +2474,11 @@ public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() {
         if (periodBuilder_ != null) {
           return periodBuilder_.getMessageOrBuilder();
         } else {
-          return period_ == null ? com.google.protobuf.Duration.getDefaultInstance() : period_;
+          return period_ == null ?
+              com.google.protobuf.Duration.getDefaultInstance() : period_;
         }
       }
       /**
-       *
-       *
        * 
        * How long a published message is retained. If unset, messages will be
        * retained as long as the bytes retained for each partition is below
@@ -2776,22 +2488,18 @@ public com.google.protobuf.DurationOrBuilder getPeriodOrBuilder() {
        * .google.protobuf.Duration period = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration,
-              com.google.protobuf.Duration.Builder,
-              com.google.protobuf.DurationOrBuilder>
+          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
           getPeriodFieldBuilder() {
         if (periodBuilder_ == null) {
-          periodBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Duration,
-                  com.google.protobuf.Duration.Builder,
-                  com.google.protobuf.DurationOrBuilder>(
-                  getPeriod(), getParentForChildren(), isClean());
+          periodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                  getPeriod(),
+                  getParentForChildren(),
+                  isClean());
           period_ = null;
         }
         return periodBuilder_;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -2804,12 +2512,12 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Topic.RetentionConfig)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Topic.RetentionConfig)
     private static final com.google.cloud.pubsublite.proto.Topic.RetentionConfig DEFAULT_INSTANCE;
-
     static {
       DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Topic.RetentionConfig();
     }
@@ -2818,28 +2526,27 @@ public static com.google.cloud.pubsublite.proto.Topic.RetentionConfig getDefault
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public RetentionConfig parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            Builder builder = newBuilder();
-            try {
-              builder.mergeFrom(input, extensionRegistry);
-            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-              throw e.setUnfinishedMessage(builder.buildPartial());
-            } catch (com.google.protobuf.UninitializedMessageException e) {
-              throw e.asInvalidProtocolBufferException()
-                  .setUnfinishedMessage(builder.buildPartial());
-            } catch (java.io.IOException e) {
-              throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                  .setUnfinishedMessage(builder.buildPartial());
-            }
-            return builder.buildPartial();
-          }
-        };
+    private static final com.google.protobuf.Parser
+        PARSER = new com.google.protobuf.AbstractParser() {
+      @java.lang.Override
+      public RetentionConfig parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        Builder builder = newBuilder();
+        try {
+          builder.mergeFrom(input, extensionRegistry);
+        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+          throw e.setUnfinishedMessage(builder.buildPartial());
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+        } catch (java.io.IOException e) {
+          throw new com.google.protobuf.InvalidProtocolBufferException(e)
+              .setUnfinishedMessage(builder.buildPartial());
+        }
+        return builder.buildPartial();
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -2854,16 +2561,14 @@ public com.google.protobuf.Parser getParserForType() {
     public com.google.cloud.pubsublite.proto.Topic.RetentionConfig getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
-  public interface ReservationConfigOrBuilder
-      extends
+  public interface ReservationConfigOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Topic.ReservationConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The Reservation to use for this topic's throughput capacity.
      * Structured like:
@@ -2871,13 +2576,10 @@ public interface ReservationConfigOrBuilder
      * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } - * * @return The throughputReservation. */ java.lang.String getThroughputReservation(); /** - * - * *
      * The Reservation to use for this topic's throughput capacity.
      * Structured like:
@@ -2885,62 +2587,55 @@ public interface ReservationConfigOrBuilder
      * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for throughputReservation. */ - com.google.protobuf.ByteString getThroughputReservationBytes(); + com.google.protobuf.ByteString + getThroughputReservationBytes(); } /** - * - * *
    * The settings for this topic's Reservation usage.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Topic.ReservationConfig} */ - public static final class ReservationConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ReservationConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.Topic.ReservationConfig) ReservationConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReservationConfig.newBuilder() to construct. private ReservationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReservationConfig() { throughputReservation_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReservationConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.ReservationConfig.class, - com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder.class); + com.google.cloud.pubsublite.proto.Topic.ReservationConfig.class, com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder.class); } public static final int THROUGHPUT_RESERVATION_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object throughputReservation_ = ""; /** - * - * *
      * The Reservation to use for this topic's throughput capacity.
      * Structured like:
@@ -2948,7 +2643,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } - * * @return The throughputReservation. */ @java.lang.Override @@ -2957,15 +2651,14 @@ public java.lang.String getThroughputReservation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); throughputReservation_ = s; return s; } } /** - * - * *
      * The Reservation to use for this topic's throughput capacity.
      * Structured like:
@@ -2973,15 +2666,16 @@ public java.lang.String getThroughputReservation() {
      * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for throughputReservation. */ @java.lang.Override - public com.google.protobuf.ByteString getThroughputReservationBytes() { + public com.google.protobuf.ByteString + getThroughputReservationBytes() { java.lang.Object ref = throughputReservation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); throughputReservation_ = b; return b; } else { @@ -2990,7 +2684,6 @@ public com.google.protobuf.ByteString getThroughputReservationBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3002,7 +2695,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(throughputReservation_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, throughputReservation_); } @@ -3026,15 +2720,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.Topic.ReservationConfig)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.Topic.ReservationConfig other = - (com.google.cloud.pubsublite.proto.Topic.ReservationConfig) obj; + com.google.cloud.pubsublite.proto.Topic.ReservationConfig other = (com.google.cloud.pubsublite.proto.Topic.ReservationConfig) obj; - if (!getThroughputReservation().equals(other.getThroughputReservation())) return false; + if (!getThroughputReservation() + .equals(other.getThroughputReservation())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3054,94 +2748,89 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.Topic.ReservationConfig prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.Topic.ReservationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3151,41 +2840,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The settings for this topic's Reservation usage.
      * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Topic.ReservationConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.Topic.ReservationConfig) com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.ReservationConfig.class, - com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder.class); + com.google.cloud.pubsublite.proto.Topic.ReservationConfig.class, com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.Topic.ReservationConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -3195,9 +2882,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor; } @java.lang.Override @@ -3216,11 +2903,8 @@ public com.google.cloud.pubsublite.proto.Topic.ReservationConfig build() { @java.lang.Override public com.google.cloud.pubsublite.proto.Topic.ReservationConfig buildPartial() { - com.google.cloud.pubsublite.proto.Topic.ReservationConfig result = - new com.google.cloud.pubsublite.proto.Topic.ReservationConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.Topic.ReservationConfig result = new com.google.cloud.pubsublite.proto.Topic.ReservationConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -3236,41 +2920,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Topic.ReservationCo public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.Topic.ReservationConfig) { - return mergeFrom((com.google.cloud.pubsublite.proto.Topic.ReservationConfig) other); + return mergeFrom((com.google.cloud.pubsublite.proto.Topic.ReservationConfig)other); } else { super.mergeFrom(other); return this; @@ -3278,8 +2959,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.Topic.ReservationConfig other) { - if (other == com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance()) return this; if (!other.getThroughputReservation().isEmpty()) { throughputReservation_ = other.throughputReservation_; bitField0_ |= 0x00000001; @@ -3311,19 +2991,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - throughputReservation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + throughputReservation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3333,13 +3011,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object throughputReservation_ = ""; /** - * - * *
        * The Reservation to use for this topic's throughput capacity.
        * Structured like:
@@ -3347,13 +3022,13 @@ public Builder mergeFrom(
        * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } - * * @return The throughputReservation. */ public java.lang.String getThroughputReservation() { java.lang.Object ref = throughputReservation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); throughputReservation_ = s; return s; @@ -3362,8 +3037,6 @@ public java.lang.String getThroughputReservation() { } } /** - * - * *
        * The Reservation to use for this topic's throughput capacity.
        * Structured like:
@@ -3371,14 +3044,15 @@ public java.lang.String getThroughputReservation() {
        * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for throughputReservation. */ - public com.google.protobuf.ByteString getThroughputReservationBytes() { + public com.google.protobuf.ByteString + getThroughputReservationBytes() { java.lang.Object ref = throughputReservation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); throughputReservation_ = b; return b; } else { @@ -3386,8 +3060,6 @@ public com.google.protobuf.ByteString getThroughputReservationBytes() { } } /** - * - * *
        * The Reservation to use for this topic's throughput capacity.
        * Structured like:
@@ -3395,22 +3067,18 @@ public com.google.protobuf.ByteString getThroughputReservationBytes() {
        * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } - * * @param value The throughputReservation to set. * @return This builder for chaining. */ - public Builder setThroughputReservation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setThroughputReservation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } throughputReservation_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The Reservation to use for this topic's throughput capacity.
        * Structured like:
@@ -3418,7 +3086,6 @@ public Builder setThroughputReservation(java.lang.String value) {
        * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearThroughputReservation() { @@ -3428,8 +3095,6 @@ public Builder clearThroughputReservation() { return this; } /** - * - * *
        * The Reservation to use for this topic's throughput capacity.
        * Structured like:
@@ -3437,21 +3102,18 @@ public Builder clearThroughputReservation() {
        * 
* * string throughput_reservation = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for throughputReservation to set. * @return This builder for chaining. */ - public Builder setThroughputReservationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setThroughputReservationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); throughputReservation_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3464,12 +3126,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Topic.ReservationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Topic.ReservationConfig) private static final com.google.cloud.pubsublite.proto.Topic.ReservationConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Topic.ReservationConfig(); } @@ -3478,28 +3140,27 @@ public static com.google.cloud.pubsublite.proto.Topic.ReservationConfig getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReservationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReservationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3514,16 +3175,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.Topic.ReservationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The name of the topic.
    * Structured like:
@@ -3531,7 +3190,6 @@ public com.google.cloud.pubsublite.proto.Topic.ReservationConfig getDefaultInsta
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -3540,15 +3198,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The name of the topic.
    * Structured like:
@@ -3556,15 +3213,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -3575,14 +3233,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PARTITION_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.pubsublite.proto.Topic.PartitionConfig partitionConfig_; /** - * - * *
    * The settings for this topic's partitions.
    * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; - * * @return Whether the partitionConfig field is set. */ @java.lang.Override @@ -3590,25 +3245,18 @@ public boolean hasPartitionConfig() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The settings for this topic's partitions.
    * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; - * * @return The partitionConfig. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Topic.PartitionConfig getPartitionConfig() { - return partitionConfig_ == null - ? com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance() - : partitionConfig_; + return partitionConfig_ == null ? com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance() : partitionConfig_; } /** - * - * *
    * The settings for this topic's partitions.
    * 
@@ -3616,24 +3264,18 @@ public com.google.cloud.pubsublite.proto.Topic.PartitionConfig getPartitionConfi * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder - getPartitionConfigOrBuilder() { - return partitionConfig_ == null - ? com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance() - : partitionConfig_; + public com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder getPartitionConfigOrBuilder() { + return partitionConfig_ == null ? com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance() : partitionConfig_; } public static final int RETENTION_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.pubsublite.proto.Topic.RetentionConfig retentionConfig_; /** - * - * *
    * The settings for this topic's message retention.
    * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; - * * @return Whether the retentionConfig field is set. */ @java.lang.Override @@ -3641,25 +3283,18 @@ public boolean hasRetentionConfig() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * The settings for this topic's message retention.
    * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; - * * @return The retentionConfig. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Topic.RetentionConfig getRetentionConfig() { - return retentionConfig_ == null - ? com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance() - : retentionConfig_; + return retentionConfig_ == null ? com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance() : retentionConfig_; } /** - * - * *
    * The settings for this topic's message retention.
    * 
@@ -3667,24 +3302,18 @@ public com.google.cloud.pubsublite.proto.Topic.RetentionConfig getRetentionConfi * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder - getRetentionConfigOrBuilder() { - return retentionConfig_ == null - ? com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance() - : retentionConfig_; + public com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder getRetentionConfigOrBuilder() { + return retentionConfig_ == null ? com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance() : retentionConfig_; } public static final int RESERVATION_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.pubsublite.proto.Topic.ReservationConfig reservationConfig_; /** - * - * *
    * The settings for this topic's Reservation usage.
    * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; - * * @return Whether the reservationConfig field is set. */ @java.lang.Override @@ -3692,25 +3321,18 @@ public boolean hasReservationConfig() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
    * The settings for this topic's Reservation usage.
    * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; - * * @return The reservationConfig. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Topic.ReservationConfig getReservationConfig() { - return reservationConfig_ == null - ? com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance() - : reservationConfig_; + return reservationConfig_ == null ? com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance() : reservationConfig_; } /** - * - * *
    * The settings for this topic's Reservation usage.
    * 
@@ -3718,15 +3340,11 @@ public com.google.cloud.pubsublite.proto.Topic.ReservationConfig getReservationC * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; */ @java.lang.Override - public com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder - getReservationConfigOrBuilder() { - return reservationConfig_ == null - ? com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance() - : reservationConfig_; + public com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder getReservationConfigOrBuilder() { + return reservationConfig_ == null ? com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance() : reservationConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3738,7 +3356,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -3764,13 +3383,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPartitionConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPartitionConfig()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRetentionConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRetentionConfig()); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReservationConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getReservationConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3780,25 +3402,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.Topic)) { return super.equals(obj); } com.google.cloud.pubsublite.proto.Topic other = (com.google.cloud.pubsublite.proto.Topic) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasPartitionConfig() != other.hasPartitionConfig()) return false; if (hasPartitionConfig()) { - if (!getPartitionConfig().equals(other.getPartitionConfig())) return false; + if (!getPartitionConfig() + .equals(other.getPartitionConfig())) return false; } if (hasRetentionConfig() != other.hasRetentionConfig()) return false; if (hasRetentionConfig()) { - if (!getRetentionConfig().equals(other.getRetentionConfig())) return false; + if (!getRetentionConfig() + .equals(other.getRetentionConfig())) return false; } if (hasReservationConfig() != other.hasReservationConfig()) return false; if (hasReservationConfig()) { - if (!getReservationConfig().equals(other.getReservationConfig())) return false; + if (!getReservationConfig() + .equals(other.getReservationConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -3830,127 +3456,120 @@ public int hashCode() { return hash; } - public static com.google.cloud.pubsublite.proto.Topic parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.pubsublite.proto.Topic parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Topic parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Topic parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Topic parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Topic parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.Topic parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Topic parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.Topic parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Topic parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.Topic parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.Topic parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.Topic parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.Topic parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.pubsublite.proto.Topic prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Metadata about a topic resource.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.Topic} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.Topic) com.google.cloud.pubsublite.proto.TopicOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.Topic.class, - com.google.cloud.pubsublite.proto.Topic.Builder.class); + com.google.cloud.pubsublite.proto.Topic.class, com.google.cloud.pubsublite.proto.Topic.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.Topic.newBuilder() @@ -3958,19 +3577,19 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getPartitionConfigFieldBuilder(); getRetentionConfigFieldBuilder(); getReservationConfigFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3995,9 +3614,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.CommonProto - .internal_static_google_cloud_pubsublite_v1_Topic_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.CommonProto.internal_static_google_cloud_pubsublite_v1_Topic_descriptor; } @java.lang.Override @@ -4016,11 +3635,8 @@ public com.google.cloud.pubsublite.proto.Topic build() { @java.lang.Override public com.google.cloud.pubsublite.proto.Topic buildPartial() { - com.google.cloud.pubsublite.proto.Topic result = - new com.google.cloud.pubsublite.proto.Topic(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.Topic result = new com.google.cloud.pubsublite.proto.Topic(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -4032,20 +3648,21 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Topic result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.partitionConfig_ = - partitionConfigBuilder_ == null ? partitionConfig_ : partitionConfigBuilder_.build(); + result.partitionConfig_ = partitionConfigBuilder_ == null + ? partitionConfig_ + : partitionConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.retentionConfig_ = - retentionConfigBuilder_ == null ? retentionConfig_ : retentionConfigBuilder_.build(); + result.retentionConfig_ = retentionConfigBuilder_ == null + ? retentionConfig_ + : retentionConfigBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.reservationConfig_ = - reservationConfigBuilder_ == null - ? reservationConfig_ - : reservationConfigBuilder_.build(); + result.reservationConfig_ = reservationConfigBuilder_ == null + ? reservationConfig_ + : reservationConfigBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; @@ -4055,39 +3672,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.Topic result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.Topic) { - return mergeFrom((com.google.cloud.pubsublite.proto.Topic) other); + return mergeFrom((com.google.cloud.pubsublite.proto.Topic)other); } else { super.mergeFrom(other); return this; @@ -4136,38 +3752,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getPartitionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getRetentionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - getReservationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getPartitionConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getRetentionConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getReservationConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4177,13 +3793,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The name of the topic.
      * Structured like:
@@ -4191,13 +3804,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -4206,8 +3819,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the topic.
      * Structured like:
@@ -4215,14 +3826,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -4230,8 +3842,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the topic.
      * Structured like:
@@ -4239,22 +3849,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The name of the topic.
      * Structured like:
@@ -4262,7 +3868,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -4272,8 +3877,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The name of the topic.
      * Structured like:
@@ -4281,14 +3884,12 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -4298,55 +3899,41 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.pubsublite.proto.Topic.PartitionConfig partitionConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.PartitionConfig, - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder, - com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder> - partitionConfigBuilder_; + com.google.cloud.pubsublite.proto.Topic.PartitionConfig, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder, com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder> partitionConfigBuilder_; /** - * - * *
      * The settings for this topic's partitions.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; - * * @return Whether the partitionConfig field is set. */ public boolean hasPartitionConfig() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The settings for this topic's partitions.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; - * * @return The partitionConfig. */ public com.google.cloud.pubsublite.proto.Topic.PartitionConfig getPartitionConfig() { if (partitionConfigBuilder_ == null) { - return partitionConfig_ == null - ? com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance() - : partitionConfig_; + return partitionConfig_ == null ? com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance() : partitionConfig_; } else { return partitionConfigBuilder_.getMessage(); } } /** - * - * *
      * The settings for this topic's partitions.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; */ - public Builder setPartitionConfig( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig value) { + public Builder setPartitionConfig(com.google.cloud.pubsublite.proto.Topic.PartitionConfig value) { if (partitionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4360,8 +3947,6 @@ public Builder setPartitionConfig( return this; } /** - * - * *
      * The settings for this topic's partitions.
      * 
@@ -4380,21 +3965,17 @@ public Builder setPartitionConfig( return this; } /** - * - * *
      * The settings for this topic's partitions.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; */ - public Builder mergePartitionConfig( - com.google.cloud.pubsublite.proto.Topic.PartitionConfig value) { + public Builder mergePartitionConfig(com.google.cloud.pubsublite.proto.Topic.PartitionConfig value) { if (partitionConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && partitionConfig_ != null - && partitionConfig_ - != com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + partitionConfig_ != null && + partitionConfig_ != com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance()) { getPartitionConfigBuilder().mergeFrom(value); } else { partitionConfig_ = value; @@ -4409,8 +3990,6 @@ public Builder mergePartitionConfig( return this; } /** - * - * *
      * The settings for this topic's partitions.
      * 
@@ -4428,42 +4007,33 @@ public Builder clearPartitionConfig() { return this; } /** - * - * *
      * The settings for this topic's partitions.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; */ - public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder - getPartitionConfigBuilder() { + public com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder getPartitionConfigBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPartitionConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The settings for this topic's partitions.
      * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; */ - public com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder - getPartitionConfigOrBuilder() { + public com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder getPartitionConfigOrBuilder() { if (partitionConfigBuilder_ != null) { return partitionConfigBuilder_.getMessageOrBuilder(); } else { - return partitionConfig_ == null - ? com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance() - : partitionConfig_; + return partitionConfig_ == null ? + com.google.cloud.pubsublite.proto.Topic.PartitionConfig.getDefaultInstance() : partitionConfig_; } } /** - * - * *
      * The settings for this topic's partitions.
      * 
@@ -4471,17 +4041,14 @@ public Builder clearPartitionConfig() { * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.PartitionConfig, - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder, - com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder> + com.google.cloud.pubsublite.proto.Topic.PartitionConfig, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder, com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder> getPartitionConfigFieldBuilder() { if (partitionConfigBuilder_ == null) { - partitionConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.PartitionConfig, - com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder, - com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder>( - getPartitionConfig(), getParentForChildren(), isClean()); + partitionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Topic.PartitionConfig, com.google.cloud.pubsublite.proto.Topic.PartitionConfig.Builder, com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder>( + getPartitionConfig(), + getParentForChildren(), + isClean()); partitionConfig_ = null; } return partitionConfigBuilder_; @@ -4489,55 +4056,41 @@ public Builder clearPartitionConfig() { private com.google.cloud.pubsublite.proto.Topic.RetentionConfig retentionConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.RetentionConfig, - com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder, - com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder> - retentionConfigBuilder_; + com.google.cloud.pubsublite.proto.Topic.RetentionConfig, com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder, com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder> retentionConfigBuilder_; /** - * - * *
      * The settings for this topic's message retention.
      * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; - * * @return Whether the retentionConfig field is set. */ public boolean hasRetentionConfig() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The settings for this topic's message retention.
      * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; - * * @return The retentionConfig. */ public com.google.cloud.pubsublite.proto.Topic.RetentionConfig getRetentionConfig() { if (retentionConfigBuilder_ == null) { - return retentionConfig_ == null - ? com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance() - : retentionConfig_; + return retentionConfig_ == null ? com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance() : retentionConfig_; } else { return retentionConfigBuilder_.getMessage(); } } /** - * - * *
      * The settings for this topic's message retention.
      * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; */ - public Builder setRetentionConfig( - com.google.cloud.pubsublite.proto.Topic.RetentionConfig value) { + public Builder setRetentionConfig(com.google.cloud.pubsublite.proto.Topic.RetentionConfig value) { if (retentionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4551,8 +4104,6 @@ public Builder setRetentionConfig( return this; } /** - * - * *
      * The settings for this topic's message retention.
      * 
@@ -4571,21 +4122,17 @@ public Builder setRetentionConfig( return this; } /** - * - * *
      * The settings for this topic's message retention.
      * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; */ - public Builder mergeRetentionConfig( - com.google.cloud.pubsublite.proto.Topic.RetentionConfig value) { + public Builder mergeRetentionConfig(com.google.cloud.pubsublite.proto.Topic.RetentionConfig value) { if (retentionConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && retentionConfig_ != null - && retentionConfig_ - != com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + retentionConfig_ != null && + retentionConfig_ != com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance()) { getRetentionConfigBuilder().mergeFrom(value); } else { retentionConfig_ = value; @@ -4600,8 +4147,6 @@ public Builder mergeRetentionConfig( return this; } /** - * - * *
      * The settings for this topic's message retention.
      * 
@@ -4619,42 +4164,33 @@ public Builder clearRetentionConfig() { return this; } /** - * - * *
      * The settings for this topic's message retention.
      * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; */ - public com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder - getRetentionConfigBuilder() { + public com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder getRetentionConfigBuilder() { bitField0_ |= 0x00000004; onChanged(); return getRetentionConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The settings for this topic's message retention.
      * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; */ - public com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder - getRetentionConfigOrBuilder() { + public com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder getRetentionConfigOrBuilder() { if (retentionConfigBuilder_ != null) { return retentionConfigBuilder_.getMessageOrBuilder(); } else { - return retentionConfig_ == null - ? com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance() - : retentionConfig_; + return retentionConfig_ == null ? + com.google.cloud.pubsublite.proto.Topic.RetentionConfig.getDefaultInstance() : retentionConfig_; } } /** - * - * *
      * The settings for this topic's message retention.
      * 
@@ -4662,17 +4198,14 @@ public Builder clearRetentionConfig() { * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.RetentionConfig, - com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder, - com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder> + com.google.cloud.pubsublite.proto.Topic.RetentionConfig, com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder, com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder> getRetentionConfigFieldBuilder() { if (retentionConfigBuilder_ == null) { - retentionConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.RetentionConfig, - com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder, - com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder>( - getRetentionConfig(), getParentForChildren(), isClean()); + retentionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Topic.RetentionConfig, com.google.cloud.pubsublite.proto.Topic.RetentionConfig.Builder, com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder>( + getRetentionConfig(), + getParentForChildren(), + isClean()); retentionConfig_ = null; } return retentionConfigBuilder_; @@ -4680,55 +4213,41 @@ public Builder clearRetentionConfig() { private com.google.cloud.pubsublite.proto.Topic.ReservationConfig reservationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.ReservationConfig, - com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder, - com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder> - reservationConfigBuilder_; + com.google.cloud.pubsublite.proto.Topic.ReservationConfig, com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder, com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder> reservationConfigBuilder_; /** - * - * *
      * The settings for this topic's Reservation usage.
      * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; - * * @return Whether the reservationConfig field is set. */ public boolean hasReservationConfig() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The settings for this topic's Reservation usage.
      * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; - * * @return The reservationConfig. */ public com.google.cloud.pubsublite.proto.Topic.ReservationConfig getReservationConfig() { if (reservationConfigBuilder_ == null) { - return reservationConfig_ == null - ? com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance() - : reservationConfig_; + return reservationConfig_ == null ? com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance() : reservationConfig_; } else { return reservationConfigBuilder_.getMessage(); } } /** - * - * *
      * The settings for this topic's Reservation usage.
      * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; */ - public Builder setReservationConfig( - com.google.cloud.pubsublite.proto.Topic.ReservationConfig value) { + public Builder setReservationConfig(com.google.cloud.pubsublite.proto.Topic.ReservationConfig value) { if (reservationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4742,8 +4261,6 @@ public Builder setReservationConfig( return this; } /** - * - * *
      * The settings for this topic's Reservation usage.
      * 
@@ -4762,21 +4279,17 @@ public Builder setReservationConfig( return this; } /** - * - * *
      * The settings for this topic's Reservation usage.
      * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; */ - public Builder mergeReservationConfig( - com.google.cloud.pubsublite.proto.Topic.ReservationConfig value) { + public Builder mergeReservationConfig(com.google.cloud.pubsublite.proto.Topic.ReservationConfig value) { if (reservationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && reservationConfig_ != null - && reservationConfig_ - != com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + reservationConfig_ != null && + reservationConfig_ != com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance()) { getReservationConfigBuilder().mergeFrom(value); } else { reservationConfig_ = value; @@ -4791,8 +4304,6 @@ public Builder mergeReservationConfig( return this; } /** - * - * *
      * The settings for this topic's Reservation usage.
      * 
@@ -4810,42 +4321,33 @@ public Builder clearReservationConfig() { return this; } /** - * - * *
      * The settings for this topic's Reservation usage.
      * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; */ - public com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder - getReservationConfigBuilder() { + public com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder getReservationConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getReservationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * The settings for this topic's Reservation usage.
      * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; */ - public com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder - getReservationConfigOrBuilder() { + public com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder getReservationConfigOrBuilder() { if (reservationConfigBuilder_ != null) { return reservationConfigBuilder_.getMessageOrBuilder(); } else { - return reservationConfig_ == null - ? com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance() - : reservationConfig_; + return reservationConfig_ == null ? + com.google.cloud.pubsublite.proto.Topic.ReservationConfig.getDefaultInstance() : reservationConfig_; } } /** - * - * *
      * The settings for this topic's Reservation usage.
      * 
@@ -4853,24 +4355,21 @@ public Builder clearReservationConfig() { * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.ReservationConfig, - com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder, - com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder> + com.google.cloud.pubsublite.proto.Topic.ReservationConfig, com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder, com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder> getReservationConfigFieldBuilder() { if (reservationConfigBuilder_ == null) { - reservationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic.ReservationConfig, - com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder, - com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder>( - getReservationConfig(), getParentForChildren(), isClean()); + reservationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Topic.ReservationConfig, com.google.cloud.pubsublite.proto.Topic.ReservationConfig.Builder, com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder>( + getReservationConfig(), + getParentForChildren(), + isClean()); reservationConfig_ = null; } return reservationConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4880,12 +4379,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.Topic) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.Topic) private static final com.google.cloud.pubsublite.proto.Topic DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.Topic(); } @@ -4894,27 +4393,27 @@ public static com.google.cloud.pubsublite.proto.Topic getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Topic parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Topic parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4929,4 +4428,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.Topic getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicName.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicName.java similarity index 100% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicName.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicName.java diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicOrBuilder.java similarity index 79% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicOrBuilder.java index bfc81e9a9..425b9d9ee 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/common.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface TopicOrBuilder - extends +public interface TopicOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Topic) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the topic.
    * Structured like:
@@ -34,13 +16,10 @@ public interface TopicOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the topic.
    * Structured like:
@@ -48,38 +27,30 @@ public interface TopicOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The settings for this topic's partitions.
    * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; - * * @return Whether the partitionConfig field is set. */ boolean hasPartitionConfig(); /** - * - * *
    * The settings for this topic's partitions.
    * 
* * .google.cloud.pubsublite.v1.Topic.PartitionConfig partition_config = 2; - * * @return The partitionConfig. */ com.google.cloud.pubsublite.proto.Topic.PartitionConfig getPartitionConfig(); /** - * - * *
    * The settings for this topic's partitions.
    * 
@@ -89,32 +60,24 @@ public interface TopicOrBuilder com.google.cloud.pubsublite.proto.Topic.PartitionConfigOrBuilder getPartitionConfigOrBuilder(); /** - * - * *
    * The settings for this topic's message retention.
    * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; - * * @return Whether the retentionConfig field is set. */ boolean hasRetentionConfig(); /** - * - * *
    * The settings for this topic's message retention.
    * 
* * .google.cloud.pubsublite.v1.Topic.RetentionConfig retention_config = 3; - * * @return The retentionConfig. */ com.google.cloud.pubsublite.proto.Topic.RetentionConfig getRetentionConfig(); /** - * - * *
    * The settings for this topic's message retention.
    * 
@@ -124,38 +87,29 @@ public interface TopicOrBuilder com.google.cloud.pubsublite.proto.Topic.RetentionConfigOrBuilder getRetentionConfigOrBuilder(); /** - * - * *
    * The settings for this topic's Reservation usage.
    * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; - * * @return Whether the reservationConfig field is set. */ boolean hasReservationConfig(); /** - * - * *
    * The settings for this topic's Reservation usage.
    * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; - * * @return The reservationConfig. */ com.google.cloud.pubsublite.proto.Topic.ReservationConfig getReservationConfig(); /** - * - * *
    * The settings for this topic's Reservation usage.
    * 
* * .google.cloud.pubsublite.v1.Topic.ReservationConfig reservation_config = 4; */ - com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder - getReservationConfigOrBuilder(); + com.google.cloud.pubsublite.proto.Topic.ReservationConfigOrBuilder getReservationConfigOrBuilder(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitions.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitions.java similarity index 64% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitions.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitions.java index fd305179c..9ad8f65ee 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitions.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitions.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -20,58 +5,52 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Response for GetTopicPartitions.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.TopicPartitions} */ -public final class TopicPartitions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TopicPartitions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.TopicPartitions) TopicPartitionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TopicPartitions.newBuilder() to construct. private TopicPartitions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TopicPartitions() {} + private TopicPartitions() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TopicPartitions(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.TopicPartitions.class, - com.google.cloud.pubsublite.proto.TopicPartitions.Builder.class); + com.google.cloud.pubsublite.proto.TopicPartitions.class, com.google.cloud.pubsublite.proto.TopicPartitions.Builder.class); } public static final int PARTITION_COUNT_FIELD_NUMBER = 1; private long partitionCount_ = 0L; /** - * - * *
    * The number of partitions in the topic.
    * 
* * int64 partition_count = 1; - * * @return The partitionCount. */ @java.lang.Override @@ -80,7 +59,6 @@ public long getPartitionCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -92,7 +70,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (partitionCount_ != 0L) { output.writeInt64(1, partitionCount_); } @@ -106,7 +85,8 @@ public int getSerializedSize() { size = 0; if (partitionCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, partitionCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, partitionCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -116,15 +96,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.TopicPartitions)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.TopicPartitions other = - (com.google.cloud.pubsublite.proto.TopicPartitions) obj; + com.google.cloud.pubsublite.proto.TopicPartitions other = (com.google.cloud.pubsublite.proto.TopicPartitions) obj; - if (getPartitionCount() != other.getPartitionCount()) return false; + if (getPartitionCount() + != other.getPartitionCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -137,142 +117,139 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARTITION_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartitionCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPartitionCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.pubsublite.proto.TopicPartitions parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.TopicPartitions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.TopicPartitions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.TopicPartitions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.TopicPartitions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.TopicPartitions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.TopicPartitions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.TopicPartitions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.TopicPartitions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.TopicPartitions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.TopicPartitions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.TopicPartitions parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.TopicPartitions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.TopicPartitions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.pubsublite.proto.TopicPartitions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for GetTopicPartitions.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.TopicPartitions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.TopicPartitions) com.google.cloud.pubsublite.proto.TopicPartitionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.TopicPartitions.class, - com.google.cloud.pubsublite.proto.TopicPartitions.Builder.class); + com.google.cloud.pubsublite.proto.TopicPartitions.class, com.google.cloud.pubsublite.proto.TopicPartitions.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.TopicPartitions.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -282,9 +259,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor; } @java.lang.Override @@ -303,11 +280,8 @@ public com.google.cloud.pubsublite.proto.TopicPartitions build() { @java.lang.Override public com.google.cloud.pubsublite.proto.TopicPartitions buildPartial() { - com.google.cloud.pubsublite.proto.TopicPartitions result = - new com.google.cloud.pubsublite.proto.TopicPartitions(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.TopicPartitions result = new com.google.cloud.pubsublite.proto.TopicPartitions(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -323,39 +297,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.TopicPartitions res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.TopicPartitions) { - return mergeFrom((com.google.cloud.pubsublite.proto.TopicPartitions) other); + return mergeFrom((com.google.cloud.pubsublite.proto.TopicPartitions)other); } else { super.mergeFrom(other); return this; @@ -363,8 +336,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.TopicPartitions other) { - if (other == com.google.cloud.pubsublite.proto.TopicPartitions.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.TopicPartitions.getDefaultInstance()) return this; if (other.getPartitionCount() != 0L) { setPartitionCount(other.getPartitionCount()); } @@ -394,19 +366,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - partitionCount_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + partitionCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -416,19 +386,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long partitionCount_; + private long partitionCount_ ; /** - * - * *
      * The number of partitions in the topic.
      * 
* * int64 partition_count = 1; - * * @return The partitionCount. */ @java.lang.Override @@ -436,14 +402,11 @@ public long getPartitionCount() { return partitionCount_; } /** - * - * *
      * The number of partitions in the topic.
      * 
* * int64 partition_count = 1; - * * @param value The partitionCount to set. * @return This builder for chaining. */ @@ -455,14 +418,11 @@ public Builder setPartitionCount(long value) { return this; } /** - * - * *
      * The number of partitions in the topic.
      * 
* * int64 partition_count = 1; - * * @return This builder for chaining. */ public Builder clearPartitionCount() { @@ -471,9 +431,9 @@ public Builder clearPartitionCount() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -483,12 +443,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.TopicPartitions) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.TopicPartitions) private static final com.google.cloud.pubsublite.proto.TopicPartitions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.TopicPartitions(); } @@ -497,27 +457,27 @@ public static com.google.cloud.pubsublite.proto.TopicPartitions getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TopicPartitions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TopicPartitions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -532,4 +492,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.TopicPartitions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java new file mode 100644 index 000000000..f76def6dd --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/admin.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.pubsublite.proto; + +public interface TopicPartitionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.TopicPartitions) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The number of partitions in the topic.
+   * 
+ * + * int64 partition_count = 1; + * @return The partitionCount. + */ + long getPartitionCount(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsProto.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsProto.java new file mode 100644 index 000000000..0a40457ef --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsProto.java @@ -0,0 +1,175 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/pubsublite/v1/topic_stats.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.pubsublite.proto; + +public final class TopicStatsProto { + private TopicStatsProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/pubsublite/v1/topic_stats" + + ".proto\022\032google.cloud.pubsublite.v1\032\034goog" + + "le/api/annotations.proto\032\027google/api/cli" + + "ent.proto\032\037google/api/field_behavior.pro" + + "to\032\031google/api/resource.proto\032\'google/cl" + + "oud/pubsublite/v1/common.proto\032\037google/p" + + "rotobuf/timestamp.proto\"\336\001\n\032ComputeMessa" + + "geStatsRequest\0226\n\005topic\030\001 \001(\tB\'\340A\002\372A!\n\037p" + + "ubsublite.googleapis.com/Topic\022\026\n\tpartit" + + "ion\030\002 \001(\003B\003\340A\002\0228\n\014start_cursor\030\003 \001(\0132\".g" + + "oogle.cloud.pubsublite.v1.Cursor\0226\n\nend_" + + "cursor\030\004 \001(\0132\".google.cloud.pubsublite.v" + + "1.Cursor\"\275\001\n\033ComputeMessageStatsResponse" + + "\022\025\n\rmessage_count\030\001 \001(\003\022\025\n\rmessage_bytes" + + "\030\002 \001(\003\0228\n\024minimum_publish_time\030\003 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\0226\n\022minimum_even" + + "t_time\030\004 \001(\0132\032.google.protobuf.Timestamp" + + "\"j\n\030ComputeHeadCursorRequest\0226\n\005topic\030\001 " + + "\001(\tB\'\340A\002\372A!\n\037pubsublite.googleapis.com/T" + + "opic\022\026\n\tpartition\030\002 \001(\003B\003\340A\002\"T\n\031ComputeH" + + "eadCursorResponse\0227\n\013head_cursor\030\001 \001(\0132\"" + + ".google.cloud.pubsublite.v1.Cursor\"\247\001\n\030C" + + "omputeTimeCursorRequest\0226\n\005topic\030\001 \001(\tB\'" + + "\340A\002\372A!\n\037pubsublite.googleapis.com/Topic\022" + + "\026\n\tpartition\030\002 \001(\003B\003\340A\002\022;\n\006target\030\003 \001(\0132" + + "&.google.cloud.pubsublite.v1.TimeTargetB" + + "\003\340A\002\"O\n\031ComputeTimeCursorResponse\0222\n\006cur" + + "sor\030\001 \001(\0132\".google.cloud.pubsublite.v1.C" + + "ursor2\362\005\n\021TopicStatsService\022\335\001\n\023ComputeM" + + "essageStats\0226.google.cloud.pubsublite.v1" + + ".ComputeMessageStatsRequest\0327.google.clo" + + "ud.pubsublite.v1.ComputeMessageStatsResp" + + "onse\"U\202\323\344\223\002O\"J/v1/topicStats/{topic=proj" + + "ects/*/locations/*/topics/*}:computeMess" + + "ageStats:\001*\022\325\001\n\021ComputeHeadCursor\0224.goog" + + "le.cloud.pubsublite.v1.ComputeHeadCursor" + + "Request\0325.google.cloud.pubsublite.v1.Com" + + "puteHeadCursorResponse\"S\202\323\344\223\002M\"H/v1/topi" + + "cStats/{topic=projects/*/locations/*/top" + + "ics/*}:computeHeadCursor:\001*\022\325\001\n\021ComputeT" + + "imeCursor\0224.google.cloud.pubsublite.v1.C" + + "omputeTimeCursorRequest\0325.google.cloud.p" + + "ubsublite.v1.ComputeTimeCursorResponse\"S" + + "\202\323\344\223\002M\"H/v1/topicStats/{topic=projects/*" + + "/locations/*/topics/*}:computeTimeCursor" + + ":\001*\032M\312A\031pubsublite.googleapis.com\322A.http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rmB\320\001\n!com.google.cloud.pubsublite.proto" + + "B\017TopicStatsProtoP\001Z>cloud.google.com/go" + + "/pubsublite/apiv1/pubsublitepb;pubsublit" + + "epb\252\002\032Google.Cloud.PubSubLite.V1\312\002\032Googl" + + "e\\Cloud\\PubSubLite\\V1\352\002\035Google::Cloud::P" + + "ubSubLite::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor, + new java.lang.String[] { "Topic", "Partition", "StartCursor", "EndCursor", }); + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor, + new java.lang.String[] { "MessageCount", "MessageBytes", "MinimumPublishTime", "MinimumEventTime", }); + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor, + new java.lang.String[] { "Topic", "Partition", }); + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor, + new java.lang.String[] { "HeadCursor", }); + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor, + new java.lang.String[] { "Topic", "Partition", "Target", }); + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor, + new java.lang.String[] { "Cursor", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequest.java similarity index 63% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequest.java index 3cef08c12..dc00ac0c0 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -20,61 +5,53 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for UpdateReservation.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.UpdateReservationRequest} */ -public final class UpdateReservationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateReservationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.UpdateReservationRequest) UpdateReservationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateReservationRequest.newBuilder() to construct. private UpdateReservationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateReservationRequest() {} + private UpdateReservationRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateReservationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.UpdateReservationRequest.class, - com.google.cloud.pubsublite.proto.UpdateReservationRequest.Builder.class); + com.google.cloud.pubsublite.proto.UpdateReservationRequest.class, com.google.cloud.pubsublite.proto.UpdateReservationRequest.Builder.class); } private int bitField0_; public static final int RESERVATION_FIELD_NUMBER = 1; private com.google.cloud.pubsublite.proto.Reservation reservation_; /** - * - * *
    * Required. The reservation to update. Its `name` field must be populated.
    * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the reservation field is set. */ @java.lang.Override @@ -82,54 +59,37 @@ public boolean hasReservation() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. The reservation to update. Its `name` field must be populated.
    * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The reservation. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Reservation getReservation() { - return reservation_ == null - ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() - : reservation_; + return reservation_ == null ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() : reservation_; } /** - * - * *
    * Required. The reservation to update. Its `name` field must be populated.
    * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBuilder() { - return reservation_ == null - ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() - : reservation_; + return reservation_ == null ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() : reservation_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. A mask specifying the reservation fields to change.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -137,15 +97,11 @@ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Required. A mask specifying the reservation fields to change.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -153,14 +109,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. A mask specifying the reservation fields to change.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -168,7 +121,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,7 +132,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getReservation()); } @@ -197,10 +150,12 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReservation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getReservation()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -210,21 +165,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.UpdateReservationRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.UpdateReservationRequest other = - (com.google.cloud.pubsublite.proto.UpdateReservationRequest) obj; + com.google.cloud.pubsublite.proto.UpdateReservationRequest other = (com.google.cloud.pubsublite.proto.UpdateReservationRequest) obj; if (hasReservation() != other.hasReservation()) return false; if (hasReservation()) { - if (!getReservation().equals(other.getReservation())) return false; + if (!getReservation() + .equals(other.getReservation())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -251,127 +207,119 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.UpdateReservationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.UpdateReservationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.UpdateReservationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.UpdateReservationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.UpdateReservationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.UpdateReservationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.UpdateReservationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.UpdateReservationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.UpdateReservationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.UpdateReservationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.UpdateReservationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.UpdateReservationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.UpdateReservationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.UpdateReservationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.UpdateReservationRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.UpdateReservationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for UpdateReservation.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.UpdateReservationRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.UpdateReservationRequest) com.google.cloud.pubsublite.proto.UpdateReservationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.UpdateReservationRequest.class, - com.google.cloud.pubsublite.proto.UpdateReservationRequest.Builder.class); + com.google.cloud.pubsublite.proto.UpdateReservationRequest.class, com.google.cloud.pubsublite.proto.UpdateReservationRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.UpdateReservationRequest.newBuilder() @@ -379,18 +327,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getReservationFieldBuilder(); getUpdateMaskFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +357,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor; } @java.lang.Override @@ -430,11 +378,8 @@ public com.google.cloud.pubsublite.proto.UpdateReservationRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.UpdateReservationRequest buildPartial() { - com.google.cloud.pubsublite.proto.UpdateReservationRequest result = - new com.google.cloud.pubsublite.proto.UpdateReservationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.UpdateReservationRequest result = new com.google.cloud.pubsublite.proto.UpdateReservationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -443,12 +388,15 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.UpdateReservationRe int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.reservation_ = - reservationBuilder_ == null ? reservation_ : reservationBuilder_.build(); + result.reservation_ = reservationBuilder_ == null + ? reservation_ + : reservationBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -458,39 +406,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.UpdateReservationRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.UpdateReservationRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.UpdateReservationRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.UpdateReservationRequest)other); } else { super.mergeFrom(other); return this; @@ -498,8 +445,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.UpdateReservationRequest other) { - if (other == com.google.cloud.pubsublite.proto.UpdateReservationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.UpdateReservationRequest.getDefaultInstance()) return this; if (other.hasReservation()) { mergeReservation(other.getReservation()); } @@ -532,25 +478,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getReservationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getReservationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -560,63 +507,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.pubsublite.proto.Reservation reservation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Reservation, - com.google.cloud.pubsublite.proto.Reservation.Builder, - com.google.cloud.pubsublite.proto.ReservationOrBuilder> - reservationBuilder_; + com.google.cloud.pubsublite.proto.Reservation, com.google.cloud.pubsublite.proto.Reservation.Builder, com.google.cloud.pubsublite.proto.ReservationOrBuilder> reservationBuilder_; /** - * - * *
      * Required. The reservation to update. Its `name` field must be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the reservation field is set. */ public boolean hasReservation() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The reservation to update. Its `name` field must be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The reservation. */ public com.google.cloud.pubsublite.proto.Reservation getReservation() { if (reservationBuilder_ == null) { - return reservation_ == null - ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() - : reservation_; + return reservation_ == null ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() : reservation_; } else { return reservationBuilder_.getMessage(); } } /** - * - * *
      * Required. The reservation to update. Its `name` field must be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setReservation(com.google.cloud.pubsublite.proto.Reservation value) { if (reservationBuilder_ == null) { @@ -632,15 +559,11 @@ public Builder setReservation(com.google.cloud.pubsublite.proto.Reservation valu return this; } /** - * - * *
      * Required. The reservation to update. Its `name` field must be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setReservation( com.google.cloud.pubsublite.proto.Reservation.Builder builderForValue) { @@ -654,21 +577,17 @@ public Builder setReservation( return this; } /** - * - * *
      * Required. The reservation to update. Its `name` field must be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeReservation(com.google.cloud.pubsublite.proto.Reservation value) { if (reservationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && reservation_ != null - && reservation_ != com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + reservation_ != null && + reservation_ != com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance()) { getReservationBuilder().mergeFrom(value); } else { reservation_ = value; @@ -683,15 +602,11 @@ public Builder mergeReservation(com.google.cloud.pubsublite.proto.Reservation va return this; } /** - * - * *
      * Required. The reservation to update. Its `name` field must be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearReservation() { bitField0_ = (bitField0_ & ~0x00000001); @@ -704,15 +619,11 @@ public Builder clearReservation() { return this; } /** - * - * *
      * Required. The reservation to update. Its `name` field must be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.Reservation.Builder getReservationBuilder() { bitField0_ |= 0x00000001; @@ -720,48 +631,36 @@ public com.google.cloud.pubsublite.proto.Reservation.Builder getReservationBuild return getReservationFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The reservation to update. Its `name` field must be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBuilder() { if (reservationBuilder_ != null) { return reservationBuilder_.getMessageOrBuilder(); } else { - return reservation_ == null - ? com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() - : reservation_; + return reservation_ == null ? + com.google.cloud.pubsublite.proto.Reservation.getDefaultInstance() : reservation_; } } /** - * - * *
      * Required. The reservation to update. Its `name` field must be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Reservation, - com.google.cloud.pubsublite.proto.Reservation.Builder, - com.google.cloud.pubsublite.proto.ReservationOrBuilder> + com.google.cloud.pubsublite.proto.Reservation, com.google.cloud.pubsublite.proto.Reservation.Builder, com.google.cloud.pubsublite.proto.ReservationOrBuilder> getReservationFieldBuilder() { if (reservationBuilder_ == null) { - reservationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Reservation, - com.google.cloud.pubsublite.proto.Reservation.Builder, - com.google.cloud.pubsublite.proto.ReservationOrBuilder>( - getReservation(), getParentForChildren(), isClean()); + reservationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Reservation, com.google.cloud.pubsublite.proto.Reservation.Builder, com.google.cloud.pubsublite.proto.ReservationOrBuilder>( + getReservation(), + getParentForChildren(), + isClean()); reservation_ = null; } return reservationBuilder_; @@ -769,55 +668,39 @@ public com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBu private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. A mask specifying the reservation fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. A mask specifying the reservation fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. A mask specifying the reservation fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -833,16 +716,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A mask specifying the reservation fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -853,20 +734,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. A mask specifying the reservation fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -881,14 +759,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A mask specifying the reservation fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -901,14 +776,11 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. A mask specifying the reservation fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -916,53 +788,43 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A mask specifying the reservation fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. A mask specifying the reservation fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -972,12 +834,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.UpdateReservationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.UpdateReservationRequest) private static final com.google.cloud.pubsublite.proto.UpdateReservationRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.UpdateReservationRequest(); } @@ -986,27 +848,27 @@ public static com.google.cloud.pubsublite.proto.UpdateReservationRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateReservationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateReservationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1021,4 +883,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.UpdateReservationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequestOrBuilder.java index 5a1718d34..4db99dc3d 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateReservationRequestOrBuilder.java @@ -1,105 +1,64 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface UpdateReservationRequestOrBuilder - extends +public interface UpdateReservationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.UpdateReservationRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The reservation to update. Its `name` field must be populated.
    * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the reservation field is set. */ boolean hasReservation(); /** - * - * *
    * Required. The reservation to update. Its `name` field must be populated.
    * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The reservation. */ com.google.cloud.pubsublite.proto.Reservation getReservation(); /** - * - * *
    * Required. The reservation to update. Its `name` field must be populated.
    * 
* - * - * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Reservation reservation = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.pubsublite.proto.ReservationOrBuilder getReservationOrBuilder(); /** - * - * *
    * Required. A mask specifying the reservation fields to change.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. A mask specifying the reservation fields to change.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. A mask specifying the reservation fields to change.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequest.java similarity index 64% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequest.java index 3a8a41e7c..2ec837f42 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -20,62 +5,54 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for UpdateSubscription.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.UpdateSubscriptionRequest} */ -public final class UpdateSubscriptionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateSubscriptionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.UpdateSubscriptionRequest) UpdateSubscriptionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateSubscriptionRequest.newBuilder() to construct. private UpdateSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateSubscriptionRequest() {} + private UpdateSubscriptionRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateSubscriptionRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.class, - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.class, com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.Builder.class); } private int bitField0_; public static final int SUBSCRIPTION_FIELD_NUMBER = 1; private com.google.cloud.pubsublite.proto.Subscription subscription_; /** - * - * *
    * Required. The subscription to update. Its `name` field must be populated.
    * Topic field must not be populated.
    * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subscription field is set. */ @java.lang.Override @@ -83,56 +60,39 @@ public boolean hasSubscription() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. The subscription to update. Its `name` field must be populated.
    * Topic field must not be populated.
    * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The subscription. */ @java.lang.Override public com.google.cloud.pubsublite.proto.Subscription getSubscription() { - return subscription_ == null - ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() - : subscription_; + return subscription_ == null ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() : subscription_; } /** - * - * *
    * Required. The subscription to update. Its `name` field must be populated.
    * Topic field must not be populated.
    * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOrBuilder() { - return subscription_ == null - ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() - : subscription_; + return subscription_ == null ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() : subscription_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. A mask specifying the subscription fields to change.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -140,15 +100,11 @@ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Required. A mask specifying the subscription fields to change.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -156,14 +112,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. A mask specifying the subscription fields to change.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -171,7 +124,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +135,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getSubscription()); } @@ -200,10 +153,12 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubscription()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSubscription()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -213,21 +168,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest other = - (com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest) obj; + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest other = (com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest) obj; if (hasSubscription() != other.hasSubscription()) return false; if (hasSubscription()) { - if (!getSubscription().equals(other.getSubscription())) return false; + if (!getSubscription() + .equals(other.getSubscription())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -254,127 +210,119 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest prototype) { + public static Builder newBuilder(com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for UpdateSubscription.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.UpdateSubscriptionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.UpdateSubscriptionRequest) com.google.cloud.pubsublite.proto.UpdateSubscriptionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.class, - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.Builder.class); + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.class, com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.newBuilder() @@ -382,18 +330,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getSubscriptionFieldBuilder(); getUpdateMaskFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +360,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor; } @java.lang.Override @@ -433,11 +381,8 @@ public com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest buildPartial() { - com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest result = - new com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest result = new com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -446,12 +391,15 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.UpdateSubscriptionR int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.subscription_ = - subscriptionBuilder_ == null ? subscription_ : subscriptionBuilder_.build(); + result.subscription_ = subscriptionBuilder_ == null + ? subscription_ + : subscriptionBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -461,39 +409,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.UpdateSubscriptionR public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest)other); } else { super.mergeFrom(other); return this; @@ -501,8 +448,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest other) { - if (other == com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest.getDefaultInstance()) return this; if (other.hasSubscription()) { mergeSubscription(other.getSubscription()); } @@ -535,25 +481,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getSubscriptionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getSubscriptionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -563,66 +510,46 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.pubsublite.proto.Subscription subscription_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription, - com.google.cloud.pubsublite.proto.Subscription.Builder, - com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> - subscriptionBuilder_; + com.google.cloud.pubsublite.proto.Subscription, com.google.cloud.pubsublite.proto.Subscription.Builder, com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> subscriptionBuilder_; /** - * - * *
      * Required. The subscription to update. Its `name` field must be populated.
      * Topic field must not be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subscription field is set. */ public boolean hasSubscription() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The subscription to update. Its `name` field must be populated.
      * Topic field must not be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The subscription. */ public com.google.cloud.pubsublite.proto.Subscription getSubscription() { if (subscriptionBuilder_ == null) { - return subscription_ == null - ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() - : subscription_; + return subscription_ == null ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() : subscription_; } else { return subscriptionBuilder_.getMessage(); } } /** - * - * *
      * Required. The subscription to update. Its `name` field must be populated.
      * Topic field must not be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSubscription(com.google.cloud.pubsublite.proto.Subscription value) { if (subscriptionBuilder_ == null) { @@ -638,16 +565,12 @@ public Builder setSubscription(com.google.cloud.pubsublite.proto.Subscription va return this; } /** - * - * *
      * Required. The subscription to update. Its `name` field must be populated.
      * Topic field must not be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSubscription( com.google.cloud.pubsublite.proto.Subscription.Builder builderForValue) { @@ -661,23 +584,18 @@ public Builder setSubscription( return this; } /** - * - * *
      * Required. The subscription to update. Its `name` field must be populated.
      * Topic field must not be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSubscription(com.google.cloud.pubsublite.proto.Subscription value) { if (subscriptionBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && subscription_ != null - && subscription_ - != com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + subscription_ != null && + subscription_ != com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance()) { getSubscriptionBuilder().mergeFrom(value); } else { subscription_ = value; @@ -692,16 +610,12 @@ public Builder mergeSubscription(com.google.cloud.pubsublite.proto.Subscription return this; } /** - * - * *
      * Required. The subscription to update. Its `name` field must be populated.
      * Topic field must not be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSubscription() { bitField0_ = (bitField0_ & ~0x00000001); @@ -714,16 +628,12 @@ public Builder clearSubscription() { return this; } /** - * - * *
      * Required. The subscription to update. Its `name` field must be populated.
      * Topic field must not be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.Subscription.Builder getSubscriptionBuilder() { bitField0_ |= 0x00000001; @@ -731,50 +641,38 @@ public com.google.cloud.pubsublite.proto.Subscription.Builder getSubscriptionBui return getSubscriptionFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The subscription to update. Its `name` field must be populated.
      * Topic field must not be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOrBuilder() { if (subscriptionBuilder_ != null) { return subscriptionBuilder_.getMessageOrBuilder(); } else { - return subscription_ == null - ? com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() - : subscription_; + return subscription_ == null ? + com.google.cloud.pubsublite.proto.Subscription.getDefaultInstance() : subscription_; } } /** - * - * *
      * Required. The subscription to update. Its `name` field must be populated.
      * Topic field must not be populated.
      * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription, - com.google.cloud.pubsublite.proto.Subscription.Builder, - com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> + com.google.cloud.pubsublite.proto.Subscription, com.google.cloud.pubsublite.proto.Subscription.Builder, com.google.cloud.pubsublite.proto.SubscriptionOrBuilder> getSubscriptionFieldBuilder() { if (subscriptionBuilder_ == null) { - subscriptionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Subscription, - com.google.cloud.pubsublite.proto.Subscription.Builder, - com.google.cloud.pubsublite.proto.SubscriptionOrBuilder>( - getSubscription(), getParentForChildren(), isClean()); + subscriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Subscription, com.google.cloud.pubsublite.proto.Subscription.Builder, com.google.cloud.pubsublite.proto.SubscriptionOrBuilder>( + getSubscription(), + getParentForChildren(), + isClean()); subscription_ = null; } return subscriptionBuilder_; @@ -782,55 +680,39 @@ public com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOr private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. A mask specifying the subscription fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. A mask specifying the subscription fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. A mask specifying the subscription fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -846,16 +728,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A mask specifying the subscription fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -866,20 +746,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. A mask specifying the subscription fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -894,14 +771,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A mask specifying the subscription fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -914,14 +788,11 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. A mask specifying the subscription fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -929,53 +800,43 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A mask specifying the subscription fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. A mask specifying the subscription fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -985,12 +846,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.UpdateSubscriptionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.UpdateSubscriptionRequest) private static final com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest(); } @@ -999,27 +860,27 @@ public static com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSubscriptionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSubscriptionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1034,4 +895,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.pubsublite.proto.UpdateSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequestOrBuilder.java index 94a1931a7..9bfb106e0 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateSubscriptionRequestOrBuilder.java @@ -1,108 +1,67 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface UpdateSubscriptionRequestOrBuilder - extends +public interface UpdateSubscriptionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.UpdateSubscriptionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The subscription to update. Its `name` field must be populated.
    * Topic field must not be populated.
    * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subscription field is set. */ boolean hasSubscription(); /** - * - * *
    * Required. The subscription to update. Its `name` field must be populated.
    * Topic field must not be populated.
    * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The subscription. */ com.google.cloud.pubsublite.proto.Subscription getSubscription(); /** - * - * *
    * Required. The subscription to update. Its `name` field must be populated.
    * Topic field must not be populated.
    * 
* - * - * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.pubsublite.proto.SubscriptionOrBuilder getSubscriptionOrBuilder(); /** - * - * *
    * Required. A mask specifying the subscription fields to change.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. A mask specifying the subscription fields to change.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. A mask specifying the subscription fields to change.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequest.java similarity index 66% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequest.java index 85d67c7db..4fd5b7d44 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto @@ -20,60 +5,53 @@ package com.google.cloud.pubsublite.proto; /** - * - * *
  * Request for UpdateTopic.
  * 
* * Protobuf type {@code google.cloud.pubsublite.v1.UpdateTopicRequest} */ -public final class UpdateTopicRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateTopicRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.pubsublite.v1.UpdateTopicRequest) UpdateTopicRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateTopicRequest.newBuilder() to construct. private UpdateTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateTopicRequest() {} + private UpdateTopicRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateTopicRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.UpdateTopicRequest.class, - com.google.cloud.pubsublite.proto.UpdateTopicRequest.Builder.class); + com.google.cloud.pubsublite.proto.UpdateTopicRequest.class, com.google.cloud.pubsublite.proto.UpdateTopicRequest.Builder.class); } private int bitField0_; public static final int TOPIC_FIELD_NUMBER = 1; private com.google.cloud.pubsublite.proto.Topic topic_; /** - * - * *
    * Required. The topic to update. Its `name` field must be populated.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the topic field is set. */ @java.lang.Override @@ -81,15 +59,11 @@ public boolean hasTopic() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Required. The topic to update. Its `name` field must be populated.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The topic. */ @java.lang.Override @@ -97,14 +71,11 @@ public com.google.cloud.pubsublite.proto.Topic getTopic() { return topic_ == null ? com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() : topic_; } /** - * - * *
    * Required. The topic to update. Its `name` field must be populated.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() { @@ -114,15 +85,11 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. A mask specifying the topic fields to change.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -130,15 +97,11 @@ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Required. A mask specifying the topic fields to change.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -146,14 +109,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. A mask specifying the topic fields to change.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -161,7 +121,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,7 +132,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTopic()); } @@ -190,10 +150,12 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTopic()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTopic()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -203,21 +165,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.pubsublite.proto.UpdateTopicRequest)) { return super.equals(obj); } - com.google.cloud.pubsublite.proto.UpdateTopicRequest other = - (com.google.cloud.pubsublite.proto.UpdateTopicRequest) obj; + com.google.cloud.pubsublite.proto.UpdateTopicRequest other = (com.google.cloud.pubsublite.proto.UpdateTopicRequest) obj; if (hasTopic() != other.hasTopic()) return false; if (hasTopic()) { - if (!getTopic().equals(other.getTopic())) return false; + if (!getTopic() + .equals(other.getTopic())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -244,126 +207,119 @@ public int hashCode() { } public static com.google.cloud.pubsublite.proto.UpdateTopicRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.UpdateTopicRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.UpdateTopicRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.UpdateTopicRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.UpdateTopicRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.pubsublite.proto.UpdateTopicRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.pubsublite.proto.UpdateTopicRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.UpdateTopicRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.UpdateTopicRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.UpdateTopicRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.pubsublite.proto.UpdateTopicRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.pubsublite.proto.UpdateTopicRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.pubsublite.proto.UpdateTopicRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.pubsublite.proto.UpdateTopicRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.pubsublite.proto.UpdateTopicRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for UpdateTopic.
    * 
* * Protobuf type {@code google.cloud.pubsublite.v1.UpdateTopicRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.pubsublite.v1.UpdateTopicRequest) com.google.cloud.pubsublite.proto.UpdateTopicRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.pubsublite.proto.UpdateTopicRequest.class, - com.google.cloud.pubsublite.proto.UpdateTopicRequest.Builder.class); + com.google.cloud.pubsublite.proto.UpdateTopicRequest.class, com.google.cloud.pubsublite.proto.UpdateTopicRequest.Builder.class); } // Construct using com.google.cloud.pubsublite.proto.UpdateTopicRequest.newBuilder() @@ -371,18 +327,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getTopicFieldBuilder(); getUpdateMaskFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -401,9 +357,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.pubsublite.proto.AdminProto - .internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.pubsublite.proto.AdminProto.internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor; } @java.lang.Override @@ -422,11 +378,8 @@ public com.google.cloud.pubsublite.proto.UpdateTopicRequest build() { @java.lang.Override public com.google.cloud.pubsublite.proto.UpdateTopicRequest buildPartial() { - com.google.cloud.pubsublite.proto.UpdateTopicRequest result = - new com.google.cloud.pubsublite.proto.UpdateTopicRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.pubsublite.proto.UpdateTopicRequest result = new com.google.cloud.pubsublite.proto.UpdateTopicRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -435,11 +388,15 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.UpdateTopicRequest int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.topic_ = topicBuilder_ == null ? topic_ : topicBuilder_.build(); + result.topic_ = topicBuilder_ == null + ? topic_ + : topicBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -449,39 +406,38 @@ private void buildPartial0(com.google.cloud.pubsublite.proto.UpdateTopicRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.pubsublite.proto.UpdateTopicRequest) { - return mergeFrom((com.google.cloud.pubsublite.proto.UpdateTopicRequest) other); + return mergeFrom((com.google.cloud.pubsublite.proto.UpdateTopicRequest)other); } else { super.mergeFrom(other); return this; @@ -489,8 +445,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.pubsublite.proto.UpdateTopicRequest other) { - if (other == com.google.cloud.pubsublite.proto.UpdateTopicRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.pubsublite.proto.UpdateTopicRequest.getDefaultInstance()) return this; if (other.hasTopic()) { mergeTopic(other.getTopic()); } @@ -523,25 +478,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getTopicFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getTopicFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -551,60 +507,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.pubsublite.proto.Topic topic_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic, - com.google.cloud.pubsublite.proto.Topic.Builder, - com.google.cloud.pubsublite.proto.TopicOrBuilder> - topicBuilder_; + com.google.cloud.pubsublite.proto.Topic, com.google.cloud.pubsublite.proto.Topic.Builder, com.google.cloud.pubsublite.proto.TopicOrBuilder> topicBuilder_; /** - * - * *
      * Required. The topic to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the topic field is set. */ public boolean hasTopic() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The topic to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The topic. */ public com.google.cloud.pubsublite.proto.Topic getTopic() { if (topicBuilder_ == null) { - return topic_ == null - ? com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() - : topic_; + return topic_ == null ? com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() : topic_; } else { return topicBuilder_.getMessage(); } } /** - * - * *
      * Required. The topic to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTopic(com.google.cloud.pubsublite.proto.Topic value) { if (topicBuilder_ == null) { @@ -620,16 +559,14 @@ public Builder setTopic(com.google.cloud.pubsublite.proto.Topic value) { return this; } /** - * - * *
      * Required. The topic to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setTopic(com.google.cloud.pubsublite.proto.Topic.Builder builderForValue) { + public Builder setTopic( + com.google.cloud.pubsublite.proto.Topic.Builder builderForValue) { if (topicBuilder_ == null) { topic_ = builderForValue.build(); } else { @@ -640,20 +577,17 @@ public Builder setTopic(com.google.cloud.pubsublite.proto.Topic.Builder builderF return this; } /** - * - * *
      * Required. The topic to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeTopic(com.google.cloud.pubsublite.proto.Topic value) { if (topicBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && topic_ != null - && topic_ != com.google.cloud.pubsublite.proto.Topic.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + topic_ != null && + topic_ != com.google.cloud.pubsublite.proto.Topic.getDefaultInstance()) { getTopicBuilder().mergeFrom(value); } else { topic_ = value; @@ -668,14 +602,11 @@ public Builder mergeTopic(com.google.cloud.pubsublite.proto.Topic value) { return this; } /** - * - * *
      * Required. The topic to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearTopic() { bitField0_ = (bitField0_ & ~0x00000001); @@ -688,14 +619,11 @@ public Builder clearTopic() { return this; } /** - * - * *
      * Required. The topic to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.Topic.Builder getTopicBuilder() { bitField0_ |= 0x00000001; @@ -703,46 +631,36 @@ public com.google.cloud.pubsublite.proto.Topic.Builder getTopicBuilder() { return getTopicFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The topic to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() { if (topicBuilder_ != null) { return topicBuilder_.getMessageOrBuilder(); } else { - return topic_ == null - ? com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() - : topic_; + return topic_ == null ? + com.google.cloud.pubsublite.proto.Topic.getDefaultInstance() : topic_; } } /** - * - * *
      * Required. The topic to update. Its `name` field must be populated.
      * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic, - com.google.cloud.pubsublite.proto.Topic.Builder, - com.google.cloud.pubsublite.proto.TopicOrBuilder> + com.google.cloud.pubsublite.proto.Topic, com.google.cloud.pubsublite.proto.Topic.Builder, com.google.cloud.pubsublite.proto.TopicOrBuilder> getTopicFieldBuilder() { if (topicBuilder_ == null) { - topicBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.pubsublite.proto.Topic, - com.google.cloud.pubsublite.proto.Topic.Builder, - com.google.cloud.pubsublite.proto.TopicOrBuilder>( - getTopic(), getParentForChildren(), isClean()); + topicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.pubsublite.proto.Topic, com.google.cloud.pubsublite.proto.Topic.Builder, com.google.cloud.pubsublite.proto.TopicOrBuilder>( + getTopic(), + getParentForChildren(), + isClean()); topic_ = null; } return topicBuilder_; @@ -750,55 +668,39 @@ public com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. A mask specifying the topic fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. A mask specifying the topic fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. A mask specifying the topic fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -814,16 +716,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A mask specifying the topic fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -834,20 +734,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. A mask specifying the topic fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -862,14 +759,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. A mask specifying the topic fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -882,14 +776,11 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. A mask specifying the topic fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -897,53 +788,43 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A mask specifying the topic fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. A mask specifying the topic fields to change.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -953,12 +834,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.pubsublite.v1.UpdateTopicRequest) } // @@protoc_insertion_point(class_scope:google.cloud.pubsublite.v1.UpdateTopicRequest) private static final com.google.cloud.pubsublite.proto.UpdateTopicRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.pubsublite.proto.UpdateTopicRequest(); } @@ -967,27 +848,27 @@ public static com.google.cloud.pubsublite.proto.UpdateTopicRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateTopicRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateTopicRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1002,4 +883,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.pubsublite.proto.UpdateTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequestOrBuilder.java index 1d8762ea8..009283b1e 100644 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/UpdateTopicRequestOrBuilder.java @@ -1,102 +1,64 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/pubsublite/v1/admin.proto // Protobuf Java Version: 3.25.2 package com.google.cloud.pubsublite.proto; -public interface UpdateTopicRequestOrBuilder - extends +public interface UpdateTopicRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.UpdateTopicRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The topic to update. Its `name` field must be populated.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the topic field is set. */ boolean hasTopic(); /** - * - * *
    * Required. The topic to update. Its `name` field must be populated.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The topic. */ com.google.cloud.pubsublite.proto.Topic getTopic(); /** - * - * *
    * Required. The topic to update. Its `name` field must be populated.
    * 
* - * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.pubsublite.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.pubsublite.proto.TopicOrBuilder getTopicOrBuilder(); /** - * - * *
    * Required. A mask specifying the topic fields to change.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. A mask specifying the topic fields to change.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. A mask specifying the topic fields to change.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/admin.proto b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/admin.proto similarity index 100% rename from proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/admin.proto rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/admin.proto diff --git a/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/common.proto b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/common.proto similarity index 100% rename from proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/common.proto rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/common.proto diff --git a/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/cursor.proto b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/cursor.proto similarity index 100% rename from proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/cursor.proto rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/cursor.proto diff --git a/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/publisher.proto b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/publisher.proto similarity index 100% rename from proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/publisher.proto rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/publisher.proto diff --git a/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/subscriber.proto b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/subscriber.proto similarity index 100% rename from proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/subscriber.proto rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/subscriber.proto diff --git a/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/topic_stats.proto b/owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/topic_stats.proto similarity index 100% rename from proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/topic_stats.proto rename to owl-bot-staging/v1/proto-google-cloud-pubsublite-v1/src/main/proto/google/cloud/pubsublite/v1/topic_stats.proto diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/AsyncCreateReservation.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/AsyncCreateReservation.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/AsyncCreateReservation.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/AsyncCreateReservation.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservation.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservation.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservation.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservation.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationLocationnameReservationString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationLocationnameReservationString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationLocationnameReservationString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationLocationnameReservationString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationStringReservationString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationStringReservationString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationStringReservationString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createreservation/SyncCreateReservationStringReservationString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/AsyncCreateSubscription.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/AsyncCreateSubscription.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/AsyncCreateSubscription.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/AsyncCreateSubscription.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscription.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscription.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscription.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscription.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionLocationnameSubscriptionString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionLocationnameSubscriptionString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionLocationnameSubscriptionString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionLocationnameSubscriptionString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionStringSubscriptionString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionStringSubscriptionString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionStringSubscriptionString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createsubscription/SyncCreateSubscriptionStringSubscriptionString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/AsyncCreateTopic.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/AsyncCreateTopic.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/AsyncCreateTopic.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/AsyncCreateTopic.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopic.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopic.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopic.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopic.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicLocationnameTopicString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicLocationnameTopicString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicLocationnameTopicString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicLocationnameTopicString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicStringTopicString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicStringTopicString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicStringTopicString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/createtopic/SyncCreateTopicStringTopicString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/AsyncDeleteReservation.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/AsyncDeleteReservation.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/AsyncDeleteReservation.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/AsyncDeleteReservation.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservation.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservation.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservation.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservation.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationReservationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationReservationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationReservationname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationReservationname.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletereservation/SyncDeleteReservationString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/AsyncDeleteSubscription.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/AsyncDeleteSubscription.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/AsyncDeleteSubscription.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/AsyncDeleteSubscription.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscription.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscription.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscription.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscription.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionSubscriptionname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionSubscriptionname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionSubscriptionname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletesubscription/SyncDeleteSubscriptionSubscriptionname.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/AsyncDeleteTopic.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/AsyncDeleteTopic.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/AsyncDeleteTopic.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/AsyncDeleteTopic.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopic.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopic.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopic.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopic.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicTopicname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicTopicname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicTopicname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/deletetopic/SyncDeleteTopicTopicname.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/AsyncGetReservation.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/AsyncGetReservation.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/AsyncGetReservation.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/AsyncGetReservation.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservation.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservation.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservation.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservation.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationReservationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationReservationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationReservationname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationReservationname.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getreservation/SyncGetReservationString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/AsyncGetSubscription.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/AsyncGetSubscription.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/AsyncGetSubscription.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/AsyncGetSubscription.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscription.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscription.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscription.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscription.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionSubscriptionname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionSubscriptionname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionSubscriptionname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/getsubscription/SyncGetSubscriptionSubscriptionname.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/AsyncGetTopic.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/AsyncGetTopic.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/AsyncGetTopic.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/AsyncGetTopic.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopic.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopic.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopic.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopic.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicTopicname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicTopicname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicTopicname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopic/SyncGetTopicTopicname.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/AsyncGetTopicPartitions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/AsyncGetTopicPartitions.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/AsyncGetTopicPartitions.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/AsyncGetTopicPartitions.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitions.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitions.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitions.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsTopicname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsTopicname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsTopicname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/gettopicpartitions/SyncGetTopicPartitionsTopicname.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservations.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservations.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservations.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservations.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservationsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservationsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservationsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/AsyncListReservationsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservations.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservations.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservations.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservations.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsLocationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsLocationname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservations/SyncListReservationsString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopics.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopics.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopics.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopics.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopicsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopicsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopicsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/AsyncListReservationTopicsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopics.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopics.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopics.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopics.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsReservationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsReservationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsReservationname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsReservationname.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listreservationtopics/SyncListReservationTopicsString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptions.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptions.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptions.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptionsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptionsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptionsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/AsyncListSubscriptionsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptions.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptions.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptions.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsLocationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsLocationname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listsubscriptions/SyncListSubscriptionsString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopics.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopics.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopics.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopics.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopicsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopicsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopicsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/AsyncListTopicsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopics.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopics.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopics.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopics.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsLocationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsLocationname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopics/SyncListTopicsString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptions.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptions.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptions.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptionsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptionsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptionsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/AsyncListTopicSubscriptionsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptions.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptions.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptions.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsTopicname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsTopicname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsTopicname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/listtopicsubscriptions/SyncListTopicSubscriptionsTopicname.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscription.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscription.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscription.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscription.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscriptionLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscriptionLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscriptionLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/AsyncSeekSubscriptionLRO.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/SyncSeekSubscription.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/SyncSeekSubscription.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/SyncSeekSubscription.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/seeksubscription/SyncSeekSubscription.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/AsyncUpdateReservation.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/AsyncUpdateReservation.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/AsyncUpdateReservation.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/AsyncUpdateReservation.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservation.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservation.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservation.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservation.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservationReservationFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservationReservationFieldmask.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservationReservationFieldmask.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatereservation/SyncUpdateReservationReservationFieldmask.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/AsyncUpdateSubscription.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/AsyncUpdateSubscription.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/AsyncUpdateSubscription.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/AsyncUpdateSubscription.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscription.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscription.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscription.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscription.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscriptionSubscriptionFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscriptionSubscriptionFieldmask.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscriptionSubscriptionFieldmask.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatesubscription/SyncUpdateSubscriptionSubscriptionFieldmask.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/AsyncUpdateTopic.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/AsyncUpdateTopic.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/AsyncUpdateTopic.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/AsyncUpdateTopic.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopic.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopic.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopic.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopic.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopicTopicFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopicTopicFieldmask.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopicTopicFieldmask.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservice/updatetopic/SyncUpdateTopicTopicFieldmask.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservicesettings/createtopic/SyncCreateTopic.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservicesettings/createtopic/SyncCreateTopic.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservicesettings/createtopic/SyncCreateTopic.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/adminservicesettings/createtopic/SyncCreateTopic.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/AsyncCommitCursor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/AsyncCommitCursor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/AsyncCommitCursor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/AsyncCommitCursor.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/SyncCommitCursor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/SyncCommitCursor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/SyncCommitCursor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/commitcursor/SyncCommitCursor.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursors.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursors.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursors.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursors.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursorsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursorsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursorsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/AsyncListPartitionCursorsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursors.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursors.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursors.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursors.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsString.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsSubscriptionname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsSubscriptionname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsSubscriptionname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/listpartitioncursors/SyncListPartitionCursorsSubscriptionname.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/streamingcommitcursor/AsyncStreamingCommitCursor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/streamingcommitcursor/AsyncStreamingCommitCursor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/streamingcommitcursor/AsyncStreamingCommitCursor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservice/streamingcommitcursor/AsyncStreamingCommitCursor.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservicesettings/commitcursor/SyncCommitCursor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservicesettings/commitcursor/SyncCommitCursor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservicesettings/commitcursor/SyncCommitCursor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/cursorservicesettings/commitcursor/SyncCommitCursor.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/assignpartitions/AsyncAssignPartitions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/assignpartitions/AsyncAssignPartitions.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/assignpartitions/AsyncAssignPartitions.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/assignpartitions/AsyncAssignPartitions.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservice/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservicesettings/assignpartitions/SyncAssignPartitions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservicesettings/assignpartitions/SyncAssignPartitions.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservicesettings/assignpartitions/SyncAssignPartitions.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/partitionassignmentservicesettings/assignpartitions/SyncAssignPartitions.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/publish/AsyncPublish.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/publish/AsyncPublish.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/publish/AsyncPublish.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservice/publish/AsyncPublish.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservicesettings/publish/SyncPublish.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservicesettings/publish/SyncPublish.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservicesettings/publish/SyncPublish.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/publisherservicesettings/publish/SyncPublish.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/adminservicestubsettings/createtopic/SyncCreateTopic.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/adminservicestubsettings/createtopic/SyncCreateTopic.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/adminservicestubsettings/createtopic/SyncCreateTopic.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/adminservicestubsettings/createtopic/SyncCreateTopic.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/cursorservicestubsettings/commitcursor/SyncCommitCursor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/cursorservicestubsettings/commitcursor/SyncCommitCursor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/cursorservicestubsettings/commitcursor/SyncCommitCursor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/cursorservicestubsettings/commitcursor/SyncCommitCursor.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/partitionassignmentservicestubsettings/assignpartitions/SyncAssignPartitions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/partitionassignmentservicestubsettings/assignpartitions/SyncAssignPartitions.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/partitionassignmentservicestubsettings/assignpartitions/SyncAssignPartitions.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/partitionassignmentservicestubsettings/assignpartitions/SyncAssignPartitions.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/publisherservicestubsettings/publish/SyncPublish.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/publisherservicestubsettings/publish/SyncPublish.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/publisherservicestubsettings/publish/SyncPublish.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/publisherservicestubsettings/publish/SyncPublish.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/subscriberservicestubsettings/subscribe/SyncSubscribe.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/subscriberservicestubsettings/subscribe/SyncSubscribe.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/subscriberservicestubsettings/subscribe/SyncSubscribe.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/subscriberservicestubsettings/subscribe/SyncSubscribe.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/topicstatsservicestubsettings/computemessagestats/SyncComputeMessageStats.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/topicstatsservicestubsettings/computemessagestats/SyncComputeMessageStats.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/topicstatsservicestubsettings/computemessagestats/SyncComputeMessageStats.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/stub/topicstatsservicestubsettings/computemessagestats/SyncComputeMessageStats.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/subscribe/AsyncSubscribe.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/subscribe/AsyncSubscribe.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/subscribe/AsyncSubscribe.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservice/subscribe/AsyncSubscribe.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservicesettings/subscribe/SyncSubscribe.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservicesettings/subscribe/SyncSubscribe.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservicesettings/subscribe/SyncSubscribe.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/subscriberservicesettings/subscribe/SyncSubscribe.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/AsyncComputeHeadCursor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/AsyncComputeHeadCursor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/AsyncComputeHeadCursor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/AsyncComputeHeadCursor.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/SyncComputeHeadCursor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/SyncComputeHeadCursor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/SyncComputeHeadCursor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computeheadcursor/SyncComputeHeadCursor.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/AsyncComputeMessageStats.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/AsyncComputeMessageStats.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/AsyncComputeMessageStats.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/AsyncComputeMessageStats.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/SyncComputeMessageStats.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/SyncComputeMessageStats.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/SyncComputeMessageStats.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computemessagestats/SyncComputeMessageStats.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/AsyncComputeTimeCursor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/AsyncComputeTimeCursor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/AsyncComputeTimeCursor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/AsyncComputeTimeCursor.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/SyncComputeTimeCursor.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/SyncComputeTimeCursor.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/SyncComputeTimeCursor.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/computetimecursor/SyncComputeTimeCursor.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservice/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservicesettings/computemessagestats/SyncComputeMessageStats.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservicesettings/computemessagestats/SyncComputeMessageStats.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservicesettings/computemessagestats/SyncComputeMessageStats.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/pubsublite/v1/topicstatsservicesettings/computemessagestats/SyncComputeMessageStats.java diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java deleted file mode 100644 index e2c6a6fc5..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/AdminProto.java +++ /dev/null @@ -1,593 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.pubsublite.proto; - -public final class AdminProto { - private AdminProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n&google/cloud/pubsublite/v1/admin.proto" - + "\022\032google.cloud.pubsublite.v1\032\034google/api" - + "/annotations.proto\032\027google/api/client.pr" - + "oto\032\037google/api/field_behavior.proto\032\031go" - + "ogle/api/resource.proto\032\'google/cloud/pu" - + "bsublite/v1/common.proto\032#google/longrun" - + "ning/operations.proto\032\033google/protobuf/e" - + "mpty.proto\032 google/protobuf/field_mask.p" - + "roto\032\037google/protobuf/timestamp.proto\"\235\001" - + "\n\022CreateTopicRequest\0229\n\006parent\030\001 \001(\tB)\340A" - + "\002\372A#\n!locations.googleapis.com/Location\022" - + "5\n\005topic\030\002 \001(\0132!.google.cloud.pubsublite" - + ".v1.TopicB\003\340A\002\022\025\n\010topic_id\030\003 \001(\tB\003\340A\002\"H\n" - + "\017GetTopicRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037" - + "pubsublite.googleapis.com/Topic\"R\n\031GetTo" - + "picPartitionsRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372" - + "A!\n\037pubsublite.googleapis.com/Topic\"*\n\017T" - + "opicPartitions\022\027\n\017partition_count\030\001 \001(\003\"" - + "u\n\021ListTopicsRequest\0229\n\006parent\030\001 \001(\tB)\340A" - + "\002\372A#\n!locations.googleapis.com/Location\022" - + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"`" - + "\n\022ListTopicsResponse\0221\n\006topics\030\001 \003(\0132!.g" - + "oogle.cloud.pubsublite.v1.Topic\022\027\n\017next_" - + "page_token\030\002 \001(\t\"\201\001\n\022UpdateTopicRequest\022" - + "5\n\005topic\030\001 \001(\0132!.google.cloud.pubsublite" - + ".v1.TopicB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.go" - + "ogle.protobuf.FieldMaskB\003\340A\002\"K\n\022DeleteTo" - + "picRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037pubsub" - + "lite.googleapis.com/Topic\"}\n\035ListTopicSu" - + "bscriptionsRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!" - + "\n\037pubsublite.googleapis.com/Topic\022\021\n\tpag" - + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"P\n\036List" - + "TopicSubscriptionsResponse\022\025\n\rsubscripti" - + "ons\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"\317\001\n\031C" - + "reateSubscriptionRequest\0229\n\006parent\030\001 \001(\t" - + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" - + "ion\022C\n\014subscription\030\002 \001(\0132(.google.cloud" - + ".pubsublite.v1.SubscriptionB\003\340A\002\022\034\n\017subs" - + "cription_id\030\003 \001(\tB\003\340A\002\022\024\n\014skip_backlog\030\004" - + " \001(\010\"V\n\026GetSubscriptionRequest\022<\n\004name\030\001" - + " \001(\tB.\340A\002\372A(\n&pubsublite.googleapis.com/" - + "Subscription\"|\n\030ListSubscriptionsRequest" - + "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goog" - + "leapis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022" - + "\n\npage_token\030\003 \001(\t\"u\n\031ListSubscriptionsR" - + "esponse\022?\n\rsubscriptions\030\001 \003(\0132(.google." - + "cloud.pubsublite.v1.Subscription\022\027\n\017next" - + "_page_token\030\002 \001(\t\"\226\001\n\031UpdateSubscription" - + "Request\022C\n\014subscription\030\001 \001(\0132(.google.c" - + "loud.pubsublite.v1.SubscriptionB\003\340A\002\0224\n\013" - + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" - + "dMaskB\003\340A\002\"Y\n\031DeleteSubscriptionRequest\022" - + "<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&pubsublite.google" - + "apis.com/Subscription\"\272\002\n\027SeekSubscripti" - + "onRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&pubsubl" - + "ite.googleapis.com/Subscription\022W\n\014named" - + "_target\030\002 \001(\0162?.google.cloud.pubsublite." - + "v1.SeekSubscriptionRequest.NamedTargetH\000" - + "\022=\n\013time_target\030\003 \001(\0132&.google.cloud.pub" - + "sublite.v1.TimeTargetH\000\"?\n\013NamedTarget\022\034" - + "\n\030NAMED_TARGET_UNSPECIFIED\020\000\022\010\n\004TAIL\020\001\022\010" - + "\n\004HEAD\020\002B\010\n\006target\"\032\n\030SeekSubscriptionRe" - + "sponse\"\220\001\n\021OperationMetadata\022/\n\013create_t" - + "ime\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n" - + "\010end_time\030\002 \001(\0132\032.google.protobuf.Timest" - + "amp\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t\"\265\001\n\030Cr" - + "eateReservationRequest\0229\n\006parent\030\001 \001(\tB)" - + "\340A\002\372A#\n!locations.googleapis.com/Locatio" - + "n\022A\n\013reservation\030\002 \001(\0132\'.google.cloud.pu" - + "bsublite.v1.ReservationB\003\340A\002\022\033\n\016reservat" - + "ion_id\030\003 \001(\tB\003\340A\002\"T\n\025GetReservationReque" - + "st\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%pubsublite.goo" - + "gleapis.com/Reservation\"{\n\027ListReservati" - + "onsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loca" - + "tions.googleapis.com/Location\022\021\n\tpage_si" - + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"r\n\030ListRese" - + "rvationsResponse\022=\n\014reservations\030\001 \003(\0132\'" - + ".google.cloud.pubsublite.v1.Reservation\022" - + "\027\n\017next_page_token\030\002 \001(\t\"\223\001\n\030UpdateReser" - + "vationRequest\022A\n\013reservation\030\001 \001(\0132\'.goo" - + "gle.cloud.pubsublite.v1.ReservationB\003\340A\002" - + "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." - + "FieldMaskB\003\340A\002\"W\n\030DeleteReservationReque" - + "st\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%pubsublite.goo" - + "gleapis.com/Reservation\"\202\001\n\034ListReservat" - + "ionTopicsRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%" - + "pubsublite.googleapis.com/Reservation\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"H\n\035" - + "ListReservationTopicsResponse\022\016\n\006topics\030" - + "\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t2\257\036\n\014Admin" - + "Service\022\271\001\n\013CreateTopic\022..google.cloud.p" - + "ubsublite.v1.CreateTopicRequest\032!.google" - + ".cloud.pubsublite.v1.Topic\"W\332A\025parent,to" - + "pic,topic_id\202\323\344\223\0029\"0/v1/admin/{parent=pr" - + "ojects/*/locations/*}/topics:\005topic\022\233\001\n\010" - + "GetTopic\022+.google.cloud.pubsublite.v1.Ge" - + "tTopicRequest\032!.google.cloud.pubsublite." - + "v1.Topic\"?\332A\004name\202\323\344\223\0022\0220/v1/admin/{name" - + "=projects/*/locations/*/topics/*}\022\304\001\n\022Ge" - + "tTopicPartitions\0225.google.cloud.pubsubli" - + "te.v1.GetTopicPartitionsRequest\032+.google" - + ".cloud.pubsublite.v1.TopicPartitions\"J\332A" - + "\004name\202\323\344\223\002=\022;/v1/admin/{name=projects/*/" - + "locations/*/topics/*}/partitions\022\256\001\n\nLis" - + "tTopics\022-.google.cloud.pubsublite.v1.Lis" - + "tTopicsRequest\032..google.cloud.pubsublite" - + ".v1.ListTopicsResponse\"A\332A\006parent\202\323\344\223\0022\022" - + "0/v1/admin/{parent=projects/*/locations/" - + "*}/topics\022\273\001\n\013UpdateTopic\022..google.cloud" - + ".pubsublite.v1.UpdateTopicRequest\032!.goog" - + "le.cloud.pubsublite.v1.Topic\"Y\332A\021topic,u" - + "pdate_mask\202\323\344\223\002?26/v1/admin/{topic.name=" - + "projects/*/locations/*/topics/*}:\005topic\022" - + "\226\001\n\013DeleteTopic\022..google.cloud.pubsublit" - + "e.v1.DeleteTopicRequest\032\026.google.protobu" - + "f.Empty\"?\332A\004name\202\323\344\223\0022*0/v1/admin/{name=" - + "projects/*/locations/*/topics/*}\022\336\001\n\026Lis" - + "tTopicSubscriptions\0229.google.cloud.pubsu" - + "blite.v1.ListTopicSubscriptionsRequest\032:" - + ".google.cloud.pubsublite.v1.ListTopicSub" - + "scriptionsResponse\"M\332A\004name\202\323\344\223\002@\022>/v1/a" - + "dmin/{name=projects/*/locations/*/topics" - + "/*}/subscriptions\022\352\001\n\022CreateSubscription" - + "\0225.google.cloud.pubsublite.v1.CreateSubs" - + "criptionRequest\032(.google.cloud.pubsublit" - + "e.v1.Subscription\"s\332A#parent,subscriptio" - + "n,subscription_id\202\323\344\223\002G\"7/v1/admin/{pare" - + "nt=projects/*/locations/*}/subscriptions" - + ":\014subscription\022\267\001\n\017GetSubscription\0222.goo" - + "gle.cloud.pubsublite.v1.GetSubscriptionR" - + "equest\032(.google.cloud.pubsublite.v1.Subs" - + "cription\"F\332A\004name\202\323\344\223\0029\0227/v1/admin/{name" - + "=projects/*/locations/*/subscriptions/*}" - + "\022\312\001\n\021ListSubscriptions\0224.google.cloud.pu" - + "bsublite.v1.ListSubscriptionsRequest\0325.g" - + "oogle.cloud.pubsublite.v1.ListSubscripti" - + "onsResponse\"H\332A\006parent\202\323\344\223\0029\0227/v1/admin/" - + "{parent=projects/*/locations/*}/subscrip" - + "tions\022\354\001\n\022UpdateSubscription\0225.google.cl" - + "oud.pubsublite.v1.UpdateSubscriptionRequ" - + "est\032(.google.cloud.pubsublite.v1.Subscri" - + "ption\"u\332A\030subscription,update_mask\202\323\344\223\002T" - + "2D/v1/admin/{subscription.name=projects/" - + "*/locations/*/subscriptions/*}:\014subscrip" - + "tion\022\253\001\n\022DeleteSubscription\0225.google.clo" - + "ud.pubsublite.v1.DeleteSubscriptionReque" - + "st\032\026.google.protobuf.Empty\"F\332A\004name\202\323\344\223\002" - + "9*7/v1/admin/{name=projects/*/locations/" - + "*/subscriptions/*}\022\337\001\n\020SeekSubscription\022" - + "3.google.cloud.pubsublite.v1.SeekSubscri" - + "ptionRequest\032\035.google.longrunning.Operat" - + "ion\"w\312A-\n\030SeekSubscriptionResponse\022\021Oper" - + "ationMetadata\202\323\344\223\002A\"cloud.google.com/go/pubsub" - + "lite/apiv1/pubsublitepb;pubsublitepb\252\002\032G" - + "oogle.Cloud.PubSubLite.V1\312\002\032Google\\Cloud" - + "\\PubSubLite\\V1\352\002\035Google::Cloud::PubSubLi" - + "te::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_CreateTopicRequest_descriptor, - new java.lang.String[] { - "Parent", "Topic", "TopicId", - }); - internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_pubsublite_v1_GetTopicRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_GetTopicRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_GetTopicPartitionsRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_pubsublite_v1_TopicPartitions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_TopicPartitions_descriptor, - new java.lang.String[] { - "PartitionCount", - }); - internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListTopicsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListTopicsResponse_descriptor, - new java.lang.String[] { - "Topics", "NextPageToken", - }); - internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_UpdateTopicRequest_descriptor, - new java.lang.String[] { - "Topic", "UpdateMask", - }); - internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_DeleteTopicRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsRequest_descriptor, - new java.lang.String[] { - "Name", "PageSize", "PageToken", - }); - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListTopicSubscriptionsResponse_descriptor, - new java.lang.String[] { - "Subscriptions", "NextPageToken", - }); - internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_CreateSubscriptionRequest_descriptor, - new java.lang.String[] { - "Parent", "Subscription", "SubscriptionId", "SkipBacklog", - }); - internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_GetSubscriptionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListSubscriptionsResponse_descriptor, - new java.lang.String[] { - "Subscriptions", "NextPageToken", - }); - internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_UpdateSubscriptionRequest_descriptor, - new java.lang.String[] { - "Subscription", "UpdateMask", - }); - internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_DeleteSubscriptionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionRequest_descriptor, - new java.lang.String[] { - "Name", "NamedTarget", "TimeTarget", "Target", - }); - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SeekSubscriptionResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_pubsublite_v1_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", "EndTime", "Target", "Verb", - }); - internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_CreateReservationRequest_descriptor, - new java.lang.String[] { - "Parent", "Reservation", "ReservationId", - }); - internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_pubsublite_v1_GetReservationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_GetReservationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListReservationsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListReservationsResponse_descriptor, - new java.lang.String[] { - "Reservations", "NextPageToken", - }); - internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_UpdateReservationRequest_descriptor, - new java.lang.String[] { - "Reservation", "UpdateMask", - }); - internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_DeleteReservationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsRequest_descriptor, - new java.lang.String[] { - "Name", "PageSize", "PageToken", - }); - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListReservationTopicsResponse_descriptor, - new java.lang.String[] { - "Topics", "NextPageToken", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.java deleted file mode 100644 index 77236fabf..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommitCursorResponseOrBuilder.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/cursor.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.pubsublite.proto; - -public interface CommitCursorResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.CommitCursorResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommonProto.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommonProto.java deleted file mode 100644 index 00903c66a..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CommonProto.java +++ /dev/null @@ -1,334 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/common.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.pubsublite.proto; - -public final class CommonProto { - private CommonProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Cursor_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Reservation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Topic_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Subscription_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_TimeTarget_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n\'google/cloud/pubsublite/v1/common.prot" - + "o\022\032google.cloud.pubsublite.v1\032\037google/ap" - + "i/field_behavior.proto\032\031google/api/resou" - + "rce.proto\032\036google/protobuf/duration.prot" - + "o\032\037google/protobuf/timestamp.proto\"!\n\017At" - + "tributeValues\022\016\n\006values\030\001 \003(\014\"\211\002\n\rPubSub" - + "Message\022\013\n\003key\030\001 \001(\014\022\014\n\004data\030\002 \001(\014\022M\n\nat" - + "tributes\030\003 \003(\01329.google.cloud.pubsublite" - + ".v1.PubSubMessage.AttributesEntry\022.\n\neve" - + "nt_time\030\004 \001(\0132\032.google.protobuf.Timestam" - + "p\032^\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022:\n\005val" - + "ue\030\002 \001(\0132+.google.cloud.pubsublite.v1.At" - + "tributeValues:\0028\001\"\030\n\006Cursor\022\016\n\006offset\030\001 " - + "\001(\003\"\310\001\n\020SequencedMessage\0222\n\006cursor\030\001 \001(\013" - + "2\".google.cloud.pubsublite.v1.Cursor\0220\n\014" - + "publish_time\030\002 \001(\0132\032.google.protobuf.Tim" - + "estamp\022:\n\007message\030\003 \001(\0132).google.cloud.p" - + "ubsublite.v1.PubSubMessage\022\022\n\nsize_bytes" - + "\030\004 \001(\003\"\250\001\n\013Reservation\022\014\n\004name\030\001 \001(\t\022\033\n\023" - + "throughput_capacity\030\002 \001(\003:n\352Ak\n%pubsubli" - + "te.googleapis.com/Reservation\022Bprojects/" - + "{project}/locations/{location}/reservati" - + "ons/{reservation}\"\367\005\n\005Topic\022\014\n\004name\030\001 \001(" - + "\t\022K\n\020partition_config\030\002 \001(\01321.google.clo" - + "ud.pubsublite.v1.Topic.PartitionConfig\022K" - + "\n\020retention_config\030\003 \001(\01321.google.cloud." - + "pubsublite.v1.Topic.RetentionConfig\022O\n\022r" - + "eservation_config\030\004 \001(\01323.google.cloud.p" - + "ubsublite.v1.Topic.ReservationConfig\032\332\001\n" - + "\017PartitionConfig\022\r\n\005count\030\001 \001(\003\022\023\n\005scale" - + "\030\002 \001(\005B\002\030\001H\000\022N\n\010capacity\030\003 \001(\0132:.google." - + "cloud.pubsublite.v1.Topic.PartitionConfi" - + "g.CapacityH\000\032F\n\010Capacity\022\033\n\023publish_mib_" - + "per_sec\030\001 \001(\005\022\035\n\025subscribe_mib_per_sec\030\002" - + " \001(\005B\013\n\tdimension\032Y\n\017RetentionConfig\022\033\n\023" - + "per_partition_bytes\030\001 \001(\003\022)\n\006period\030\002 \001(" - + "\0132\031.google.protobuf.Duration\032_\n\021Reservat" - + "ionConfig\022J\n\026throughput_reservation\030\001 \001(" - + "\tB*\372A\'\n%pubsublite.googleapis.com/Reserv" - + "ation:\\\352AY\n\037pubsublite.googleapis.com/To" - + "pic\0226projects/{project}/locations/{locat" - + "ion}/topics/{topic}\"\305\004\n\014Subscription\022\014\n\004" - + "name\030\001 \001(\t\0223\n\005topic\030\002 \001(\tB$\372A!\n\037pubsubli" - + "te.googleapis.com/Topic\022P\n\017delivery_conf" - + "ig\030\003 \001(\01327.google.cloud.pubsublite.v1.Su" - + "bscription.DeliveryConfig\022?\n\rexport_conf" - + "ig\030\004 \001(\0132(.google.cloud.pubsublite.v1.Ex" - + "portConfig\032\353\001\n\016DeliveryConfig\022i\n\024deliver" - + "y_requirement\030\003 \001(\0162K.google.cloud.pubsu" - + "blite.v1.Subscription.DeliveryConfig.Del" - + "iveryRequirement\"n\n\023DeliveryRequirement\022" - + "$\n DELIVERY_REQUIREMENT_UNSPECIFIED\020\000\022\027\n" - + "\023DELIVER_IMMEDIATELY\020\001\022\030\n\024DELIVER_AFTER_" - + "STORED\020\002:q\352An\n&pubsublite.googleapis.com" - + "/Subscription\022Dprojects/{project}/locati" - + "ons/{location}/subscriptions/{subscripti" - + "on}\"\301\003\n\014ExportConfig\022E\n\rdesired_state\030\001 " - + "\001(\0162..google.cloud.pubsublite.v1.ExportC" - + "onfig.State\022J\n\rcurrent_state\030\006 \001(\0162..goo" - + "gle.cloud.pubsublite.v1.ExportConfig.Sta" - + "teB\003\340A\003\022B\n\021dead_letter_topic\030\005 \001(\tB\'\340A\001\372" - + "A!\n\037pubsublite.googleapis.com/Topic\022N\n\rp" - + "ubsub_config\030\003 \001(\01325.google.cloud.pubsub" - + "lite.v1.ExportConfig.PubSubConfigH\000\032\035\n\014P" - + "ubSubConfig\022\r\n\005topic\030\001 \001(\t\"\\\n\005State\022\025\n\021S" - + "TATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\n\n\006PAUSED" - + "\020\002\022\025\n\021PERMISSION_DENIED\020\003\022\r\n\tNOT_FOUND\020\004" - + "B\r\n\013destination\"z\n\nTimeTarget\0222\n\014publish" - + "_time\030\001 \001(\0132\032.google.protobuf.TimestampH" - + "\000\0220\n\nevent_time\030\002 \001(\0132\032.google.protobuf." - + "TimestampH\000B\006\n\004timeB\317\001\n!com.google.cloud" - + ".pubsublite.protoB\013CommonProtoP\001Z>cloud." - + "google.com/go/pubsublite/apiv1/pubsublit" - + "epb;pubsublitepb\370\001\001\252\002\032Google.Cloud.PubSu" - + "bLite.V1\312\002\032Google\\Cloud\\PubSubLite\\V1\352\002\035" - + "Google::Cloud::PubSubLite::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_pubsublite_v1_AttributeValues_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_AttributeValues_descriptor, - new java.lang.String[] { - "Values", - }); - internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_pubsublite_v1_PubSubMessage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor, - new java.lang.String[] { - "Key", "Data", "Attributes", "EventTime", - }); - internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor = - internal_static_google_cloud_pubsublite_v1_PubSubMessage_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PubSubMessage_AttributesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_pubsublite_v1_Cursor_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_pubsublite_v1_Cursor_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Cursor_descriptor, - new java.lang.String[] { - "Offset", - }); - internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_pubsublite_v1_SequencedMessage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SequencedMessage_descriptor, - new java.lang.String[] { - "Cursor", "PublishTime", "Message", "SizeBytes", - }); - internal_static_google_cloud_pubsublite_v1_Reservation_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_pubsublite_v1_Reservation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Reservation_descriptor, - new java.lang.String[] { - "Name", "ThroughputCapacity", - }); - internal_static_google_cloud_pubsublite_v1_Topic_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_pubsublite_v1_Topic_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Topic_descriptor, - new java.lang.String[] { - "Name", "PartitionConfig", "RetentionConfig", "ReservationConfig", - }); - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor = - internal_static_google_cloud_pubsublite_v1_Topic_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor, - new java.lang.String[] { - "Count", "Scale", "Capacity", "Dimension", - }); - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor = - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Topic_PartitionConfig_Capacity_descriptor, - new java.lang.String[] { - "PublishMibPerSec", "SubscribeMibPerSec", - }); - internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor = - internal_static_google_cloud_pubsublite_v1_Topic_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Topic_RetentionConfig_descriptor, - new java.lang.String[] { - "PerPartitionBytes", "Period", - }); - internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor = - internal_static_google_cloud_pubsublite_v1_Topic_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Topic_ReservationConfig_descriptor, - new java.lang.String[] { - "ThroughputReservation", - }); - internal_static_google_cloud_pubsublite_v1_Subscription_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_pubsublite_v1_Subscription_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Subscription_descriptor, - new java.lang.String[] { - "Name", "Topic", "DeliveryConfig", "ExportConfig", - }); - internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor = - internal_static_google_cloud_pubsublite_v1_Subscription_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_Subscription_DeliveryConfig_descriptor, - new java.lang.String[] { - "DeliveryRequirement", - }); - internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_pubsublite_v1_ExportConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor, - new java.lang.String[] { - "DesiredState", "CurrentState", "DeadLetterTopic", "PubsubConfig", "Destination", - }); - internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor = - internal_static_google_cloud_pubsublite_v1_ExportConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ExportConfig_PubSubConfig_descriptor, - new java.lang.String[] { - "Topic", - }); - internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_pubsublite_v1_TimeTarget_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_TimeTarget_descriptor, - new java.lang.String[] { - "PublishTime", "EventTime", "Time", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java deleted file mode 100644 index 0e35ea250..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/ComputeHeadCursorRequestOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/topic_stats.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.pubsublite.proto; - -public interface ComputeHeadCursorRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.ComputeHeadCursorRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The topic for which we should compute the head cursor.
-   * 
- * - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The topic. - */ - java.lang.String getTopic(); - /** - * - * - *
-   * Required. The topic for which we should compute the head cursor.
-   * 
- * - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for topic. - */ - com.google.protobuf.ByteString getTopicBytes(); - - /** - * - * - *
-   * Required. The partition for which we should compute the head cursor.
-   * 
- * - * int64 partition = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The partition. - */ - long getPartition(); -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorOrBuilder.java deleted file mode 100644 index 4a18c419f..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/common.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.pubsublite.proto; - -public interface CursorOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.Cursor) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The offset of a message within a topic partition. Must be greater than or
-   * equal 0.
-   * 
- * - * int64 offset = 1; - * - * @return The offset. - */ - long getOffset(); -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java deleted file mode 100644 index fc28f72d0..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/CursorProto.java +++ /dev/null @@ -1,254 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/cursor.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.pubsublite.proto; - -public final class CursorProto { - private CursorProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n\'google/cloud/pubsublite/v1/cursor.prot" - + "o\022\032google.cloud.pubsublite.v1\032\034google/ap" - + "i/annotations.proto\032\027google/api/client.p" - + "roto\032\037google/api/field_behavior.proto\032\031g" - + "oogle/api/resource.proto\032\'google/cloud/p" - + "ubsublite/v1/common.proto\"E\n\032InitialComm" - + "itCursorRequest\022\024\n\014subscription\030\001 \001(\t\022\021\n" - + "\tpartition\030\002 \001(\003\"\035\n\033InitialCommitCursorR" - + "esponse\"R\n\034SequencedCommitCursorRequest\022" - + "2\n\006cursor\030\001 \001(\0132\".google.cloud.pubsublit" - + "e.v1.Cursor\"=\n\035SequencedCommitCursorResp" - + "onse\022\034\n\024acknowledged_commits\030\001 \001(\003\"\300\001\n\034S" - + "treamingCommitCursorRequest\022I\n\007initial\030\001" - + " \001(\01326.google.cloud.pubsublite.v1.Initia" - + "lCommitCursorRequestH\000\022J\n\006commit\030\002 \001(\01328" - + ".google.cloud.pubsublite.v1.SequencedCom" - + "mitCursorRequestH\000B\t\n\007request\"\303\001\n\035Stream" - + "ingCommitCursorResponse\022J\n\007initial\030\001 \001(\013" - + "27.google.cloud.pubsublite.v1.InitialCom" - + "mitCursorResponseH\000\022K\n\006commit\030\002 \001(\01329.go" - + "ogle.cloud.pubsublite.v1.SequencedCommit" - + "CursorResponseH\000B\t\n\007request\"r\n\023CommitCur" - + "sorRequest\022\024\n\014subscription\030\001 \001(\t\022\021\n\tpart" - + "ition\030\002 \001(\003\0222\n\006cursor\030\003 \001(\0132\".google.clo" - + "ud.pubsublite.v1.Cursor\"\026\n\024CommitCursorR" - + "esponse\"\204\001\n\033ListPartitionCursorsRequest\022" - + ">\n\006parent\030\001 \001(\tB.\340A\002\372A(\n&pubsublite.goog" - + "leapis.com/Subscription\022\021\n\tpage_size\030\002 \001" - + "(\005\022\022\n\npage_token\030\003 \001(\t\"X\n\017PartitionCurso" - + "r\022\021\n\tpartition\030\001 \001(\003\0222\n\006cursor\030\002 \001(\0132\".g" - + "oogle.cloud.pubsublite.v1.Cursor\"\177\n\034List" - + "PartitionCursorsResponse\022F\n\021partition_cu" - + "rsors\030\001 \003(\0132+.google.cloud.pubsublite.v1" - + ".PartitionCursor\022\027\n\017next_page_token\030\002 \001(" - + "\t2\242\005\n\rCursorService\022\222\001\n\025StreamingCommitC" - + "ursor\0228.google.cloud.pubsublite.v1.Strea" - + "mingCommitCursorRequest\0329.google.cloud.p" - + "ubsublite.v1.StreamingCommitCursorRespon" - + "se\"\000(\0010\001\022\313\001\n\014CommitCursor\022/.google.cloud" - + ".pubsublite.v1.CommitCursorRequest\0320.goo" - + "gle.cloud.pubsublite.v1.CommitCursorResp" - + "onse\"X\202\323\344\223\002R\"M/v1/cursor/{subscription=p" - + "rojects/*/locations/*/subscriptions/*}:c" - + "ommitCursor:\001*\022\336\001\n\024ListPartitionCursors\022" - + "7.google.cloud.pubsublite.v1.ListPartiti" - + "onCursorsRequest\0328.google.cloud.pubsubli" - + "te.v1.ListPartitionCursorsResponse\"S\332A\006p" - + "arent\202\323\344\223\002D\022B/v1/cursor/{parent=projects" - + "/*/locations/*/subscriptions/*}/cursors\032" - + "M\312A\031pubsublite.googleapis.com\322A.https://" - + "www.googleapis.com/auth/cloud-platformB\317" - + "\001\n!com.google.cloud.pubsublite.protoB\013Cu" - + "rsorProtoP\001Z>cloud.google.com/go/pubsubl" - + "ite/apiv1/pubsublitepb;pubsublitepb\370\001\001\252\002" - + "\032Google.Cloud.PubSubLite.V1\312\002\032Google\\Clo" - + "ud\\PubSubLite\\V1\352\002\035Google::Cloud::PubSub" - + "Lite::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(), - }); - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorRequest_descriptor, - new java.lang.String[] { - "Subscription", "Partition", - }); - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_InitialCommitCursorResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorRequest_descriptor, - new java.lang.String[] { - "Cursor", - }); - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SequencedCommitCursorResponse_descriptor, - new java.lang.String[] { - "AcknowledgedCommits", - }); - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorRequest_descriptor, - new java.lang.String[] { - "Initial", "Commit", "Request", - }); - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_StreamingCommitCursorResponse_descriptor, - new java.lang.String[] { - "Initial", "Commit", "Request", - }); - internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_CommitCursorRequest_descriptor, - new java.lang.String[] { - "Subscription", "Partition", "Cursor", - }); - internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_CommitCursorResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_pubsublite_v1_PartitionCursor_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PartitionCursor_descriptor, - new java.lang.String[] { - "Partition", "Cursor", - }); - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ListPartitionCursorsResponse_descriptor, - new java.lang.String[] { - "PartitionCursors", "NextPageToken", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java deleted file mode 100644 index 8dd24aaa2..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteReservationRequestOrBuilder.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.pubsublite.proto; - -public interface DeleteReservationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.DeleteReservationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the reservation to delete.
-   * Structured like:
-   * projects/{project_number}/locations/{location}/reservations/{reservation_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the reservation to delete.
-   * Structured like:
-   * projects/{project_number}/locations/{location}/reservations/{reservation_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequestOrBuilder.java deleted file mode 100644 index 6873a0f67..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteSubscriptionRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.pubsublite.proto; - -public interface DeleteSubscriptionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.DeleteSubscriptionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the subscription to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the subscription to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequestOrBuilder.java deleted file mode 100644 index 968abbc08..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/DeleteTopicRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.pubsublite.proto; - -public interface DeleteTopicRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.DeleteTopicRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the topic to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the topic to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequestOrBuilder.java deleted file mode 100644 index 74d455730..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetReservationRequestOrBuilder.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.pubsublite.proto; - -public interface GetReservationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.GetReservationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the reservation whose configuration to return.
-   * Structured like:
-   * projects/{project_number}/locations/{location}/reservations/{reservation_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the reservation whose configuration to return.
-   * Structured like:
-   * projects/{project_number}/locations/{location}/reservations/{reservation_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequestOrBuilder.java deleted file mode 100644 index 11b6ed669..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetSubscriptionRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.pubsublite.proto; - -public interface GetSubscriptionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.GetSubscriptionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the subscription whose configuration to return.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the subscription whose configuration to return.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequestOrBuilder.java deleted file mode 100644 index e75671229..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicPartitionsRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.pubsublite.proto; - -public interface GetTopicPartitionsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.GetTopicPartitionsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The topic whose partition information to return.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The topic whose partition information to return.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequestOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequestOrBuilder.java deleted file mode 100644 index e9af3cc6c..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/GetTopicRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.pubsublite.proto; - -public interface GetTopicRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.GetTopicRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the topic whose configuration to return.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the topic whose configuration to return.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponseOrBuilder.java deleted file mode 100644 index c4c880ead..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialCommitCursorResponseOrBuilder.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/cursor.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.pubsublite.proto; - -public interface InitialCommitCursorResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.InitialCommitCursorResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponseOrBuilder.java deleted file mode 100644 index 8a328eb73..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/InitialPublishResponseOrBuilder.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/publisher.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.pubsublite.proto; - -public interface InitialPublishResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.InitialPublishResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAckOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAckOrBuilder.java deleted file mode 100644 index ecede52ae..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PartitionAssignmentAckOrBuilder.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/subscriber.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.pubsublite.proto; - -public interface PartitionAssignmentAckOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.PartitionAssignmentAck) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherProto.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherProto.java deleted file mode 100644 index 35cee7743..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/PublisherProto.java +++ /dev/null @@ -1,183 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/publisher.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.pubsublite.proto; - -public final class PublisherProto { - private PublisherProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PublishRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PublishResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n*google/cloud/pubsublite/v1/publisher.p" - + "roto\022\032google.cloud.pubsublite.v1\032\034google" - + "/api/annotations.proto\032\027google/api/clien" - + "t.proto\032\'google/cloud/pubsublite/v1/comm" - + "on.proto\"L\n\025InitialPublishRequest\022\r\n\005top" - + "ic\030\001 \001(\t\022\021\n\tpartition\030\002 \001(\003\022\021\n\tclient_id" - + "\030\003 \001(\014\"\030\n\026InitialPublishResponse\"s\n\025Mess" - + "agePublishRequest\022;\n\010messages\030\001 \003(\0132).go" - + "ogle.cloud.pubsublite.v1.PubSubMessage\022\035" - + "\n\025first_sequence_number\030\002 \001(\003\"\232\002\n\026Messag" - + "ePublishResponse\0228\n\014start_cursor\030\001 \001(\0132\"" - + ".google.cloud.pubsublite.v1.Cursor\022U\n\rcu" - + "rsor_ranges\030\002 \003(\0132>.google.cloud.pubsubl" - + "ite.v1.MessagePublishResponse.CursorRang" - + "e\032o\n\013CursorRange\0228\n\014start_cursor\030\001 \001(\0132\"" - + ".google.cloud.pubsublite.v1.Cursor\022\023\n\013st" - + "art_index\030\002 \001(\005\022\021\n\tend_index\030\003 \001(\005\"\304\001\n\016P" - + "ublishRequest\022L\n\017initial_request\030\001 \001(\01321" - + ".google.cloud.pubsublite.v1.InitialPubli" - + "shRequestH\000\022T\n\027message_publish_request\030\002" - + " \001(\01321.google.cloud.pubsublite.v1.Messag" - + "ePublishRequestH\000B\016\n\014request_type\"\302\001\n\017Pu" - + "blishResponse\022N\n\020initial_response\030\001 \001(\0132" - + "2.google.cloud.pubsublite.v1.InitialPubl" - + "ishResponseH\000\022N\n\020message_response\030\002 \001(\0132" - + "2.google.cloud.pubsublite.v1.MessagePubl" - + "ishResponseH\000B\017\n\rresponse_type2\313\001\n\020Publi" - + "sherService\022h\n\007Publish\022*.google.cloud.pu" - + "bsublite.v1.PublishRequest\032+.google.clou" - + "d.pubsublite.v1.PublishResponse\"\000(\0010\001\032M\312" - + "A\031pubsublite.googleapis.com\322A.https://ww" - + "w.googleapis.com/auth/cloud-platformB\322\001\n" - + "!com.google.cloud.pubsublite.protoB\016Publ" - + "isherProtoP\001Z>cloud.google.com/go/pubsub" - + "lite/apiv1/pubsublitepb;pubsublitepb\370\001\001\252" - + "\002\032Google.Cloud.PubSubLite.V1\312\002\032Google\\Cl" - + "oud\\PubSubLite\\V1\352\002\035Google::Cloud::PubSu" - + "bLite::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(), - }); - internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_InitialPublishRequest_descriptor, - new java.lang.String[] { - "Topic", "Partition", "ClientId", - }); - internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_InitialPublishResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_MessagePublishRequest_descriptor, - new java.lang.String[] { - "Messages", "FirstSequenceNumber", - }); - internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor, - new java.lang.String[] { - "StartCursor", "CursorRanges", - }); - internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor = - internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_MessagePublishResponse_CursorRange_descriptor, - new java.lang.String[] { - "StartCursor", "StartIndex", "EndIndex", - }); - internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_pubsublite_v1_PublishRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PublishRequest_descriptor, - new java.lang.String[] { - "InitialRequest", "MessagePublishRequest", "RequestType", - }); - internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_pubsublite_v1_PublishResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PublishResponse_descriptor, - new java.lang.String[] { - "InitialResponse", "MessageResponse", "ResponseType", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponseOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponseOrBuilder.java deleted file mode 100644 index 7ddaed063..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SeekSubscriptionResponseOrBuilder.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.pubsublite.proto; - -public interface SeekSubscriptionResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.SeekSubscriptionResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberProto.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberProto.java deleted file mode 100644 index 163490c86..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/SubscriberProto.java +++ /dev/null @@ -1,265 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/subscriber.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.pubsublite.proto; - -public final class SubscriberProto { - private SubscriberProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n+google/cloud/pubsublite/v1/subscriber." - + "proto\022\032google.cloud.pubsublite.v1\032\034googl" - + "e/api/annotations.proto\032\027google/api/clie" - + "nt.proto\032\037google/api/field_behavior.prot" - + "o\032\'google/cloud/pubsublite/v1/common.pro" - + "to\"\212\001\n\027InitialSubscribeRequest\022\024\n\014subscr" - + "iption\030\001 \001(\t\022\021\n\tpartition\030\002 \001(\003\022F\n\020initi" - + "al_location\030\004 \001(\0132\'.google.cloud.pubsubl" - + "ite.v1.SeekRequestB\003\340A\001\"N\n\030InitialSubscr" - + "ibeResponse\0222\n\006cursor\030\001 \001(\0132\".google.clo" - + "ud.pubsublite.v1.Cursor\"\347\001\n\013SeekRequest\022" - + "K\n\014named_target\030\001 \001(\01623.google.cloud.pub" - + "sublite.v1.SeekRequest.NamedTargetH\000\0224\n\006" - + "cursor\030\002 \001(\0132\".google.cloud.pubsublite.v" - + "1.CursorH\000\"K\n\013NamedTarget\022\034\n\030NAMED_TARGE" - + "T_UNSPECIFIED\020\000\022\010\n\004HEAD\020\001\022\024\n\020COMMITTED_C" - + "URSOR\020\002B\010\n\006target\"B\n\014SeekResponse\0222\n\006cur" - + "sor\030\001 \001(\0132\".google.cloud.pubsublite.v1.C" - + "ursor\"E\n\022FlowControlRequest\022\030\n\020allowed_m" - + "essages\030\001 \001(\003\022\025\n\rallowed_bytes\030\002 \001(\003\"\346\001\n" - + "\020SubscribeRequest\022F\n\007initial\030\001 \001(\01323.goo" - + "gle.cloud.pubsublite.v1.InitialSubscribe" - + "RequestH\000\0227\n\004seek\030\002 \001(\0132\'.google.cloud.p" - + "ubsublite.v1.SeekRequestH\000\022F\n\014flow_contr" - + "ol\030\003 \001(\0132..google.cloud.pubsublite.v1.Fl" - + "owControlRequestH\000B\t\n\007request\"Q\n\017Message" - + "Response\022>\n\010messages\030\001 \003(\0132,.google.clou" - + "d.pubsublite.v1.SequencedMessage\"\343\001\n\021Sub" - + "scribeResponse\022G\n\007initial\030\001 \001(\01324.google" - + ".cloud.pubsublite.v1.InitialSubscribeRes" - + "ponseH\000\0228\n\004seek\030\002 \001(\0132(.google.cloud.pub" - + "sublite.v1.SeekResponseH\000\022?\n\010messages\030\003 " - + "\001(\0132+.google.cloud.pubsublite.v1.Message" - + "ResponseH\000B\n\n\010response\"L\n!InitialPartiti" - + "onAssignmentRequest\022\024\n\014subscription\030\001 \001(" - + "\t\022\021\n\tclient_id\030\002 \001(\014\")\n\023PartitionAssignm" - + "ent\022\022\n\npartitions\030\001 \003(\003\"\030\n\026PartitionAssi" - + "gnmentAck\"\274\001\n\032PartitionAssignmentRequest" - + "\022P\n\007initial\030\001 \001(\0132=.google.cloud.pubsubl" - + "ite.v1.InitialPartitionAssignmentRequest" - + "H\000\022A\n\003ack\030\002 \001(\01322.google.cloud.pubsublit" - + "e.v1.PartitionAssignmentAckH\000B\t\n\007request" - + "2\322\001\n\021SubscriberService\022n\n\tSubscribe\022,.go" - + "ogle.cloud.pubsublite.v1.SubscribeReques" - + "t\032-.google.cloud.pubsublite.v1.Subscribe" - + "Response\"\000(\0010\001\032M\312A\031pubsublite.googleapis" - + ".com\322A.https://www.googleapis.com/auth/c" - + "loud-platform2\357\001\n\032PartitionAssignmentSer" - + "vice\022\201\001\n\020AssignPartitions\0226.google.cloud" - + ".pubsublite.v1.PartitionAssignmentReques" - + "t\032/.google.cloud.pubsublite.v1.Partition" - + "Assignment\"\000(\0010\001\032M\312A\031pubsublite.googleap" - + "is.com\322A.https://www.googleapis.com/auth" - + "/cloud-platformB\323\001\n!com.google.cloud.pub" - + "sublite.protoB\017SubscriberProtoP\001Z>cloud." - + "google.com/go/pubsublite/apiv1/pubsublit" - + "epb;pubsublitepb\370\001\001\252\002\032Google.Cloud.PubSu" - + "bLite.V1\312\002\032Google\\Cloud\\PubSubLite\\V1\352\002\035" - + "Google::Cloud::PubSubLite::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(), - }); - internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_InitialSubscribeRequest_descriptor, - new java.lang.String[] { - "Subscription", "Partition", "InitialLocation", - }); - internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_InitialSubscribeResponse_descriptor, - new java.lang.String[] { - "Cursor", - }); - internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_pubsublite_v1_SeekRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SeekRequest_descriptor, - new java.lang.String[] { - "NamedTarget", "Cursor", "Target", - }); - internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_pubsublite_v1_SeekResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SeekResponse_descriptor, - new java.lang.String[] { - "Cursor", - }); - internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_pubsublite_v1_FlowControlRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_FlowControlRequest_descriptor, - new java.lang.String[] { - "AllowedMessages", "AllowedBytes", - }); - internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_pubsublite_v1_SubscribeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SubscribeRequest_descriptor, - new java.lang.String[] { - "Initial", "Seek", "FlowControl", "Request", - }); - internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_pubsublite_v1_MessageResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_MessageResponse_descriptor, - new java.lang.String[] { - "Messages", - }); - internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_pubsublite_v1_SubscribeResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_SubscribeResponse_descriptor, - new java.lang.String[] { - "Initial", "Seek", "Messages", "Response", - }); - internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_InitialPartitionAssignmentRequest_descriptor, - new java.lang.String[] { - "Subscription", "ClientId", - }); - internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_pubsublite_v1_PartitionAssignment_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PartitionAssignment_descriptor, - new java.lang.String[] { - "Partitions", - }); - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentAck_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_PartitionAssignmentRequest_descriptor, - new java.lang.String[] { - "Initial", "Ack", "Request", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java deleted file mode 100644 index 760a0ed2f..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicPartitionsOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/admin.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.pubsublite.proto; - -public interface TopicPartitionsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.pubsublite.v1.TopicPartitions) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The number of partitions in the topic.
-   * 
- * - * int64 partition_count = 1; - * - * @return The partitionCount. - */ - long getPartitionCount(); -} diff --git a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsProto.java b/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsProto.java deleted file mode 100644 index feb406fea..000000000 --- a/proto-google-cloud-pubsublite-v1/src/main/java/com/google/cloud/pubsublite/proto/TopicStatsProto.java +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/pubsublite/v1/topic_stats.proto - -// Protobuf Java Version: 3.25.2 -package com.google.cloud.pubsublite.proto; - -public final class TopicStatsProto { - private TopicStatsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/pubsublite/v1/topic_stats" - + ".proto\022\032google.cloud.pubsublite.v1\032\034goog" - + "le/api/annotations.proto\032\027google/api/cli" - + "ent.proto\032\037google/api/field_behavior.pro" - + "to\032\031google/api/resource.proto\032\'google/cl" - + "oud/pubsublite/v1/common.proto\032\037google/p" - + "rotobuf/timestamp.proto\"\336\001\n\032ComputeMessa" - + "geStatsRequest\0226\n\005topic\030\001 \001(\tB\'\340A\002\372A!\n\037p" - + "ubsublite.googleapis.com/Topic\022\026\n\tpartit" - + "ion\030\002 \001(\003B\003\340A\002\0228\n\014start_cursor\030\003 \001(\0132\".g" - + "oogle.cloud.pubsublite.v1.Cursor\0226\n\nend_" - + "cursor\030\004 \001(\0132\".google.cloud.pubsublite.v" - + "1.Cursor\"\275\001\n\033ComputeMessageStatsResponse" - + "\022\025\n\rmessage_count\030\001 \001(\003\022\025\n\rmessage_bytes" - + "\030\002 \001(\003\0228\n\024minimum_publish_time\030\003 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\0226\n\022minimum_even" - + "t_time\030\004 \001(\0132\032.google.protobuf.Timestamp" - + "\"j\n\030ComputeHeadCursorRequest\0226\n\005topic\030\001 " - + "\001(\tB\'\340A\002\372A!\n\037pubsublite.googleapis.com/T" - + "opic\022\026\n\tpartition\030\002 \001(\003B\003\340A\002\"T\n\031ComputeH" - + "eadCursorResponse\0227\n\013head_cursor\030\001 \001(\0132\"" - + ".google.cloud.pubsublite.v1.Cursor\"\247\001\n\030C" - + "omputeTimeCursorRequest\0226\n\005topic\030\001 \001(\tB\'" - + "\340A\002\372A!\n\037pubsublite.googleapis.com/Topic\022" - + "\026\n\tpartition\030\002 \001(\003B\003\340A\002\022;\n\006target\030\003 \001(\0132" - + "&.google.cloud.pubsublite.v1.TimeTargetB" - + "\003\340A\002\"O\n\031ComputeTimeCursorResponse\0222\n\006cur" - + "sor\030\001 \001(\0132\".google.cloud.pubsublite.v1.C" - + "ursor2\362\005\n\021TopicStatsService\022\335\001\n\023ComputeM" - + "essageStats\0226.google.cloud.pubsublite.v1" - + ".ComputeMessageStatsRequest\0327.google.clo" - + "ud.pubsublite.v1.ComputeMessageStatsResp" - + "onse\"U\202\323\344\223\002O\"J/v1/topicStats/{topic=proj" - + "ects/*/locations/*/topics/*}:computeMess" - + "ageStats:\001*\022\325\001\n\021ComputeHeadCursor\0224.goog" - + "le.cloud.pubsublite.v1.ComputeHeadCursor" - + "Request\0325.google.cloud.pubsublite.v1.Com" - + "puteHeadCursorResponse\"S\202\323\344\223\002M\"H/v1/topi" - + "cStats/{topic=projects/*/locations/*/top" - + "ics/*}:computeHeadCursor:\001*\022\325\001\n\021ComputeT" - + "imeCursor\0224.google.cloud.pubsublite.v1.C" - + "omputeTimeCursorRequest\0325.google.cloud.p" - + "ubsublite.v1.ComputeTimeCursorResponse\"S" - + "\202\323\344\223\002M\"H/v1/topicStats/{topic=projects/*" - + "/locations/*/topics/*}:computeTimeCursor" - + ":\001*\032M\312A\031pubsublite.googleapis.com\322A.http" - + "s://www.googleapis.com/auth/cloud-platfo" - + "rmB\320\001\n!com.google.cloud.pubsublite.proto" - + "B\017TopicStatsProtoP\001Z>cloud.google.com/go" - + "/pubsublite/apiv1/pubsublitepb;pubsublit" - + "epb\252\002\032Google.Cloud.PubSubLite.V1\312\002\032Googl" - + "e\\Cloud\\PubSubLite\\V1\352\002\035Google::Cloud::P" - + "ubSubLite::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsRequest_descriptor, - new java.lang.String[] { - "Topic", "Partition", "StartCursor", "EndCursor", - }); - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ComputeMessageStatsResponse_descriptor, - new java.lang.String[] { - "MessageCount", "MessageBytes", "MinimumPublishTime", "MinimumEventTime", - }); - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorRequest_descriptor, - new java.lang.String[] { - "Topic", "Partition", - }); - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ComputeHeadCursorResponse_descriptor, - new java.lang.String[] { - "HeadCursor", - }); - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorRequest_descriptor, - new java.lang.String[] { - "Topic", "Partition", "Target", - }); - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_pubsublite_v1_ComputeTimeCursorResponse_descriptor, - new java.lang.String[] { - "Cursor", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.pubsublite.proto.CommonProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -}