diff --git a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java b/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java deleted file mode 100644 index ce5099a57..000000000 --- a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java +++ /dev/null @@ -1,905 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.pubsub.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service for doing schema-related operations.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/pubsub/v1/schema.proto") -public final class SchemaServiceGrpc { - - private SchemaServiceGrpc() {} - - public static final String SERVICE_NAME = "google.pubsub.v1.SchemaService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.pubsub.v1.CreateSchemaRequest, com.google.pubsub.v1.Schema> - getCreateSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSchema", - requestType = com.google.pubsub.v1.CreateSchemaRequest.class, - responseType = com.google.pubsub.v1.Schema.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.pubsub.v1.CreateSchemaRequest, com.google.pubsub.v1.Schema> - getCreateSchemaMethod() { - io.grpc.MethodDescriptor - getCreateSchemaMethod; - if ((getCreateSchemaMethod = SchemaServiceGrpc.getCreateSchemaMethod) == null) { - synchronized (SchemaServiceGrpc.class) { - if ((getCreateSchemaMethod = SchemaServiceGrpc.getCreateSchemaMethod) == null) { - SchemaServiceGrpc.getCreateSchemaMethod = - getCreateSchemaMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.CreateSchemaRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.Schema.getDefaultInstance())) - .setSchemaDescriptor( - new SchemaServiceMethodDescriptorSupplier("CreateSchema")) - .build(); - } - } - } - return getCreateSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.pubsub.v1.GetSchemaRequest, com.google.pubsub.v1.Schema> - getGetSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSchema", - requestType = com.google.pubsub.v1.GetSchemaRequest.class, - responseType = com.google.pubsub.v1.Schema.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.pubsub.v1.GetSchemaRequest, com.google.pubsub.v1.Schema> - getGetSchemaMethod() { - io.grpc.MethodDescriptor - getGetSchemaMethod; - if ((getGetSchemaMethod = SchemaServiceGrpc.getGetSchemaMethod) == null) { - synchronized (SchemaServiceGrpc.class) { - if ((getGetSchemaMethod = SchemaServiceGrpc.getGetSchemaMethod) == null) { - SchemaServiceGrpc.getGetSchemaMethod = - getGetSchemaMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.GetSchemaRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.Schema.getDefaultInstance())) - .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("GetSchema")) - .build(); - } - } - } - return getGetSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.pubsub.v1.ListSchemasRequest, com.google.pubsub.v1.ListSchemasResponse> - getListSchemasMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSchemas", - requestType = com.google.pubsub.v1.ListSchemasRequest.class, - responseType = com.google.pubsub.v1.ListSchemasResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.pubsub.v1.ListSchemasRequest, com.google.pubsub.v1.ListSchemasResponse> - getListSchemasMethod() { - io.grpc.MethodDescriptor< - com.google.pubsub.v1.ListSchemasRequest, com.google.pubsub.v1.ListSchemasResponse> - getListSchemasMethod; - if ((getListSchemasMethod = SchemaServiceGrpc.getListSchemasMethod) == null) { - synchronized (SchemaServiceGrpc.class) { - if ((getListSchemasMethod = SchemaServiceGrpc.getListSchemasMethod) == null) { - SchemaServiceGrpc.getListSchemasMethod = - getListSchemasMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSchemas")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.ListSchemasRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.ListSchemasResponse.getDefaultInstance())) - .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("ListSchemas")) - .build(); - } - } - } - return getListSchemasMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.pubsub.v1.DeleteSchemaRequest, com.google.protobuf.Empty> - getDeleteSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSchema", - requestType = com.google.pubsub.v1.DeleteSchemaRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.pubsub.v1.DeleteSchemaRequest, com.google.protobuf.Empty> - getDeleteSchemaMethod() { - io.grpc.MethodDescriptor - getDeleteSchemaMethod; - if ((getDeleteSchemaMethod = SchemaServiceGrpc.getDeleteSchemaMethod) == null) { - synchronized (SchemaServiceGrpc.class) { - if ((getDeleteSchemaMethod = SchemaServiceGrpc.getDeleteSchemaMethod) == null) { - SchemaServiceGrpc.getDeleteSchemaMethod = - getDeleteSchemaMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.DeleteSchemaRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new SchemaServiceMethodDescriptorSupplier("DeleteSchema")) - .build(); - } - } - } - return getDeleteSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.pubsub.v1.ValidateSchemaRequest, com.google.pubsub.v1.ValidateSchemaResponse> - getValidateSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ValidateSchema", - requestType = com.google.pubsub.v1.ValidateSchemaRequest.class, - responseType = com.google.pubsub.v1.ValidateSchemaResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.pubsub.v1.ValidateSchemaRequest, com.google.pubsub.v1.ValidateSchemaResponse> - getValidateSchemaMethod() { - io.grpc.MethodDescriptor< - com.google.pubsub.v1.ValidateSchemaRequest, com.google.pubsub.v1.ValidateSchemaResponse> - getValidateSchemaMethod; - if ((getValidateSchemaMethod = SchemaServiceGrpc.getValidateSchemaMethod) == null) { - synchronized (SchemaServiceGrpc.class) { - if ((getValidateSchemaMethod = SchemaServiceGrpc.getValidateSchemaMethod) == null) { - SchemaServiceGrpc.getValidateSchemaMethod = - getValidateSchemaMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ValidateSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.ValidateSchemaRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.ValidateSchemaResponse.getDefaultInstance())) - .setSchemaDescriptor( - new SchemaServiceMethodDescriptorSupplier("ValidateSchema")) - .build(); - } - } - } - return getValidateSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.pubsub.v1.ValidateMessageRequest, com.google.pubsub.v1.ValidateMessageResponse> - getValidateMessageMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ValidateMessage", - requestType = com.google.pubsub.v1.ValidateMessageRequest.class, - responseType = com.google.pubsub.v1.ValidateMessageResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.pubsub.v1.ValidateMessageRequest, com.google.pubsub.v1.ValidateMessageResponse> - getValidateMessageMethod() { - io.grpc.MethodDescriptor< - com.google.pubsub.v1.ValidateMessageRequest, - com.google.pubsub.v1.ValidateMessageResponse> - getValidateMessageMethod; - if ((getValidateMessageMethod = SchemaServiceGrpc.getValidateMessageMethod) == null) { - synchronized (SchemaServiceGrpc.class) { - if ((getValidateMessageMethod = SchemaServiceGrpc.getValidateMessageMethod) == null) { - SchemaServiceGrpc.getValidateMessageMethod = - getValidateMessageMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ValidateMessage")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.ValidateMessageRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.pubsub.v1.ValidateMessageResponse.getDefaultInstance())) - .setSchemaDescriptor( - new SchemaServiceMethodDescriptorSupplier("ValidateMessage")) - .build(); - } - } - } - return getValidateMessageMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static SchemaServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SchemaServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SchemaServiceStub(channel, callOptions); - } - }; - return SchemaServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SchemaServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SchemaServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SchemaServiceBlockingStub(channel, callOptions); - } - }; - return SchemaServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static SchemaServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SchemaServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SchemaServiceFutureStub(channel, callOptions); - } - }; - return SchemaServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for doing schema-related operations.
-   * 
- */ - public abstract static class SchemaServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a schema.
-     * 
- */ - public void createSchema( - com.google.pubsub.v1.CreateSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSchemaMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a schema.
-     * 
- */ - public void getSchema( - com.google.pubsub.v1.GetSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSchemaMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists schemas in a project.
-     * 
- */ - public void listSchemas( - com.google.pubsub.v1.ListSchemasRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListSchemasMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a schema.
-     * 
- */ - public void deleteSchema( - com.google.pubsub.v1.DeleteSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteSchemaMethod(), responseObserver); - } - - /** - * - * - *
-     * Validates a schema.
-     * 
- */ - public void validateSchema( - com.google.pubsub.v1.ValidateSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getValidateSchemaMethod(), responseObserver); - } - - /** - * - * - *
-     * Validates a message against a schema.
-     * 
- */ - public void validateMessage( - com.google.pubsub.v1.ValidateMessageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getValidateMessageMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.CreateSchemaRequest, com.google.pubsub.v1.Schema>( - this, METHODID_CREATE_SCHEMA))) - .addMethod( - getGetSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.GetSchemaRequest, com.google.pubsub.v1.Schema>( - this, METHODID_GET_SCHEMA))) - .addMethod( - getListSchemasMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListSchemasRequest, - com.google.pubsub.v1.ListSchemasResponse>(this, METHODID_LIST_SCHEMAS))) - .addMethod( - getDeleteSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.DeleteSchemaRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_SCHEMA))) - .addMethod( - getValidateSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ValidateSchemaRequest, - com.google.pubsub.v1.ValidateSchemaResponse>(this, METHODID_VALIDATE_SCHEMA))) - .addMethod( - getValidateMessageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ValidateMessageRequest, - com.google.pubsub.v1.ValidateMessageResponse>( - this, METHODID_VALIDATE_MESSAGE))) - .build(); - } - } - - /** - * - * - *
-   * Service for doing schema-related operations.
-   * 
- */ - public static final class SchemaServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private SchemaServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SchemaServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SchemaServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a schema.
-     * 
- */ - public void createSchema( - com.google.pubsub.v1.CreateSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSchemaMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a schema.
-     * 
- */ - public void getSchema( - com.google.pubsub.v1.GetSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSchemaMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists schemas in a project.
-     * 
- */ - public void listSchemas( - com.google.pubsub.v1.ListSchemasRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSchemasMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a schema.
-     * 
- */ - public void deleteSchema( - com.google.pubsub.v1.DeleteSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSchemaMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Validates a schema.
-     * 
- */ - public void validateSchema( - com.google.pubsub.v1.ValidateSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getValidateSchemaMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Validates a message against a schema.
-     * 
- */ - public void validateMessage( - com.google.pubsub.v1.ValidateMessageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getValidateMessageMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service for doing schema-related operations.
-   * 
- */ - public static final class SchemaServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private SchemaServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SchemaServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SchemaServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a schema.
-     * 
- */ - public com.google.pubsub.v1.Schema createSchema( - com.google.pubsub.v1.CreateSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSchemaMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a schema.
-     * 
- */ - public com.google.pubsub.v1.Schema getSchema(com.google.pubsub.v1.GetSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSchemaMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists schemas in a project.
-     * 
- */ - public com.google.pubsub.v1.ListSchemasResponse listSchemas( - com.google.pubsub.v1.ListSchemasRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSchemasMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a schema.
-     * 
- */ - public com.google.protobuf.Empty deleteSchema( - com.google.pubsub.v1.DeleteSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSchemaMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Validates a schema.
-     * 
- */ - public com.google.pubsub.v1.ValidateSchemaResponse validateSchema( - com.google.pubsub.v1.ValidateSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getValidateSchemaMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Validates a message against a schema.
-     * 
- */ - public com.google.pubsub.v1.ValidateMessageResponse validateMessage( - com.google.pubsub.v1.ValidateMessageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getValidateMessageMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service for doing schema-related operations.
-   * 
- */ - public static final class SchemaServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private SchemaServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SchemaServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SchemaServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a schema.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createSchema(com.google.pubsub.v1.CreateSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSchemaMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a schema.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getSchema(com.google.pubsub.v1.GetSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSchemaMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists schemas in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.pubsub.v1.ListSchemasResponse> - listSchemas(com.google.pubsub.v1.ListSchemasRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSchemasMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a schema.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteSchema(com.google.pubsub.v1.DeleteSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSchemaMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Validates a schema.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.pubsub.v1.ValidateSchemaResponse> - validateSchema(com.google.pubsub.v1.ValidateSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getValidateSchemaMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Validates a message against a schema.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.pubsub.v1.ValidateMessageResponse> - validateMessage(com.google.pubsub.v1.ValidateMessageRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getValidateMessageMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_SCHEMA = 0; - private static final int METHODID_GET_SCHEMA = 1; - private static final int METHODID_LIST_SCHEMAS = 2; - private static final int METHODID_DELETE_SCHEMA = 3; - private static final int METHODID_VALIDATE_SCHEMA = 4; - private static final int METHODID_VALIDATE_MESSAGE = 5; - - 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 SchemaServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SchemaServiceImplBase 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_SCHEMA: - serviceImpl.createSchema( - (com.google.pubsub.v1.CreateSchemaRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SCHEMA: - serviceImpl.getSchema( - (com.google.pubsub.v1.GetSchemaRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SCHEMAS: - serviceImpl.listSchemas( - (com.google.pubsub.v1.ListSchemasRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_SCHEMA: - serviceImpl.deleteSchema( - (com.google.pubsub.v1.DeleteSchemaRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_VALIDATE_SCHEMA: - serviceImpl.validateSchema( - (com.google.pubsub.v1.ValidateSchemaRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_VALIDATE_MESSAGE: - serviceImpl.validateMessage( - (com.google.pubsub.v1.ValidateMessageRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class SchemaServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SchemaServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.pubsub.v1.SchemaProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("SchemaService"); - } - } - - private static final class SchemaServiceFileDescriptorSupplier - extends SchemaServiceBaseDescriptorSupplier { - SchemaServiceFileDescriptorSupplier() {} - } - - private static final class SchemaServiceMethodDescriptorSupplier - extends SchemaServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - SchemaServiceMethodDescriptorSupplier(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 (SchemaServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SchemaServiceFileDescriptorSupplier()) - .addMethod(getCreateSchemaMethod()) - .addMethod(getGetSchemaMethod()) - .addMethod(getListSchemasMethod()) - .addMethod(getDeleteSchemaMethod()) - .addMethod(getValidateSchemaMethod()) - .addMethod(getValidateMessageMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java similarity index 97% rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java index e65f17783..61758fb49 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java +++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java @@ -74,13 +74,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -210,7 +210,7 @@ public final Schema createSchema(ProjectName parent, Schema schema, String schem * *
{@code
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
-   *   String parent = ProjectName.of("[PROJECT]").toString();
+   *   String parent = SchemaName.of("[PROJECT]", "[SCHEMA]").toString();
    *   Schema schema = Schema.newBuilder().build();
    *   String schemaId = "schemaId-697673060";
    *   Schema response = schemaServiceClient.createSchema(parent, schema, schemaId);
@@ -248,7 +248,7 @@ public final Schema createSchema(String parent, Schema schema, String schemaId)
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   CreateSchemaRequest request =
    *       CreateSchemaRequest.newBuilder()
-   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setParent(SchemaName.of("[PROJECT]", "[SCHEMA]").toString())
    *           .setSchema(Schema.newBuilder().build())
    *           .setSchemaId("schemaId-697673060")
    *           .build();
@@ -273,7 +273,7 @@ public final Schema createSchema(CreateSchemaRequest request) {
    * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    *   CreateSchemaRequest request =
    *       CreateSchemaRequest.newBuilder()
-   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setParent(SchemaName.of("[PROJECT]", "[SCHEMA]").toString())
    *           .setSchema(Schema.newBuilder().build())
    *           .setSchemaId("schemaId-697673060")
    *           .build();
@@ -473,7 +473,7 @@ public final ListSchemasPagedResponse listSchemas(ListSchemasRequest request) {
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
-   *   ApiFuture future = schemaServiceClient.listSchemasPagedCallable().futureCall(request);
+   *   ApiFuture future = schemaServiceClient.listSchemasPagedCallable().futureCall(request);
    *   // Do something.
    *   for (Schema element : future.get().iterateAll()) {
    *     // doThingsWith(element);
@@ -503,7 +503,7 @@ public final ListSchemasPagedResponse listSchemas(ListSchemasRequest request) {
    *           .build();
    *   while (true) {
    *     ListSchemasResponse response = schemaServiceClient.listSchemasCallable().call(request);
-   *     for (Schema element : response.getSchemasList()) {
+   *     for (Schema element : response.getResponsesList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -954,10 +954,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted
 
   public static class ListSchemasPagedResponse
       extends AbstractPagedListResponse<
-          ListSchemasRequest,
-          ListSchemasResponse,
-          Schema,
-          ListSchemasPage,
+          ListSchemasRequest, ListSchemasResponse, Schema, ListSchemasPage,
           ListSchemasFixedSizeCollection> {
 
     public static ApiFuture createAsync(
@@ -1004,10 +1001,7 @@ public ApiFuture createPageAsync(
 
   public static class ListSchemasFixedSizeCollection
       extends AbstractFixedSizeCollection<
-          ListSchemasRequest,
-          ListSchemasResponse,
-          Schema,
-          ListSchemasPage,
+          ListSchemasRequest, ListSchemasResponse, Schema, ListSchemasPage,
           ListSchemasFixedSizeCollection> {
 
     private ListSchemasFixedSizeCollection(List pages, int collectionSize) {
diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java
similarity index 97%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java
index e8c50371c..7d20e8c94 100644
--- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java
@@ -27,6 +27,7 @@
 import com.google.api.gax.rpc.ClientContext;
 import com.google.api.gax.rpc.ClientSettings;
 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.pubsub.v1.stub.SchemaServiceStubSettings;
@@ -57,9 +58,9 @@
  * 

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java similarity index 87% rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 6d1c6950a..2ab5a2ddd 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -48,18 +48,17 @@ import com.google.pubsub.v1.ModifyAckDeadlineRequest; import com.google.pubsub.v1.ModifyPushConfigRequest; import com.google.pubsub.v1.ProjectName; -import com.google.pubsub.v1.ProjectSnapshotName; -import com.google.pubsub.v1.ProjectSubscriptionName; -import com.google.pubsub.v1.ProjectTopicName; import com.google.pubsub.v1.PullRequest; import com.google.pubsub.v1.PullResponse; import com.google.pubsub.v1.PushConfig; import com.google.pubsub.v1.SeekRequest; import com.google.pubsub.v1.SeekResponse; import com.google.pubsub.v1.Snapshot; +import com.google.pubsub.v1.SnapshotName; import com.google.pubsub.v1.StreamingPullRequest; import com.google.pubsub.v1.StreamingPullResponse; import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.SubscriptionName; import com.google.pubsub.v1.TopicName; import com.google.pubsub.v1.UpdateSnapshotRequest; import com.google.pubsub.v1.UpdateSubscriptionRequest; @@ -79,7 +78,7 @@ * *

{@code
  * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
- *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+ *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
  *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
  *   PushConfig pushConfig = PushConfig.newBuilder().build();
  *   int ackDeadlineSeconds = 2135351438;
@@ -96,13 +95,13 @@
  * methods:
  *
  * 
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -207,7 +206,7 @@ public SubscriberStub getStub() { * *
{@code
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    *   PushConfig pushConfig = PushConfig.newBuilder().build();
    *   int ackDeadlineSeconds = 2135351438;
@@ -245,10 +244,7 @@ public SubscriberStub getStub() {
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
   public final Subscription createSubscription(
-      ProjectSubscriptionName name,
-      TopicName topic,
-      PushConfig pushConfig,
-      int ackDeadlineSeconds) {
+      SubscriptionName name, TopicName topic, PushConfig pushConfig, int ackDeadlineSeconds) {
     Subscription request =
         Subscription.newBuilder()
             .setName(name == null ? null : name.toString())
@@ -276,7 +272,7 @@ public final Subscription createSubscription(
    *
    * 
{@code
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    *   PushConfig pushConfig = PushConfig.newBuilder().build();
    *   int ackDeadlineSeconds = 2135351438;
@@ -314,7 +310,7 @@ public final Subscription createSubscription(
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
   public final Subscription createSubscription(
-      ProjectSubscriptionName name, String topic, PushConfig pushConfig, int ackDeadlineSeconds) {
+      SubscriptionName name, String topic, PushConfig pushConfig, int ackDeadlineSeconds) {
     Subscription request =
         Subscription.newBuilder()
             .setName(name == null ? null : name.toString())
@@ -342,7 +338,7 @@ public final Subscription createSubscription(
    *
    * 
{@code
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   String name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
+   *   String name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    *   PushConfig pushConfig = PushConfig.newBuilder().build();
    *   int ackDeadlineSeconds = 2135351438;
@@ -408,7 +404,7 @@ public final Subscription createSubscription(
    *
    * 
{@code
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   String name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
+   *   String name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    *   PushConfig pushConfig = PushConfig.newBuilder().build();
    *   int ackDeadlineSeconds = 2135351438;
@@ -476,7 +472,7 @@ public final Subscription createSubscription(
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   Subscription request =
    *       Subscription.newBuilder()
-   *           .setName(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
+   *           .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    *           .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
    *           .setPushConfig(PushConfig.newBuilder().build())
    *           .setAckDeadlineSeconds(2135351438)
@@ -502,77 +498,6 @@ public final Subscription createSubscription(Subscription request) {
     return createSubscriptionCallable().call(request);
   }
 
-  // AUTO-GENERATED DOCUMENTATION AND METHOD
-  /**
-   * Creates a subscription to a given topic. See the <a
-   * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name
-   * rules</a>. If the subscription already exists, returns `ALREADY_EXISTS`. If the
-   * corresponding topic doesn't exist, returns `NOT_FOUND`.
-   *
-   * 

If the name is not provided in the request, the server will assign a random name for this - * subscription on the same project as the topic, conforming to the [resource name - * format](https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is - * populated in the returned Subscription object. Note that for REST API requests, you must - * specify a name in the request. - * - *

Sample code: - * - *


-   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
-   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
-   *   PushConfig pushConfig = PushConfig.newBuilder().build();
-   *   int ackDeadlineSeconds = 0;
-   *   Subscription response = subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
-   * }
-   * 
- * - * @param name Required. The name of the subscription. It must have the format - * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must start with a - * letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores - * (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 - * and 255 characters in length, and it must not start with `"goog"`. - * @param topic Required. The name of the topic from which this subscription is receiving - * messages. Format is `projects/{project}/topics/{topic}`. The value of this field will be - * `_deleted-topic_` if the topic has been deleted. - * @param pushConfig If push delivery is used with this subscription, this field is used to - * configure it. An empty `pushConfig` signifies that the subscriber will pull and ack - * messages using API methods. - * @param ackDeadlineSeconds The approximate amount of time (on a best-effort basis) Pub/Sub waits - * for the subscriber to acknowledge receipt before resending the message. In the interval - * after the message is delivered and before it is acknowledged, it is considered to be - * <i>outstanding</i>. During that time period, the message will not be - * redelivered (on a best-effort basis). - *

For pull subscriptions, this value is used as the initial value for the ack deadline. To - * override this value for a given message, call `ModifyAckDeadline` with the corresponding - * `ack_id` if using non-streaming pull or send the `ack_id` in a - * `StreamingModifyAckDeadlineRequest` if using streaming pull. The minimum custom deadline - * you can specify is 10 seconds. The maximum custom deadline you can specify is 600 seconds - * (10 minutes). If this parameter is 0, a default value of 10 seconds is used. - *

For push delivery, this value is also used to set the request timeout for the call to - * the push endpoint. - *

If the subscriber never acknowledges the message, the Pub/Sub system will eventually - * redeliver the message. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #createSubscription(ProjectSubscriptionName, TopicName, PushConfig, - * int)} instead. - */ - @Deprecated - public final Subscription createSubscription( - ProjectSubscriptionName name, - ProjectTopicName topic, - PushConfig pushConfig, - int ackDeadlineSeconds) { - Subscription request = - Subscription.newBuilder() - .setName(name == null ? null : name.toString()) - .setTopic(topic == null ? null : topic.toString()) - .setPushConfig(pushConfig) - .setAckDeadlineSeconds(ackDeadlineSeconds) - .build(); - return createSubscription(request); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a subscription to a given topic. See the [resource name rules] @@ -592,7 +517,7 @@ public final Subscription createSubscription( * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * Subscription request = * Subscription.newBuilder() - * .setName(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + * .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) * .setPushConfig(PushConfig.newBuilder().build()) * .setAckDeadlineSeconds(2135351438) @@ -626,7 +551,7 @@ public final UnaryCallable createSubscriptionCallabl * *

{@code
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   Subscription response = subscriptionAdminClient.getSubscription(subscription);
    * }
    * }
@@ -635,7 +560,7 @@ public final UnaryCallable createSubscriptionCallabl * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Subscription getSubscription(ProjectSubscriptionName subscription) { + public final Subscription getSubscription(SubscriptionName subscription) { GetSubscriptionRequest request = GetSubscriptionRequest.newBuilder() .setSubscription(subscription == null ? null : subscription.toString()) @@ -651,7 +576,7 @@ public final Subscription getSubscription(ProjectSubscriptionName subscription) * *
{@code
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
+   *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   Subscription response = subscriptionAdminClient.getSubscription(subscription);
    * }
    * }
@@ -676,7 +601,7 @@ public final Subscription getSubscription(String subscription) { * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * GetSubscriptionRequest request = * GetSubscriptionRequest.newBuilder() - * .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + * .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .build(); * Subscription response = subscriptionAdminClient.getSubscription(request); * } @@ -699,7 +624,7 @@ public final Subscription getSubscription(GetSubscriptionRequest request) { * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * GetSubscriptionRequest request = * GetSubscriptionRequest.newBuilder() - * .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + * .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .build(); * ApiFuture future = * subscriptionAdminClient.getSubscriptionCallable().futureCall(request); @@ -855,7 +780,7 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = + * ApiFuture future = * subscriptionAdminClient.listSubscriptionsPagedCallable().futureCall(request); * // Do something. * for (Subscription element : future.get().iterateAll()) { @@ -886,7 +811,7 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR * while (true) { * ListSubscriptionsResponse response = * subscriptionAdminClient.listSubscriptionsCallable().call(request); - * for (Subscription element : response.getSubscriptionsList()) { + * for (Subscription element : response.getResponsesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -915,7 +840,7 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR * *
{@code
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   subscriptionAdminClient.deleteSubscription(subscription);
    * }
    * }
@@ -924,7 +849,7 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSubscription(ProjectSubscriptionName subscription) { + public final void deleteSubscription(SubscriptionName subscription) { DeleteSubscriptionRequest request = DeleteSubscriptionRequest.newBuilder() .setSubscription(subscription == null ? null : subscription.toString()) @@ -943,7 +868,7 @@ public final void deleteSubscription(ProjectSubscriptionName subscription) { * *
{@code
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
+   *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   subscriptionAdminClient.deleteSubscription(subscription);
    * }
    * }
@@ -971,7 +896,7 @@ public final void deleteSubscription(String subscription) { * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * DeleteSubscriptionRequest request = * DeleteSubscriptionRequest.newBuilder() - * .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + * .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .build(); * subscriptionAdminClient.deleteSubscription(request); * } @@ -997,7 +922,7 @@ public final void deleteSubscription(DeleteSubscriptionRequest request) { * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * DeleteSubscriptionRequest request = * DeleteSubscriptionRequest.newBuilder() - * .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + * .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .build(); * ApiFuture future = * subscriptionAdminClient.deleteSubscriptionCallable().futureCall(request); @@ -1021,7 +946,7 @@ public final UnaryCallable deleteSubscriptionC * *
{@code
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   List ackIds = new ArrayList<>();
    *   int ackDeadlineSeconds = 2135351438;
    *   subscriptionAdminClient.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds);
@@ -1040,8 +965,8 @@ public final UnaryCallable deleteSubscriptionC
    *     600 seconds (10 minutes).
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
-  /* package-private */ final void modifyAckDeadline(
-      ProjectSubscriptionName subscription, List ackIds, int ackDeadlineSeconds) {
+  public final void modifyAckDeadline(
+      SubscriptionName subscription, List ackIds, int ackDeadlineSeconds) {
     ModifyAckDeadlineRequest request =
         ModifyAckDeadlineRequest.newBuilder()
             .setSubscription(subscription == null ? null : subscription.toString())
@@ -1062,7 +987,7 @@ public final UnaryCallable deleteSubscriptionC
    *
    * 
{@code
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
+   *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   List ackIds = new ArrayList<>();
    *   int ackDeadlineSeconds = 2135351438;
    *   subscriptionAdminClient.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds);
@@ -1105,7 +1030,7 @@ public final void modifyAckDeadline(
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ModifyAckDeadlineRequest request =
    *       ModifyAckDeadlineRequest.newBuilder()
-   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
+   *           .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    *           .addAllAckIds(new ArrayList())
    *           .setAckDeadlineSeconds(2135351438)
    *           .build();
@@ -1133,7 +1058,7 @@ public final void modifyAckDeadline(ModifyAckDeadlineRequest request) {
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ModifyAckDeadlineRequest request =
    *       ModifyAckDeadlineRequest.newBuilder()
-   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
+   *           .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    *           .addAllAckIds(new ArrayList())
    *           .setAckDeadlineSeconds(2135351438)
    *           .build();
@@ -1160,7 +1085,7 @@ public final UnaryCallable modifyAckDeadlineCal
    *
    * 
{@code
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   List ackIds = new ArrayList<>();
    *   subscriptionAdminClient.acknowledge(subscription, ackIds);
    * }
@@ -1172,7 +1097,7 @@ public final UnaryCallable modifyAckDeadlineCal
    *     returned by the Pub/Sub system in the `Pull` response. Must not be empty.
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
-  public final void acknowledge(ProjectSubscriptionName subscription, List ackIds) {
+  public final void acknowledge(SubscriptionName subscription, List ackIds) {
     AcknowledgeRequest request =
         AcknowledgeRequest.newBuilder()
             .setSubscription(subscription == null ? null : subscription.toString())
@@ -1193,7 +1118,7 @@ public final void acknowledge(ProjectSubscriptionName subscription, List
    *
    * 
{@code
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
+   *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   List ackIds = new ArrayList<>();
    *   subscriptionAdminClient.acknowledge(subscription, ackIds);
    * }
@@ -1225,7 +1150,7 @@ public final void acknowledge(String subscription, List ackIds) {
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   AcknowledgeRequest request =
    *       AcknowledgeRequest.newBuilder()
-   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
+   *           .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    *           .addAllAckIds(new ArrayList())
    *           .build();
    *   subscriptionAdminClient.acknowledge(request);
@@ -1253,7 +1178,7 @@ public final void acknowledge(AcknowledgeRequest request) {
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   AcknowledgeRequest request =
    *       AcknowledgeRequest.newBuilder()
-   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
+   *           .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    *           .addAllAckIds(new ArrayList())
    *           .build();
    *   ApiFuture future = subscriptionAdminClient.acknowledgeCallable().futureCall(request);
@@ -1275,7 +1200,7 @@ public final UnaryCallable acknowledgeCallable() {
    *
    * 
{@code
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   int maxMessages = 496131527;
    *   PullResponse response = subscriptionAdminClient.pull(subscription, maxMessages);
    * }
@@ -1287,7 +1212,7 @@ public final UnaryCallable acknowledgeCallable() {
    *     a positive integer. The Pub/Sub system may return fewer than the number specified.
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
-  public final PullResponse pull(ProjectSubscriptionName subscription, int maxMessages) {
+  public final PullResponse pull(SubscriptionName subscription, int maxMessages) {
     PullRequest request =
         PullRequest.newBuilder()
             .setSubscription(subscription == null ? null : subscription.toString())
@@ -1305,7 +1230,7 @@ public final PullResponse pull(ProjectSubscriptionName subscription, int maxMess
    *
    * 
{@code
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
+   *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   int maxMessages = 496131527;
    *   PullResponse response = subscriptionAdminClient.pull(subscription, maxMessages);
    * }
@@ -1332,7 +1257,7 @@ public final PullResponse pull(String subscription, int maxMessages) {
    *
    * 
{@code
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   boolean returnImmediately = true;
    *   int maxMessages = 496131527;
    *   PullResponse response =
@@ -1352,8 +1277,8 @@ public final PullResponse pull(String subscription, int maxMessages) {
    *     a positive integer. The Pub/Sub system may return fewer than the number specified.
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
-  /* package-private */ final PullResponse pull(
-      ProjectSubscriptionName subscription, boolean returnImmediately, int maxMessages) {
+  public final PullResponse pull(
+      SubscriptionName subscription, boolean returnImmediately, int maxMessages) {
     PullRequest request =
         PullRequest.newBuilder()
             .setSubscription(subscription == null ? null : subscription.toString())
@@ -1372,7 +1297,7 @@ public final PullResponse pull(String subscription, int maxMessages) {
    *
    * 
{@code
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
+   *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   boolean returnImmediately = true;
    *   int maxMessages = 496131527;
    *   PullResponse response =
@@ -1413,7 +1338,7 @@ public final PullResponse pull(String subscription, boolean returnImmediately, i
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   PullRequest request =
    *       PullRequest.newBuilder()
-   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
+   *           .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    *           .setReturnImmediately(true)
    *           .setMaxMessages(496131527)
    *           .build();
@@ -1439,7 +1364,7 @@ public final PullResponse pull(PullRequest request) {
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   PullRequest request =
    *       PullRequest.newBuilder()
-   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
+   *           .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    *           .setReturnImmediately(true)
    *           .setMaxMessages(496131527)
    *           .build();
@@ -1470,7 +1395,7 @@ public final UnaryCallable pullCallable() {
    *       subscriptionAdminClient.streamingPullCallable().call();
    *   StreamingPullRequest request =
    *       StreamingPullRequest.newBuilder()
-   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
+   *           .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    *           .addAllAckIds(new ArrayList())
    *           .addAllModifyDeadlineSeconds(new ArrayList())
    *           .addAllModifyDeadlineAckIds(new ArrayList())
@@ -1504,7 +1429,7 @@ public final UnaryCallable pullCallable() {
    *
    * 
{@code
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   PushConfig pushConfig = PushConfig.newBuilder().build();
    *   subscriptionAdminClient.modifyPushConfig(subscription, pushConfig);
    * }
@@ -1518,7 +1443,7 @@ public final UnaryCallable pullCallable() {
    *     pausing the subscription if `Pull` or `StreamingPull` is not called.
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
-  public final void modifyPushConfig(ProjectSubscriptionName subscription, PushConfig pushConfig) {
+  public final void modifyPushConfig(SubscriptionName subscription, PushConfig pushConfig) {
     ModifyPushConfigRequest request =
         ModifyPushConfigRequest.newBuilder()
             .setSubscription(subscription == null ? null : subscription.toString())
@@ -1540,7 +1465,7 @@ public final void modifyPushConfig(ProjectSubscriptionName subscription, PushCon
    *
    * 
{@code
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
+   *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   PushConfig pushConfig = PushConfig.newBuilder().build();
    *   subscriptionAdminClient.modifyPushConfig(subscription, pushConfig);
    * }
@@ -1578,7 +1503,7 @@ public final void modifyPushConfig(String subscription, PushConfig pushConfig) {
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ModifyPushConfigRequest request =
    *       ModifyPushConfigRequest.newBuilder()
-   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
+   *           .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    *           .setPushConfig(PushConfig.newBuilder().build())
    *           .build();
    *   subscriptionAdminClient.modifyPushConfig(request);
@@ -1607,7 +1532,7 @@ public final void modifyPushConfig(ModifyPushConfigRequest request) {
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    *   ModifyPushConfigRequest request =
    *       ModifyPushConfigRequest.newBuilder()
-   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
+   *           .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    *           .setPushConfig(PushConfig.newBuilder().build())
    *           .build();
    *   ApiFuture future =
@@ -1632,7 +1557,7 @@ public final UnaryCallable modifyPushConfigCalla
    *
    * 
{@code
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
+   *   SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    *   Snapshot response = subscriptionAdminClient.getSnapshot(snapshot);
    * }
    * }
@@ -1641,7 +1566,7 @@ public final UnaryCallable modifyPushConfigCalla * `projects/{project}/snapshots/{snap}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Snapshot getSnapshot(ProjectSnapshotName snapshot) { + public final Snapshot getSnapshot(SnapshotName snapshot) { GetSnapshotRequest request = GetSnapshotRequest.newBuilder() .setSnapshot(snapshot == null ? null : snapshot.toString()) @@ -1660,7 +1585,7 @@ public final Snapshot getSnapshot(ProjectSnapshotName snapshot) { * *
{@code
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   String snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
+   *   String snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
    *   Snapshot response = subscriptionAdminClient.getSnapshot(snapshot);
    * }
    * }
@@ -1687,7 +1612,7 @@ public final Snapshot getSnapshot(String snapshot) { * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * GetSnapshotRequest request = * GetSnapshotRequest.newBuilder() - * .setSnapshot(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + * .setSnapshot(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) * .build(); * Snapshot response = subscriptionAdminClient.getSnapshot(request); * } @@ -1713,7 +1638,7 @@ public final Snapshot getSnapshot(GetSnapshotRequest request) { * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * GetSnapshotRequest request = * GetSnapshotRequest.newBuilder() - * .setSnapshot(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + * .setSnapshot(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) * .build(); * ApiFuture future = * subscriptionAdminClient.getSnapshotCallable().futureCall(request); @@ -1830,7 +1755,7 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = + * ApiFuture future = * subscriptionAdminClient.listSnapshotsPagedCallable().futureCall(request); * // Do something. * for (Snapshot element : future.get().iterateAll()) { @@ -1864,7 +1789,7 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque * while (true) { * ListSnapshotsResponse response = * subscriptionAdminClient.listSnapshotsCallable().call(request); - * for (Snapshot element : response.getSnapshotsList()) { + * for (Snapshot element : response.getResponsesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1900,8 +1825,8 @@ public final UnaryCallable listSnap * *
{@code
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
-   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
+   *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);
    * }
    * }
@@ -1920,8 +1845,7 @@ public final UnaryCallable listSnap * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Snapshot createSnapshot( - ProjectSnapshotName name, ProjectSubscriptionName subscription) { + public final Snapshot createSnapshot(SnapshotName name, SubscriptionName subscription) { CreateSnapshotRequest request = CreateSnapshotRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1949,8 +1873,8 @@ public final Snapshot createSnapshot( * *
{@code
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
-   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
+   *   SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
+   *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);
    * }
    * }
@@ -1969,7 +1893,7 @@ public final Snapshot createSnapshot( * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Snapshot createSnapshot(ProjectSnapshotName name, String subscription) { + public final Snapshot createSnapshot(SnapshotName name, String subscription) { CreateSnapshotRequest request = CreateSnapshotRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1997,8 +1921,8 @@ public final Snapshot createSnapshot(ProjectSnapshotName name, String subscripti * *
{@code
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   String name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
-   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   String name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
+   *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);
    * }
    * }
@@ -2017,7 +1941,7 @@ public final Snapshot createSnapshot(ProjectSnapshotName name, String subscripti * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Snapshot createSnapshot(String name, ProjectSubscriptionName subscription) { + public final Snapshot createSnapshot(String name, SubscriptionName subscription) { CreateSnapshotRequest request = CreateSnapshotRequest.newBuilder() .setName(name) @@ -2045,8 +1969,8 @@ public final Snapshot createSnapshot(String name, ProjectSubscriptionName subscr * *
{@code
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   String name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
-   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
+   *   String name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
+   *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);
    * }
    * }
@@ -2092,8 +2016,8 @@ public final Snapshot createSnapshot(String name, String subscription) { * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * CreateSnapshotRequest request = * CreateSnapshotRequest.newBuilder() - * .setName(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) - * .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + * .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + * .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .putAllLabels(new HashMap()) * .build(); * Snapshot response = subscriptionAdminClient.createSnapshot(request); @@ -2128,8 +2052,8 @@ public final Snapshot createSnapshot(CreateSnapshotRequest request) { * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * CreateSnapshotRequest request = * CreateSnapshotRequest.newBuilder() - * .setName(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) - * .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + * .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + * .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .putAllLabels(new HashMap()) * .build(); * ApiFuture future = @@ -2211,7 +2135,7 @@ public final UnaryCallable updateSnapshotCallab * *
{@code
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
+   *   SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    *   subscriptionAdminClient.deleteSnapshot(snapshot);
    * }
    * }
@@ -2220,7 +2144,7 @@ public final UnaryCallable updateSnapshotCallab * `projects/{project}/snapshots/{snap}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSnapshot(ProjectSnapshotName snapshot) { + public final void deleteSnapshot(SnapshotName snapshot) { DeleteSnapshotRequest request = DeleteSnapshotRequest.newBuilder() .setSnapshot(snapshot == null ? null : snapshot.toString()) @@ -2242,7 +2166,7 @@ public final void deleteSnapshot(ProjectSnapshotName snapshot) { * *
{@code
    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   String snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
+   *   String snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
    *   subscriptionAdminClient.deleteSnapshot(snapshot);
    * }
    * }
@@ -2273,7 +2197,7 @@ public final void deleteSnapshot(String snapshot) { * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * DeleteSnapshotRequest request = * DeleteSnapshotRequest.newBuilder() - * .setSnapshot(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + * .setSnapshot(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) * .build(); * subscriptionAdminClient.deleteSnapshot(request); * } @@ -2302,7 +2226,7 @@ public final void deleteSnapshot(DeleteSnapshotRequest request) { * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * DeleteSnapshotRequest request = * DeleteSnapshotRequest.newBuilder() - * .setSnapshot(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + * .setSnapshot(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) * .build(); * ApiFuture future = * subscriptionAdminClient.deleteSnapshotCallable().futureCall(request); @@ -2330,7 +2254,7 @@ public final UnaryCallable deleteSnapshotCallable( * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * SeekRequest request = * SeekRequest.newBuilder() - * .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + * .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .build(); * SeekResponse response = subscriptionAdminClient.seek(request); * } @@ -2358,7 +2282,7 @@ public final SeekResponse seek(SeekRequest request) { * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * SeekRequest request = * SeekRequest.newBuilder() - * .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + * .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .build(); * ApiFuture future = subscriptionAdminClient.seekCallable().futureCall(request); * // Do something. @@ -2396,37 +2320,6 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { return setIamPolicyCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - *

Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED - * - *

Sample code: - * - *


-   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
-   *   Policy policy = Policy.newBuilder().build();
-   *   Policy response = subscriptionAdminClient.setIamPolicy(formattedResource, policy);
-   * }
-   * 
- * - * @param resource REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the - * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud - * Platform services (such as Projects) might reject them. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #setIamPolicy(SetIamPolicyRequest)} instead. - */ - @Deprecated - public final Policy setIamPolicy(String resource, Policy policy) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); - return setIamPolicy(request); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Sets the access control policy on the specified resource. Replacesany existing policy. @@ -2477,31 +2370,6 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { return getIamPolicyCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists - * and does not have a policy set. - * - *

Sample code: - * - *


-   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
-   *   Policy response = subscriptionAdminClient.getIamPolicy(formattedResource);
-   * }
-   * 
- * - * @param resource REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #getIamPolicy(GetIamPolicyRequest)} instead. - */ - @Deprecated - public final Policy getIamPolicy(String resource) { - GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); - return getIamPolicy(request); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the access control policy for a resource. Returns an empty policyif the resource exists @@ -2555,44 +2423,6 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq return testIamPermissionsCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Returns permissions that a caller has on the specified resource. If the resource does not - * exist, this will return an empty set of permissions, not a NOT_FOUND error. - * - *

Note: This operation is designed to be used for building permission-aware UIs and - * command-line tools, not for authorization checking. This operation may "fail open" without - * warning. - * - *

Sample code: - * - *


-   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
-   *   List<String> permissions = new ArrayList<>();
-   *   TestIamPermissionsResponse response = subscriptionAdminClient.testIamPermissions(formattedResource, permissions);
-   * }
-   * 
- * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See the - * operation documentation for the appropriate value for this field. - * @param permissions The set of permissions to check for the `resource`. Permissions with - * wildcards (such as '*' or 'storage.*') are not allowed. For more information see - * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #testIamPermissions(TestIamPermissionsRequest)} instead. - */ - @Deprecated - public final TestIamPermissionsResponse testIamPermissions( - String resource, List permissions) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(resource) - .addAllPermissions(permissions) - .build(); - return testIamPermissions(request); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns permissions that a caller has on the specified resource. If theresource does not exist, @@ -2655,10 +2485,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListSubscriptionsPagedResponse extends AbstractPagedListResponse< - ListSubscriptionsRequest, - ListSubscriptionsResponse, - Subscription, - ListSubscriptionsPage, + ListSubscriptionsRequest, ListSubscriptionsResponse, Subscription, ListSubscriptionsPage, ListSubscriptionsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2679,9 +2506,7 @@ private ListSubscriptionsPagedResponse(ListSubscriptionsPage page) { public static class ListSubscriptionsPage extends AbstractPage< - ListSubscriptionsRequest, - ListSubscriptionsResponse, - Subscription, + ListSubscriptionsRequest, ListSubscriptionsResponse, Subscription, ListSubscriptionsPage> { private ListSubscriptionsPage( @@ -2711,10 +2536,7 @@ public ApiFuture createPageAsync( public static class ListSubscriptionsFixedSizeCollection extends AbstractFixedSizeCollection< - ListSubscriptionsRequest, - ListSubscriptionsResponse, - Subscription, - ListSubscriptionsPage, + ListSubscriptionsRequest, ListSubscriptionsResponse, Subscription, ListSubscriptionsPage, ListSubscriptionsFixedSizeCollection> { private ListSubscriptionsFixedSizeCollection( @@ -2735,10 +2557,7 @@ protected ListSubscriptionsFixedSizeCollection createCollection( public static class ListSnapshotsPagedResponse extends AbstractPagedListResponse< - ListSnapshotsRequest, - ListSnapshotsResponse, - Snapshot, - ListSnapshotsPage, + ListSnapshotsRequest, ListSnapshotsResponse, Snapshot, ListSnapshotsPage, ListSnapshotsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2788,10 +2607,7 @@ public ApiFuture createPageAsync( public static class ListSnapshotsFixedSizeCollection extends AbstractFixedSizeCollection< - ListSnapshotsRequest, - ListSnapshotsResponse, - Snapshot, - ListSnapshotsPage, + ListSnapshotsRequest, ListSnapshotsResponse, Snapshot, ListSnapshotsPage, ListSnapshotsFixedSizeCollection> { private ListSnapshotsFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java similarity index 98% rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java index a90bfd141..578102ebe 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java +++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -29,6 +29,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.pubsub.v1.stub.SubscriberStubSettings; @@ -71,9 +72,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java similarity index 82% rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 1a9ba2887..dfbbe0ebe 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -27,8 +27,6 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.pubsub.v1.stub.PublisherStub; import com.google.cloud.pubsub.v1.stub.PublisherStubSettings; -import com.google.common.base.Function; -import com.google.common.collect.Iterables; import com.google.common.util.concurrent.MoreExecutors; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; @@ -47,8 +45,6 @@ import com.google.pubsub.v1.ListTopicsRequest; import com.google.pubsub.v1.ListTopicsResponse; import com.google.pubsub.v1.ProjectName; -import com.google.pubsub.v1.ProjectSubscriptionName; -import com.google.pubsub.v1.ProjectTopicName; import com.google.pubsub.v1.PublishRequest; import com.google.pubsub.v1.PublishResponse; import com.google.pubsub.v1.PubsubMessage; @@ -82,13 +78,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -224,35 +220,6 @@ public final Topic createTopic(String name) { return createTopic(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates the given topic with the given name. See the <a - * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name - * rules</a>. - * - *

Sample code: - * - *


-   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
-   *   ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
-   *   Topic response = topicAdminClient.createTopic(name);
-   * }
-   * 
- * - * @param name Required. The name of the topic. It must have the format - * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, and contain only - * letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), - * tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in - * length, and it must not start with `"goog"`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #createTopic(TopicName)} instead. - */ - @Deprecated - public final Topic createTopic(ProjectTopicName name) { - Topic request = Topic.newBuilder().setName(name == null ? null : name.toString()).build(); - return createTopic(request); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates the given topic with the given name. See the [resource name rules] @@ -504,31 +471,6 @@ public final Topic getTopic(String topic) { return getTopic(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets the configuration of a topic. - * - *

Sample code: - * - *


-   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
-   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
-   *   Topic response = topicAdminClient.getTopic(topic);
-   * }
-   * 
- * - * @param topic Required. The name of the topic to get. Format is - * `projects/{project}/topics/{topic}`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #getTopic(TopicName)} instead. - */ - @Deprecated - public final Topic getTopic(ProjectTopicName topic) { - GetTopicRequest request = - GetTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build(); - return getTopic(request); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the configuration of a topic. @@ -666,7 +608,7 @@ public final ListTopicsPagedResponse listTopics(ListTopicsRequest request) { * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = topicAdminClient.listTopicsPagedCallable().futureCall(request); + * ApiFuture future = topicAdminClient.listTopicsPagedCallable().futureCall(request); * // Do something. * for (Topic element : future.get().iterateAll()) { * // doThingsWith(element); @@ -694,7 +636,7 @@ public final UnaryCallable listTopic * .build(); * while (true) { * ListTopicsResponse response = topicAdminClient.listTopicsCallable().call(request); - * for (Topic element : response.getTopicsList()) { + * for (Topic element : response.getResponsesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -763,35 +705,6 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(String t return listTopicSubscriptions(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists the names of the subscriptions on this topic. - * - *

Sample code: - * - *


-   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
-   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
-   *   for (ProjectSubscriptionName element : topicAdminClient.listTopicSubscriptions(topic).iterateAllAsProjectSubscriptionName()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * 
- * - * @param topic Required. The name of the topic that subscriptions are attached to. Format is - * `projects/{project}/topics/{topic}`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #listTopicSubscriptions(TopicName)} instead. - */ - @Deprecated - public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(ProjectTopicName topic) { - ListTopicSubscriptionsRequest request = - ListTopicSubscriptionsRequest.newBuilder() - .setTopic(topic == null ? null : topic.toString()) - .build(); - return listTopicSubscriptions(request); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the names of the attached subscriptions on this topic. @@ -834,7 +747,7 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = + * ApiFuture future = * topicAdminClient.listTopicSubscriptionsPagedCallable().futureCall(request); * // Do something. * for (String element : future.get().iterateAll()) { @@ -865,7 +778,7 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( * while (true) { * ListTopicSubscriptionsResponse response = * topicAdminClient.listTopicSubscriptionsCallable().call(request); - * for (String element : response.getSubscriptionsList()) { + * for (String element : response.getResponsesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -989,7 +902,7 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots( * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = + * ApiFuture future = * topicAdminClient.listTopicSnapshotsPagedCallable().futureCall(request); * // Do something. * for (String element : future.get().iterateAll()) { @@ -1023,7 +936,7 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots( * while (true) { * ListTopicSnapshotsResponse response = * topicAdminClient.listTopicSnapshotsCallable().call(request); - * for (String element : response.getSnapshotsList()) { + * for (String element : response.getResponsesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1092,34 +1005,6 @@ public final void deleteTopic(String topic) { deleteTopic(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does not exist. After a - * topic is deleted, a new topic may be created with the same name; this is an entirely new topic - * with none of the old configuration or subscriptions. Existing subscriptions to this topic are - * not deleted, but their `topic` field is set to `_deleted-topic_`. - * - *

Sample code: - * - *


-   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
-   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
-   *   topicAdminClient.deleteTopic(topic);
-   * }
-   * 
- * - * @param topic Required. Name of the topic to delete. Format is - * `projects/{project}/topics/{topic}`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #deleteTopic(TopicName)} instead. - */ - @Deprecated - public final void deleteTopic(ProjectTopicName topic) { - DeleteTopicRequest request = - DeleteTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build(); - deleteTopic(request); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does not exist. After a @@ -1183,7 +1068,7 @@ public final UnaryCallable deleteTopicCallable() { * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { * DetachSubscriptionRequest request = * DetachSubscriptionRequest.newBuilder() - * .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + * .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .build(); * DetachSubscriptionResponse response = topicAdminClient.detachSubscription(request); * } @@ -1208,7 +1093,7 @@ public final DetachSubscriptionResponse detachSubscription(DetachSubscriptionReq * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { * DetachSubscriptionRequest request = * DetachSubscriptionRequest.newBuilder() - * .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + * .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .build(); * ApiFuture future = * topicAdminClient.detachSubscriptionCallable().futureCall(request); @@ -1248,37 +1133,6 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { return setIamPolicyCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - *

Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED - * - *

Sample code: - * - *


-   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
-   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
-   *   Policy policy = Policy.newBuilder().build();
-   *   Policy response = topicAdminClient.setIamPolicy(formattedResource, policy);
-   * }
-   * 
- * - * @param resource REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the - * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud - * Platform services (such as Projects) might reject them. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #setIamPolicy(SetIamPolicyRequest)} instead. - */ - @Deprecated - public final Policy setIamPolicy(String resource, Policy policy) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); - return setIamPolicy(request); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Sets the access control policy on the specified resource. Replacesany existing policy. @@ -1329,31 +1183,6 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { return getIamPolicyCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists - * and does not have a policy set. - * - *

Sample code: - * - *


-   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
-   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
-   *   Policy response = topicAdminClient.getIamPolicy(formattedResource);
-   * }
-   * 
- * - * @param resource REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #getIamPolicy(GetIamPolicyRequest)} instead. - */ - @Deprecated - public final Policy getIamPolicy(String resource) { - GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); - return getIamPolicy(request); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the access control policy for a resource. Returns an empty policyif the resource exists @@ -1407,44 +1236,6 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq return testIamPermissionsCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Returns permissions that a caller has on the specified resource. If the resource does not - * exist, this will return an empty set of permissions, not a NOT_FOUND error. - * - *

Note: This operation is designed to be used for building permission-aware UIs and - * command-line tools, not for authorization checking. This operation may "fail open" without - * warning. - * - *

Sample code: - * - *


-   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
-   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
-   *   List<String> permissions = new ArrayList<>();
-   *   TestIamPermissionsResponse response = topicAdminClient.testIamPermissions(formattedResource, permissions);
-   * }
-   * 
- * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See the - * operation documentation for the appropriate value for this field. - * @param permissions The set of permissions to check for the `resource`. Permissions with - * wildcards (such as '*' or 'storage.*') are not allowed. For more information see - * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #testIamPermissions(TestIamPermissionsRequest)} instead. - */ - @Deprecated - public final TestIamPermissionsResponse testIamPermissions( - String resource, List permissions) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(resource) - .addAllPermissions(permissions) - .build(); - return testIamPermissions(request); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns permissions that a caller has on the specified resource. If theresource does not exist, @@ -1507,10 +1298,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListTopicsPagedResponse extends AbstractPagedListResponse< - ListTopicsRequest, - ListTopicsResponse, - Topic, - ListTopicsPage, + ListTopicsRequest, ListTopicsResponse, Topic, ListTopicsPage, ListTopicsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1557,10 +1345,7 @@ public ApiFuture createPageAsync( public static class ListTopicsFixedSizeCollection extends AbstractFixedSizeCollection< - ListTopicsRequest, - ListTopicsResponse, - Topic, - ListTopicsPage, + ListTopicsRequest, ListTopicsResponse, Topic, ListTopicsPage, ListTopicsFixedSizeCollection> { private ListTopicsFixedSizeCollection(List pages, int collectionSize) { @@ -1580,11 +1365,8 @@ protected ListTopicsFixedSizeCollection createCollection( public static class ListTopicSubscriptionsPagedResponse extends AbstractPagedListResponse< - ListTopicSubscriptionsRequest, - ListTopicSubscriptionsResponse, - String, - ListTopicSubscriptionsPage, - ListTopicSubscriptionsFixedSizeCollection> { + ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, String, + ListTopicSubscriptionsPage, ListTopicSubscriptionsFixedSizeCollection> { public static ApiFuture createAsync( PageContext context, @@ -1600,24 +1382,11 @@ public static ApiFuture createAsync( private ListTopicSubscriptionsPagedResponse(ListTopicSubscriptionsPage page) { super(page, ListTopicSubscriptionsFixedSizeCollection.createEmptyCollection()); } - - public Iterable iterateAllAsProjectSubscriptionName() { - return Iterables.transform( - iterateAll(), - new Function() { - @Override - public ProjectSubscriptionName apply(String arg0) { - return ProjectSubscriptionName.parse(arg0); - } - }); - } } public static class ListTopicSubscriptionsPage extends AbstractPage< - ListTopicSubscriptionsRequest, - ListTopicSubscriptionsResponse, - String, + ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, String, ListTopicSubscriptionsPage> { private ListTopicSubscriptionsPage( @@ -1643,37 +1412,12 @@ public ApiFuture createPageAsync( ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } - - public Iterable iterateAllAsProjectSubscriptionName() { - return Iterables.transform( - iterateAll(), - new Function() { - @Override - public ProjectSubscriptionName apply(String arg0) { - return ProjectSubscriptionName.parse(arg0); - } - }); - } - - public Iterable getValuesAsProjectSubscriptionName() { - return Iterables.transform( - getValues(), - new Function() { - @Override - public ProjectSubscriptionName apply(String arg0) { - return ProjectSubscriptionName.parse(arg0); - } - }); - } } public static class ListTopicSubscriptionsFixedSizeCollection extends AbstractFixedSizeCollection< - ListTopicSubscriptionsRequest, - ListTopicSubscriptionsResponse, - String, - ListTopicSubscriptionsPage, - ListTopicSubscriptionsFixedSizeCollection> { + ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, String, + ListTopicSubscriptionsPage, ListTopicSubscriptionsFixedSizeCollection> { private ListTopicSubscriptionsFixedSizeCollection( List pages, int collectionSize) { @@ -1689,25 +1433,11 @@ protected ListTopicSubscriptionsFixedSizeCollection createCollection( List pages, int collectionSize) { return new ListTopicSubscriptionsFixedSizeCollection(pages, collectionSize); } - - public Iterable getValuesAsProjectSubscriptionName() { - return Iterables.transform( - getValues(), - new Function() { - @Override - public ProjectSubscriptionName apply(String arg0) { - return ProjectSubscriptionName.parse(arg0); - } - }); - } } public static class ListTopicSnapshotsPagedResponse extends AbstractPagedListResponse< - ListTopicSnapshotsRequest, - ListTopicSnapshotsResponse, - String, - ListTopicSnapshotsPage, + ListTopicSnapshotsRequest, ListTopicSnapshotsResponse, String, ListTopicSnapshotsPage, ListTopicSnapshotsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1757,10 +1487,7 @@ public ApiFuture createPageAsync( public static class ListTopicSnapshotsFixedSizeCollection extends AbstractFixedSizeCollection< - ListTopicSnapshotsRequest, - ListTopicSnapshotsResponse, - String, - ListTopicSnapshotsPage, + ListTopicSnapshotsRequest, ListTopicSnapshotsResponse, String, ListTopicSnapshotsPage, ListTopicSnapshotsFixedSizeCollection> { private ListTopicSnapshotsFixedSizeCollection( diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java similarity index 96% rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java index 41ebfd68d..a27bc40ae 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -30,6 +30,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; 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.pubsub.v1.stub.PublisherStubSettings; @@ -64,9 +65,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -119,8 +120,7 @@ public UnaryCallSettings getTopicSettings() { /** Returns the object with the settings used for calls to listTopicSubscriptions. */ public PagedCallSettings< - ListTopicSubscriptionsRequest, - ListTopicSubscriptionsResponse, + ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, ListTopicSubscriptionsPagedResponse> listTopicSubscriptionsSettings() { return ((PublisherStubSettings) getStubSettings()).listTopicSubscriptionsSettings(); @@ -284,8 +284,7 @@ public UnaryCallSettings.Builder getTopicSettings() { /** Returns the builder for the settings used for calls to listTopicSubscriptions. */ public PagedCallSettings.Builder< - ListTopicSubscriptionsRequest, - ListTopicSubscriptionsResponse, + ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, ListTopicSubscriptionsPagedResponse> listTopicSubscriptionsSettings() { return getStubSettingsBuilder().listTopicSubscriptionsSettings(); diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/gapic_metadata.json similarity index 100% rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/gapic_metadata.json diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java similarity index 96% rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java index 820341320..128d54247 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java +++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java @@ -43,7 +43,7 @@ * *

{@code
  * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
- *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+ *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
  *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
  *   PushConfig pushConfig = PushConfig.newBuilder().build();
  *   int ackDeadlineSeconds = 2135351438;
diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java
similarity index 100%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java
diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java
similarity index 99%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java
index 5ccb0793e..e7f1114ed 100644
--- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java
@@ -51,6 +51,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;
 
@@ -369,7 +370,7 @@ protected GrpcPublisherStub(
         callableFactory.createUnaryCallable(
             updateTopicTransportSettings, settings.updateTopicSettings(), clientContext);
     this.publishCallable =
-        callableFactory.createUnaryCallable(
+        callableFactory.createBatchingCallable(
             publishTransportSettings, settings.publishSettings(), clientContext);
     this.getTopicCallable =
         callableFactory.createUnaryCallable(
diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java
similarity index 100%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java
diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java
similarity index 99%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java
index e5cd65fb6..2ec4a2731 100644
--- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java
@@ -45,6 +45,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-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java
similarity index 100%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java
diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java
similarity index 99%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java
index 523c0376a..f4da74706 100644
--- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java
@@ -59,6 +59,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-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java
similarity index 100%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java
diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
similarity index 97%
rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
index 166775ec3..0de55871f 100644
--- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
+++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
@@ -88,9 +88,9 @@
  * 

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -128,8 +128,7 @@ public class PublisherStubSettings extends StubSettings { private final PagedCallSettings listTopicsSettings; private final PagedCallSettings< - ListTopicSubscriptionsRequest, - ListTopicSubscriptionsResponse, + ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, ListTopicSubscriptionsPagedResponse> listTopicSubscriptionsSettings; private final PagedCallSettings< @@ -278,13 +277,11 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListTopicSubscriptionsRequest, - ListTopicSubscriptionsResponse, + ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, ListTopicSubscriptionsPagedResponse> LIST_TOPIC_SUBSCRIPTIONS_PAGE_STR_FACT = new PagedListResponseFactory< - ListTopicSubscriptionsRequest, - ListTopicSubscriptionsResponse, + ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, ListTopicSubscriptionsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -305,8 +302,7 @@ public ApiFuture getFuturePagedResponse( ListTopicSnapshotsRequest, ListTopicSnapshotsResponse, ListTopicSnapshotsPagedResponse> LIST_TOPIC_SNAPSHOTS_PAGE_STR_FACT = new PagedListResponseFactory< - ListTopicSnapshotsRequest, - ListTopicSnapshotsResponse, + ListTopicSnapshotsRequest, ListTopicSnapshotsResponse, ListTopicSnapshotsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -415,8 +411,7 @@ public UnaryCallSettings getTopicSettings() { /** Returns the object with the settings used for calls to listTopicSubscriptions. */ public PagedCallSettings< - ListTopicSubscriptionsRequest, - ListTopicSubscriptionsResponse, + ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, ListTopicSubscriptionsPagedResponse> listTopicSubscriptionsSettings() { return listTopicSubscriptionsSettings; @@ -556,8 +551,7 @@ public static class Builder extends StubSettings.Builder listTopicsSettings; private final PagedCallSettings.Builder< - ListTopicSubscriptionsRequest, - ListTopicSubscriptionsResponse, + ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, ListTopicSubscriptionsPagedResponse> listTopicSubscriptionsSettings; private final PagedCallSettings.Builder< @@ -844,8 +838,7 @@ public UnaryCallSettings.Builder getTopicSettings() { /** Returns the builder for the settings used for calls to listTopicSubscriptions. */ public PagedCallSettings.Builder< - ListTopicSubscriptionsRequest, - ListTopicSubscriptionsResponse, + ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, ListTopicSubscriptionsPagedResponse> listTopicSubscriptionsSettings() { return listTopicSubscriptionsSettings; diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java similarity index 100% rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java similarity index 98% rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java index fb8a87653..ab480e74f 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java @@ -71,9 +71,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java similarity index 100% rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java diff --git a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java similarity index 98% rename from google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java rename to owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 32733fbf9..c42ca6381 100644 --- a/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -86,9 +86,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -227,8 +227,7 @@ public Iterable extractResources(ListSnapshotsResponse payload) { ListSubscriptionsRequest, ListSubscriptionsResponse, ListSubscriptionsPagedResponse> LIST_SUBSCRIPTIONS_PAGE_STR_FACT = new PagedListResponseFactory< - ListSubscriptionsRequest, - ListSubscriptionsResponse, + ListSubscriptionsRequest, ListSubscriptionsResponse, ListSubscriptionsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -402,7 +401,8 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde /** Returns a builder for the default ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder().setMaxInboundMessageSize(20 << 20); + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); } public static TransportChannelProvider defaultTransportChannelProvider() { diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java similarity index 100% rename from google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java rename to owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java similarity index 100% rename from google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java rename to owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java similarity index 100% rename from google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java rename to owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java similarity index 100% rename from google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java rename to owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java similarity index 100% rename from google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java rename to owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java similarity index 100% rename from google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java rename to owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java similarity index 100% rename from google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java rename to owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java similarity index 100% rename from google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java rename to owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java similarity index 100% rename from google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java rename to owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java similarity index 93% rename from google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java rename to owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index 00753a6fb..9d53a7554 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -59,8 +59,6 @@ import com.google.pubsub.v1.ModifyAckDeadlineRequest; import com.google.pubsub.v1.ModifyPushConfigRequest; import com.google.pubsub.v1.ProjectName; -import com.google.pubsub.v1.ProjectSnapshotName; -import com.google.pubsub.v1.ProjectSubscriptionName; import com.google.pubsub.v1.PullRequest; import com.google.pubsub.v1.PullResponse; import com.google.pubsub.v1.PushConfig; @@ -69,9 +67,11 @@ import com.google.pubsub.v1.SeekRequest; import com.google.pubsub.v1.SeekResponse; import com.google.pubsub.v1.Snapshot; +import com.google.pubsub.v1.SnapshotName; import com.google.pubsub.v1.StreamingPullRequest; import com.google.pubsub.v1.StreamingPullResponse; import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.SubscriptionName; import com.google.pubsub.v1.TopicName; import com.google.pubsub.v1.UpdateSnapshotRequest; import com.google.pubsub.v1.UpdateSubscriptionRequest; @@ -136,7 +136,7 @@ public void tearDown() throws Exception { public void createSubscriptionTest() throws Exception { Subscription expectedResponse = Subscription.newBuilder() - .setName(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setPushConfig(PushConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) @@ -153,7 +153,7 @@ public void createSubscriptionTest() throws Exception { .build(); mockSubscriber.addResponse(expectedResponse); - ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); PushConfig pushConfig = PushConfig.newBuilder().build(); int ackDeadlineSeconds = 2135351438; @@ -182,7 +182,7 @@ public void createSubscriptionExceptionTest() throws Exception { mockSubscriber.addException(exception); try { - ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); PushConfig pushConfig = PushConfig.newBuilder().build(); int ackDeadlineSeconds = 2135351438; @@ -197,7 +197,7 @@ public void createSubscriptionExceptionTest() throws Exception { public void createSubscriptionTest2() throws Exception { Subscription expectedResponse = Subscription.newBuilder() - .setName(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setPushConfig(PushConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) @@ -214,7 +214,7 @@ public void createSubscriptionTest2() throws Exception { .build(); mockSubscriber.addResponse(expectedResponse); - ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); String topic = "topic110546223"; PushConfig pushConfig = PushConfig.newBuilder().build(); int ackDeadlineSeconds = 2135351438; @@ -243,7 +243,7 @@ public void createSubscriptionExceptionTest2() throws Exception { mockSubscriber.addException(exception); try { - ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); String topic = "topic110546223"; PushConfig pushConfig = PushConfig.newBuilder().build(); int ackDeadlineSeconds = 2135351438; @@ -258,7 +258,7 @@ public void createSubscriptionExceptionTest2() throws Exception { public void createSubscriptionTest3() throws Exception { Subscription expectedResponse = Subscription.newBuilder() - .setName(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setPushConfig(PushConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) @@ -319,7 +319,7 @@ public void createSubscriptionExceptionTest3() throws Exception { public void createSubscriptionTest4() throws Exception { Subscription expectedResponse = Subscription.newBuilder() - .setName(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setPushConfig(PushConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) @@ -380,7 +380,7 @@ public void createSubscriptionExceptionTest4() throws Exception { public void getSubscriptionTest() throws Exception { Subscription expectedResponse = Subscription.newBuilder() - .setName(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setPushConfig(PushConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) @@ -397,8 +397,7 @@ public void getSubscriptionTest() throws Exception { .build(); mockSubscriber.addResponse(expectedResponse); - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); Subscription actualResponse = client.getSubscription(subscription); Assert.assertEquals(expectedResponse, actualResponse); @@ -420,8 +419,7 @@ public void getSubscriptionExceptionTest() throws Exception { mockSubscriber.addException(exception); try { - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); client.getSubscription(subscription); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -433,7 +431,7 @@ public void getSubscriptionExceptionTest() throws Exception { public void getSubscriptionTest2() throws Exception { Subscription expectedResponse = Subscription.newBuilder() - .setName(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setPushConfig(PushConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) @@ -484,7 +482,7 @@ public void getSubscriptionExceptionTest2() throws Exception { public void updateSubscriptionTest() throws Exception { Subscription expectedResponse = Subscription.newBuilder() - .setName(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setPushConfig(PushConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) @@ -633,8 +631,7 @@ public void deleteSubscriptionTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockSubscriber.addResponse(expectedResponse); - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); client.deleteSubscription(subscription); @@ -655,8 +652,7 @@ public void deleteSubscriptionExceptionTest() throws Exception { mockSubscriber.addException(exception); try { - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); client.deleteSubscription(subscription); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -703,8 +699,7 @@ public void modifyAckDeadlineTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockSubscriber.addResponse(expectedResponse); - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); List ackIds = new ArrayList<>(); int ackDeadlineSeconds = 2135351438; @@ -729,8 +724,7 @@ public void modifyAckDeadlineExceptionTest() throws Exception { mockSubscriber.addException(exception); try { - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); List ackIds = new ArrayList<>(); int ackDeadlineSeconds = 2135351438; client.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds); @@ -785,8 +779,7 @@ public void acknowledgeTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockSubscriber.addResponse(expectedResponse); - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); List ackIds = new ArrayList<>(); client.acknowledge(subscription, ackIds); @@ -809,8 +802,7 @@ public void acknowledgeExceptionTest() throws Exception { mockSubscriber.addException(exception); try { - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); List ackIds = new ArrayList<>(); client.acknowledge(subscription, ackIds); Assert.fail("No exception raised"); @@ -862,8 +854,7 @@ public void pullTest() throws Exception { PullResponse.newBuilder().addAllReceivedMessages(new ArrayList()).build(); mockSubscriber.addResponse(expectedResponse); - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); int maxMessages = 496131527; PullResponse actualResponse = client.pull(subscription, maxMessages); @@ -887,8 +878,7 @@ public void pullExceptionTest() throws Exception { mockSubscriber.addException(exception); try { - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); int maxMessages = 496131527; client.pull(subscription, maxMessages); Assert.fail("No exception raised"); @@ -942,8 +932,7 @@ public void pullTest3() throws Exception { PullResponse.newBuilder().addAllReceivedMessages(new ArrayList()).build(); mockSubscriber.addResponse(expectedResponse); - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); boolean returnImmediately = true; int maxMessages = 496131527; @@ -969,8 +958,7 @@ public void pullExceptionTest3() throws Exception { mockSubscriber.addException(exception); try { - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); boolean returnImmediately = true; int maxMessages = 496131527; client.pull(subscription, returnImmediately, maxMessages); @@ -1033,7 +1021,7 @@ public void streamingPullTest() throws Exception { mockSubscriber.addResponse(expectedResponse); StreamingPullRequest request = StreamingPullRequest.newBuilder() - .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) .addAllAckIds(new ArrayList()) .addAllModifyDeadlineSeconds(new ArrayList()) .addAllModifyDeadlineAckIds(new ArrayList()) @@ -1064,7 +1052,7 @@ public void streamingPullExceptionTest() throws Exception { mockSubscriber.addException(exception); StreamingPullRequest request = StreamingPullRequest.newBuilder() - .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) .addAllAckIds(new ArrayList()) .addAllModifyDeadlineSeconds(new ArrayList()) .addAllModifyDeadlineAckIds(new ArrayList()) @@ -1098,8 +1086,7 @@ public void modifyPushConfigTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockSubscriber.addResponse(expectedResponse); - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); PushConfig pushConfig = PushConfig.newBuilder().build(); client.modifyPushConfig(subscription, pushConfig); @@ -1122,8 +1109,7 @@ public void modifyPushConfigExceptionTest() throws Exception { mockSubscriber.addException(exception); try { - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); PushConfig pushConfig = PushConfig.newBuilder().build(); client.modifyPushConfig(subscription, pushConfig); Assert.fail("No exception raised"); @@ -1173,14 +1159,14 @@ public void modifyPushConfigExceptionTest2() throws Exception { public void getSnapshotTest() throws Exception { Snapshot expectedResponse = Snapshot.newBuilder() - .setName(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) .build(); mockSubscriber.addResponse(expectedResponse); - ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]"); Snapshot actualResponse = client.getSnapshot(snapshot); Assert.assertEquals(expectedResponse, actualResponse); @@ -1202,7 +1188,7 @@ public void getSnapshotExceptionTest() throws Exception { mockSubscriber.addException(exception); try { - ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]"); client.getSnapshot(snapshot); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -1214,7 +1200,7 @@ public void getSnapshotExceptionTest() throws Exception { public void getSnapshotTest2() throws Exception { Snapshot expectedResponse = Snapshot.newBuilder() - .setName(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) @@ -1343,16 +1329,15 @@ public void listSnapshotsExceptionTest2() throws Exception { public void createSnapshotTest() throws Exception { Snapshot expectedResponse = Snapshot.newBuilder() - .setName(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) .build(); mockSubscriber.addResponse(expectedResponse); - ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); Snapshot actualResponse = client.createSnapshot(name, subscription); Assert.assertEquals(expectedResponse, actualResponse); @@ -1375,9 +1360,8 @@ public void createSnapshotExceptionTest() throws Exception { mockSubscriber.addException(exception); try { - ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); client.createSnapshot(name, subscription); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -1389,14 +1373,14 @@ public void createSnapshotExceptionTest() throws Exception { public void createSnapshotTest2() throws Exception { Snapshot expectedResponse = Snapshot.newBuilder() - .setName(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) .build(); mockSubscriber.addResponse(expectedResponse); - ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]"); String subscription = "subscription341203229"; Snapshot actualResponse = client.createSnapshot(name, subscription); @@ -1420,7 +1404,7 @@ public void createSnapshotExceptionTest2() throws Exception { mockSubscriber.addException(exception); try { - ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]"); String subscription = "subscription341203229"; client.createSnapshot(name, subscription); Assert.fail("No exception raised"); @@ -1433,7 +1417,7 @@ public void createSnapshotExceptionTest2() throws Exception { public void createSnapshotTest3() throws Exception { Snapshot expectedResponse = Snapshot.newBuilder() - .setName(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) @@ -1441,8 +1425,7 @@ public void createSnapshotTest3() throws Exception { mockSubscriber.addResponse(expectedResponse); String name = "name3373707"; - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); Snapshot actualResponse = client.createSnapshot(name, subscription); Assert.assertEquals(expectedResponse, actualResponse); @@ -1466,8 +1449,7 @@ public void createSnapshotExceptionTest3() throws Exception { try { String name = "name3373707"; - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); client.createSnapshot(name, subscription); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -1479,7 +1461,7 @@ public void createSnapshotExceptionTest3() throws Exception { public void createSnapshotTest4() throws Exception { Snapshot expectedResponse = Snapshot.newBuilder() - .setName(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) @@ -1523,7 +1505,7 @@ public void createSnapshotExceptionTest4() throws Exception { public void updateSnapshotTest() throws Exception { Snapshot expectedResponse = Snapshot.newBuilder() - .setName(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setExpireTime(Timestamp.newBuilder().build()) .putAllLabels(new HashMap()) @@ -1574,7 +1556,7 @@ public void deleteSnapshotTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockSubscriber.addResponse(expectedResponse); - ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]"); client.deleteSnapshot(snapshot); @@ -1595,7 +1577,7 @@ public void deleteSnapshotExceptionTest() throws Exception { mockSubscriber.addException(exception); try { - ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]"); client.deleteSnapshot(snapshot); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -1644,7 +1626,7 @@ public void seekTest() throws Exception { SeekRequest request = SeekRequest.newBuilder() - .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) .build(); SeekResponse actualResponse = client.seek(request); @@ -1671,7 +1653,7 @@ public void seekExceptionTest() throws Exception { try { SeekRequest request = SeekRequest.newBuilder() - .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) .build(); client.seek(request); Assert.fail("No exception raised"); diff --git a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java similarity index 99% rename from google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java rename to owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java index 4cf5a7502..02d6a5585 100644 --- a/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java +++ b/owl-bot-staging/v1/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java @@ -52,11 +52,11 @@ import com.google.pubsub.v1.ListTopicsResponse; import com.google.pubsub.v1.MessageStoragePolicy; import com.google.pubsub.v1.ProjectName; -import com.google.pubsub.v1.ProjectSubscriptionName; import com.google.pubsub.v1.PublishRequest; import com.google.pubsub.v1.PublishResponse; import com.google.pubsub.v1.PubsubMessage; import com.google.pubsub.v1.SchemaSettings; +import com.google.pubsub.v1.SubscriptionName; import com.google.pubsub.v1.Topic; import com.google.pubsub.v1.TopicName; import com.google.pubsub.v1.UpdateTopicRequest; @@ -764,7 +764,7 @@ public void detachSubscriptionTest() throws Exception { DetachSubscriptionRequest request = DetachSubscriptionRequest.newBuilder() - .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) .build(); DetachSubscriptionResponse actualResponse = client.detachSubscription(request); @@ -789,7 +789,7 @@ public void detachSubscriptionExceptionTest() throws Exception { try { DetachSubscriptionRequest request = DetachSubscriptionRequest.newBuilder() - .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) .build(); client.detachSubscription(request); Assert.fail("No exception raised"); diff --git a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java similarity index 50% rename from grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java rename to owl-bot-staging/v1/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java index 380561fd8..ae0f67bad 100644 --- a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java +++ b/owl-bot-staging/v1/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.pubsub.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *

  * The service that an application uses to manipulate topics, and to send
  * messages to a topic.
@@ -35,518 +18,401 @@ private PublisherGrpc() {}
   public static final String SERVICE_NAME = "google.pubsub.v1.Publisher";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic>
-      getCreateTopicMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateTopicMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateTopic",
       requestType = com.google.pubsub.v1.Topic.class,
       responseType = com.google.pubsub.v1.Topic.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor
-      getCreateTopicMethod() {
-    io.grpc.MethodDescriptor
-        getCreateTopicMethod;
+  public static io.grpc.MethodDescriptor getCreateTopicMethod() {
+    io.grpc.MethodDescriptor getCreateTopicMethod;
     if ((getCreateTopicMethod = PublisherGrpc.getCreateTopicMethod) == null) {
       synchronized (PublisherGrpc.class) {
         if ((getCreateTopicMethod = PublisherGrpc.getCreateTopicMethod) == null) {
-          PublisherGrpc.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.pubsub.v1.Topic.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.Topic.getDefaultInstance()))
-                      .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("CreateTopic"))
-                      .build();
+          PublisherGrpc.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.pubsub.v1.Topic.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.Topic.getDefaultInstance()))
+              .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("CreateTopic"))
+              .build();
         }
       }
     }
     return getCreateTopicMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic>
-      getUpdateTopicMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateTopicMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateTopic",
       requestType = com.google.pubsub.v1.UpdateTopicRequest.class,
       responseType = com.google.pubsub.v1.Topic.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic>
-      getUpdateTopicMethod() {
-    io.grpc.MethodDescriptor
-        getUpdateTopicMethod;
+  public static io.grpc.MethodDescriptor getUpdateTopicMethod() {
+    io.grpc.MethodDescriptor getUpdateTopicMethod;
     if ((getUpdateTopicMethod = PublisherGrpc.getUpdateTopicMethod) == null) {
       synchronized (PublisherGrpc.class) {
         if ((getUpdateTopicMethod = PublisherGrpc.getUpdateTopicMethod) == null) {
-          PublisherGrpc.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.pubsub.v1.UpdateTopicRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.Topic.getDefaultInstance()))
-                      .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("UpdateTopic"))
-                      .build();
+          PublisherGrpc.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.pubsub.v1.UpdateTopicRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.Topic.getDefaultInstance()))
+              .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("UpdateTopic"))
+              .build();
         }
       }
     }
     return getUpdateTopicMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse>
-      getPublishMethod;
+  private static volatile io.grpc.MethodDescriptor getPublishMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Publish",
       requestType = com.google.pubsub.v1.PublishRequest.class,
       responseType = com.google.pubsub.v1.PublishResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse>
-      getPublishMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse>
-        getPublishMethod;
+  public static io.grpc.MethodDescriptor getPublishMethod() {
+    io.grpc.MethodDescriptor getPublishMethod;
     if ((getPublishMethod = PublisherGrpc.getPublishMethod) == null) {
       synchronized (PublisherGrpc.class) {
         if ((getPublishMethod = PublisherGrpc.getPublishMethod) == null) {
-          PublisherGrpc.getPublishMethod =
-              getPublishMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Publish"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.PublishRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.PublishResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("Publish"))
-                      .build();
+          PublisherGrpc.getPublishMethod = getPublishMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Publish"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.PublishRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.PublishResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("Publish"))
+              .build();
         }
       }
     }
     return getPublishMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic>
-      getGetTopicMethod;
+  private static volatile io.grpc.MethodDescriptor getGetTopicMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetTopic",
       requestType = com.google.pubsub.v1.GetTopicRequest.class,
       responseType = com.google.pubsub.v1.Topic.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic>
-      getGetTopicMethod() {
-    io.grpc.MethodDescriptor
-        getGetTopicMethod;
+  public static io.grpc.MethodDescriptor getGetTopicMethod() {
+    io.grpc.MethodDescriptor getGetTopicMethod;
     if ((getGetTopicMethod = PublisherGrpc.getGetTopicMethod) == null) {
       synchronized (PublisherGrpc.class) {
         if ((getGetTopicMethod = PublisherGrpc.getGetTopicMethod) == null) {
-          PublisherGrpc.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.pubsub.v1.GetTopicRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.Topic.getDefaultInstance()))
-                      .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("GetTopic"))
-                      .build();
+          PublisherGrpc.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.pubsub.v1.GetTopicRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.Topic.getDefaultInstance()))
+              .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("GetTopic"))
+              .build();
         }
       }
     }
     return getGetTopicMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.ListTopicsRequest, com.google.pubsub.v1.ListTopicsResponse>
-      getListTopicsMethod;
+  private static volatile io.grpc.MethodDescriptor getListTopicsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListTopics",
       requestType = com.google.pubsub.v1.ListTopicsRequest.class,
       responseType = com.google.pubsub.v1.ListTopicsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.ListTopicsRequest, com.google.pubsub.v1.ListTopicsResponse>
-      getListTopicsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.pubsub.v1.ListTopicsRequest, com.google.pubsub.v1.ListTopicsResponse>
-        getListTopicsMethod;
+  public static io.grpc.MethodDescriptor getListTopicsMethod() {
+    io.grpc.MethodDescriptor getListTopicsMethod;
     if ((getListTopicsMethod = PublisherGrpc.getListTopicsMethod) == null) {
       synchronized (PublisherGrpc.class) {
         if ((getListTopicsMethod = PublisherGrpc.getListTopicsMethod) == null) {
-          PublisherGrpc.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.pubsub.v1.ListTopicsRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.ListTopicsResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("ListTopics"))
-                      .build();
+          PublisherGrpc.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.pubsub.v1.ListTopicsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.ListTopicsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("ListTopics"))
+              .build();
         }
       }
     }
     return getListTopicsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.ListTopicSubscriptionsRequest,
-          com.google.pubsub.v1.ListTopicSubscriptionsResponse>
-      getListTopicSubscriptionsMethod;
+  private static volatile io.grpc.MethodDescriptor getListTopicSubscriptionsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListTopicSubscriptions",
       requestType = com.google.pubsub.v1.ListTopicSubscriptionsRequest.class,
       responseType = com.google.pubsub.v1.ListTopicSubscriptionsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.ListTopicSubscriptionsRequest,
-          com.google.pubsub.v1.ListTopicSubscriptionsResponse>
-      getListTopicSubscriptionsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.pubsub.v1.ListTopicSubscriptionsRequest,
-            com.google.pubsub.v1.ListTopicSubscriptionsResponse>
-        getListTopicSubscriptionsMethod;
+  public static io.grpc.MethodDescriptor getListTopicSubscriptionsMethod() {
+    io.grpc.MethodDescriptor getListTopicSubscriptionsMethod;
     if ((getListTopicSubscriptionsMethod = PublisherGrpc.getListTopicSubscriptionsMethod) == null) {
       synchronized (PublisherGrpc.class) {
-        if ((getListTopicSubscriptionsMethod = PublisherGrpc.getListTopicSubscriptionsMethod)
-            == null) {
-          PublisherGrpc.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.pubsub.v1.ListTopicSubscriptionsRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.ListTopicSubscriptionsResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new PublisherMethodDescriptorSupplier("ListTopicSubscriptions"))
-                      .build();
+        if ((getListTopicSubscriptionsMethod = PublisherGrpc.getListTopicSubscriptionsMethod) == null) {
+          PublisherGrpc.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.pubsub.v1.ListTopicSubscriptionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.ListTopicSubscriptionsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("ListTopicSubscriptions"))
+              .build();
         }
       }
     }
     return getListTopicSubscriptionsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.ListTopicSnapshotsRequest,
-          com.google.pubsub.v1.ListTopicSnapshotsResponse>
-      getListTopicSnapshotsMethod;
+  private static volatile io.grpc.MethodDescriptor getListTopicSnapshotsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListTopicSnapshots",
       requestType = com.google.pubsub.v1.ListTopicSnapshotsRequest.class,
       responseType = com.google.pubsub.v1.ListTopicSnapshotsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.ListTopicSnapshotsRequest,
-          com.google.pubsub.v1.ListTopicSnapshotsResponse>
-      getListTopicSnapshotsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.pubsub.v1.ListTopicSnapshotsRequest,
-            com.google.pubsub.v1.ListTopicSnapshotsResponse>
-        getListTopicSnapshotsMethod;
+  public static io.grpc.MethodDescriptor getListTopicSnapshotsMethod() {
+    io.grpc.MethodDescriptor getListTopicSnapshotsMethod;
     if ((getListTopicSnapshotsMethod = PublisherGrpc.getListTopicSnapshotsMethod) == null) {
       synchronized (PublisherGrpc.class) {
         if ((getListTopicSnapshotsMethod = PublisherGrpc.getListTopicSnapshotsMethod) == null) {
-          PublisherGrpc.getListTopicSnapshotsMethod =
-              getListTopicSnapshotsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTopicSnapshots"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.ListTopicSnapshotsRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.ListTopicSnapshotsResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new PublisherMethodDescriptorSupplier("ListTopicSnapshots"))
-                      .build();
+          PublisherGrpc.getListTopicSnapshotsMethod = getListTopicSnapshotsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTopicSnapshots"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.ListTopicSnapshotsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.ListTopicSnapshotsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("ListTopicSnapshots"))
+              .build();
         }
       }
     }
     return getListTopicSnapshotsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.DeleteTopicRequest, com.google.protobuf.Empty>
-      getDeleteTopicMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteTopicMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteTopic",
       requestType = com.google.pubsub.v1.DeleteTopicRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.DeleteTopicRequest, com.google.protobuf.Empty>
-      getDeleteTopicMethod() {
-    io.grpc.MethodDescriptor
-        getDeleteTopicMethod;
+  public static io.grpc.MethodDescriptor getDeleteTopicMethod() {
+    io.grpc.MethodDescriptor getDeleteTopicMethod;
     if ((getDeleteTopicMethod = PublisherGrpc.getDeleteTopicMethod) == null) {
       synchronized (PublisherGrpc.class) {
         if ((getDeleteTopicMethod = PublisherGrpc.getDeleteTopicMethod) == null) {
-          PublisherGrpc.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.pubsub.v1.DeleteTopicRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("DeleteTopic"))
-                      .build();
+          PublisherGrpc.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.pubsub.v1.DeleteTopicRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("DeleteTopic"))
+              .build();
         }
       }
     }
     return getDeleteTopicMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.DetachSubscriptionRequest,
-          com.google.pubsub.v1.DetachSubscriptionResponse>
-      getDetachSubscriptionMethod;
+  private static volatile io.grpc.MethodDescriptor getDetachSubscriptionMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DetachSubscription",
       requestType = com.google.pubsub.v1.DetachSubscriptionRequest.class,
       responseType = com.google.pubsub.v1.DetachSubscriptionResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.DetachSubscriptionRequest,
-          com.google.pubsub.v1.DetachSubscriptionResponse>
-      getDetachSubscriptionMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.pubsub.v1.DetachSubscriptionRequest,
-            com.google.pubsub.v1.DetachSubscriptionResponse>
-        getDetachSubscriptionMethod;
+  public static io.grpc.MethodDescriptor getDetachSubscriptionMethod() {
+    io.grpc.MethodDescriptor getDetachSubscriptionMethod;
     if ((getDetachSubscriptionMethod = PublisherGrpc.getDetachSubscriptionMethod) == null) {
       synchronized (PublisherGrpc.class) {
         if ((getDetachSubscriptionMethod = PublisherGrpc.getDetachSubscriptionMethod) == null) {
-          PublisherGrpc.getDetachSubscriptionMethod =
-              getDetachSubscriptionMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetachSubscription"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.DetachSubscriptionRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.DetachSubscriptionResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new PublisherMethodDescriptorSupplier("DetachSubscription"))
-                      .build();
+          PublisherGrpc.getDetachSubscriptionMethod = getDetachSubscriptionMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetachSubscription"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.DetachSubscriptionRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.DetachSubscriptionResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("DetachSubscription"))
+              .build();
         }
       }
     }
     return getDetachSubscriptionMethod;
   }
 
-  /** 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 PublisherStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public PublisherStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new PublisherStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public PublisherStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new PublisherStub(channel, callOptions);
+        }
+      };
     return PublisherStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static PublisherBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static PublisherBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public PublisherBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new PublisherBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public PublisherBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new PublisherBlockingStub(channel, callOptions);
+        }
+      };
     return PublisherBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static PublisherFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static PublisherFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public PublisherFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new PublisherFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public PublisherFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new PublisherFutureStub(channel, callOptions);
+        }
+      };
     return PublisherFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * The service that an application uses to manipulate topics, and to send
    * messages to a topic.
    * 
*/ - public abstract static class PublisherImplBase implements io.grpc.BindableService { + public static abstract class PublisherImplBase implements io.grpc.BindableService { /** - * - * *
      * Creates the given topic with the given name. See the [resource name rules]
      * (https://cloud.google.com/pubsub/docs/admin#resource_names).
      * 
*/ - public void createTopic( - com.google.pubsub.v1.Topic request, + public void createTopic(com.google.pubsub.v1.Topic request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateTopicMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateTopicMethod(), responseObserver); } /** - * - * *
      * Updates an existing topic. Note that certain properties of a
      * topic are not modifiable.
      * 
*/ - public void updateTopic( - com.google.pubsub.v1.UpdateTopicRequest request, + public void updateTopic(com.google.pubsub.v1.UpdateTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateTopicMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateTopicMethod(), responseObserver); } /** - * - * *
      * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
      * does not exist.
      * 
*/ - public void publish( - com.google.pubsub.v1.PublishRequest request, + public void publish(com.google.pubsub.v1.PublishRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPublishMethod(), responseObserver); } /** - * - * *
      * Gets the configuration of a topic.
      * 
*/ - public void getTopic( - com.google.pubsub.v1.GetTopicRequest request, + public void getTopic(com.google.pubsub.v1.GetTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTopicMethod(), responseObserver); } /** - * - * *
      * Lists matching topics.
      * 
*/ - public void listTopics( - com.google.pubsub.v1.ListTopicsRequest request, + public void listTopics(com.google.pubsub.v1.ListTopicsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTopicsMethod(), responseObserver); } /** - * - * *
      * Lists the names of the attached subscriptions on this topic.
      * 
*/ - public void listTopicSubscriptions( - com.google.pubsub.v1.ListTopicSubscriptionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListTopicSubscriptionsMethod(), responseObserver); + public void listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTopicSubscriptionsMethod(), responseObserver); } /** - * - * *
      * Lists the names of the snapshots on this topic. Snapshots are used in
      * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
@@ -555,17 +421,12 @@ public void listTopicSubscriptions(
      * state captured by a snapshot.
      * 
*/ - public void listTopicSnapshots( - com.google.pubsub.v1.ListTopicSnapshotsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListTopicSnapshotsMethod(), responseObserver); + public void listTopicSnapshots(com.google.pubsub.v1.ListTopicSnapshotsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTopicSnapshotsMethod(), responseObserver); } /** - * - * *
      * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
      * does not exist. After a topic is deleted, a new topic may be created with
@@ -574,16 +435,12 @@ public void listTopicSnapshots(
      * not deleted, but their `topic` field is set to `_deleted-topic_`.
      * 
*/ - public void deleteTopic( - com.google.pubsub.v1.DeleteTopicRequest request, + public void deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteTopicMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteTopicMethod(), responseObserver); } /** - * - * *
      * Detaches a subscription from this topic. All messages retained in the
      * subscription are dropped. Subsequent `Pull` and `StreamingPull` requests
@@ -591,192 +448,168 @@ public void deleteTopic(
      * subscription, pushes to the endpoint will stop.
      * 
*/ - public void detachSubscription( - com.google.pubsub.v1.DetachSubscriptionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDetachSubscriptionMethod(), responseObserver); + public void detachSubscription(com.google.pubsub.v1.DetachSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDetachSubscriptionMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers( - this, METHODID_CREATE_TOPIC))) + getCreateTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.Topic, + com.google.pubsub.v1.Topic>( + this, METHODID_CREATE_TOPIC))) .addMethod( - getUpdateTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic>( - this, METHODID_UPDATE_TOPIC))) + getUpdateTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.UpdateTopicRequest, + com.google.pubsub.v1.Topic>( + this, METHODID_UPDATE_TOPIC))) .addMethod( - getPublishMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse>( - this, METHODID_PUBLISH))) + getPublishMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.PublishRequest, + com.google.pubsub.v1.PublishResponse>( + this, METHODID_PUBLISH))) .addMethod( - getGetTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic>( - this, METHODID_GET_TOPIC))) + getGetTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.GetTopicRequest, + com.google.pubsub.v1.Topic>( + this, METHODID_GET_TOPIC))) .addMethod( - getListTopicsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListTopicsRequest, - com.google.pubsub.v1.ListTopicsResponse>(this, METHODID_LIST_TOPICS))) + getListTopicsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListTopicsRequest, + com.google.pubsub.v1.ListTopicsResponse>( + this, METHODID_LIST_TOPICS))) .addMethod( - getListTopicSubscriptionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListTopicSubscriptionsRequest, - com.google.pubsub.v1.ListTopicSubscriptionsResponse>( - this, METHODID_LIST_TOPIC_SUBSCRIPTIONS))) + getListTopicSubscriptionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListTopicSubscriptionsRequest, + com.google.pubsub.v1.ListTopicSubscriptionsResponse>( + this, METHODID_LIST_TOPIC_SUBSCRIPTIONS))) .addMethod( - getListTopicSnapshotsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListTopicSnapshotsRequest, - com.google.pubsub.v1.ListTopicSnapshotsResponse>( - this, METHODID_LIST_TOPIC_SNAPSHOTS))) + getListTopicSnapshotsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListTopicSnapshotsRequest, + com.google.pubsub.v1.ListTopicSnapshotsResponse>( + this, METHODID_LIST_TOPIC_SNAPSHOTS))) .addMethod( - getDeleteTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.DeleteTopicRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_TOPIC))) + getDeleteTopicMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DeleteTopicRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_TOPIC))) .addMethod( - getDetachSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.DetachSubscriptionRequest, - com.google.pubsub.v1.DetachSubscriptionResponse>( - this, METHODID_DETACH_SUBSCRIPTION))) + getDetachSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DetachSubscriptionRequest, + com.google.pubsub.v1.DetachSubscriptionResponse>( + this, METHODID_DETACH_SUBSCRIPTION))) .build(); } } /** - * - * *
    * The service that an application uses to manipulate topics, and to send
    * messages to a topic.
    * 
*/ public static final class PublisherStub extends io.grpc.stub.AbstractAsyncStub { - private PublisherStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private PublisherStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected PublisherStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected PublisherStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PublisherStub(channel, callOptions); } /** - * - * *
      * Creates the given topic with the given name. See the [resource name rules]
      * (https://cloud.google.com/pubsub/docs/admin#resource_names).
      * 
*/ - public void createTopic( - com.google.pubsub.v1.Topic request, + public void createTopic(com.google.pubsub.v1.Topic request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateTopicMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateTopicMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates an existing topic. Note that certain properties of a
      * topic are not modifiable.
      * 
*/ - public void updateTopic( - com.google.pubsub.v1.UpdateTopicRequest request, + public void updateTopic(com.google.pubsub.v1.UpdateTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateTopicMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateTopicMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
      * does not exist.
      * 
*/ - public void publish( - com.google.pubsub.v1.PublishRequest request, + public void publish(com.google.pubsub.v1.PublishRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getPublishMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets the configuration of a topic.
      * 
*/ - public void getTopic( - com.google.pubsub.v1.GetTopicRequest request, + public void getTopic(com.google.pubsub.v1.GetTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetTopicMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists matching topics.
      * 
*/ - public void listTopics( - com.google.pubsub.v1.ListTopicsRequest request, + public void listTopics(com.google.pubsub.v1.ListTopicsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListTopicsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists the names of the attached subscriptions on this topic.
      * 
*/ - public void listTopicSubscriptions( - com.google.pubsub.v1.ListTopicSubscriptionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTopicSubscriptionsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListTopicSubscriptionsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists the names of the snapshots on this topic. Snapshots are used in
      * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
@@ -785,19 +618,13 @@ public void listTopicSubscriptions(
      * state captured by a snapshot.
      * 
*/ - public void listTopicSnapshots( - com.google.pubsub.v1.ListTopicSnapshotsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listTopicSnapshots(com.google.pubsub.v1.ListTopicSnapshotsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTopicSnapshotsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListTopicSnapshotsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
      * does not exist. After a topic is deleted, a new topic may be created with
@@ -806,18 +633,13 @@ public void listTopicSnapshots(
      * not deleted, but their `topic` field is set to `_deleted-topic_`.
      * 
*/ - public void deleteTopic( - com.google.pubsub.v1.DeleteTopicRequest request, + public void deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteTopicMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteTopicMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Detaches a subscription from this topic. All messages retained in the
      * subscription are dropped. Subsequent `Pull` and `StreamingPull` requests
@@ -825,28 +647,22 @@ public void deleteTopic(
      * subscription, pushes to the endpoint will stop.
      * 
*/ - public void detachSubscription( - com.google.pubsub.v1.DetachSubscriptionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void detachSubscription(com.google.pubsub.v1.DetachSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDetachSubscriptionMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDetachSubscriptionMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * The service that an application uses to manipulate topics, and to send
    * messages to a topic.
    * 
*/ - public static final class PublisherBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private PublisherBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class PublisherBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private PublisherBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -857,8 +673,6 @@ protected PublisherBlockingStub build( } /** - * - * *
      * Creates the given topic with the given name. See the [resource name rules]
      * (https://cloud.google.com/pubsub/docs/admin#resource_names).
@@ -870,8 +684,6 @@ public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request
     }
 
     /**
-     *
-     *
      * 
      * Updates an existing topic. Note that certain properties of a
      * topic are not modifiable.
@@ -883,22 +695,17 @@ public com.google.pubsub.v1.Topic updateTopic(com.google.pubsub.v1.UpdateTopicRe
     }
 
     /**
-     *
-     *
      * 
      * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
      * does not exist.
      * 
*/ - public com.google.pubsub.v1.PublishResponse publish( - com.google.pubsub.v1.PublishRequest request) { + public com.google.pubsub.v1.PublishResponse publish(com.google.pubsub.v1.PublishRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPublishMethod(), getCallOptions(), request); } /** - * - * *
      * Gets the configuration of a topic.
      * 
@@ -909,34 +716,26 @@ public com.google.pubsub.v1.Topic getTopic(com.google.pubsub.v1.GetTopicRequest } /** - * - * *
      * Lists matching topics.
      * 
*/ - public com.google.pubsub.v1.ListTopicsResponse listTopics( - com.google.pubsub.v1.ListTopicsRequest request) { + public com.google.pubsub.v1.ListTopicsResponse listTopics(com.google.pubsub.v1.ListTopicsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListTopicsMethod(), getCallOptions(), request); } /** - * - * *
      * Lists the names of the attached subscriptions on this topic.
      * 
*/ - public com.google.pubsub.v1.ListTopicSubscriptionsResponse listTopicSubscriptions( - com.google.pubsub.v1.ListTopicSubscriptionsRequest request) { + public com.google.pubsub.v1.ListTopicSubscriptionsResponse listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListTopicSubscriptionsMethod(), getCallOptions(), request); } /** - * - * *
      * Lists the names of the snapshots on this topic. Snapshots are used in
      * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
@@ -945,15 +744,12 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse listTopicSubscription
      * state captured by a snapshot.
      * 
*/ - public com.google.pubsub.v1.ListTopicSnapshotsResponse listTopicSnapshots( - com.google.pubsub.v1.ListTopicSnapshotsRequest request) { + public com.google.pubsub.v1.ListTopicSnapshotsResponse listTopicSnapshots(com.google.pubsub.v1.ListTopicSnapshotsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListTopicSnapshotsMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
      * does not exist. After a topic is deleted, a new topic may be created with
@@ -968,8 +764,6 @@ public com.google.protobuf.Empty deleteTopic(com.google.pubsub.v1.DeleteTopicReq
     }
 
     /**
-     *
-     *
      * 
      * Detaches a subscription from this topic. All messages retained in the
      * subscription are dropped. Subsequent `Pull` and `StreamingPull` requests
@@ -977,77 +771,67 @@ public com.google.protobuf.Empty deleteTopic(com.google.pubsub.v1.DeleteTopicReq
      * subscription, pushes to the endpoint will stop.
      * 
*/ - public com.google.pubsub.v1.DetachSubscriptionResponse detachSubscription( - com.google.pubsub.v1.DetachSubscriptionRequest request) { + public com.google.pubsub.v1.DetachSubscriptionResponse detachSubscription(com.google.pubsub.v1.DetachSubscriptionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDetachSubscriptionMethod(), getCallOptions(), request); } } /** - * - * *
    * The service that an application uses to manipulate topics, and to send
    * messages to a topic.
    * 
*/ - public static final class PublisherFutureStub - extends io.grpc.stub.AbstractFutureStub { - private PublisherFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class PublisherFutureStub extends io.grpc.stub.AbstractFutureStub { + private PublisherFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected PublisherFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected PublisherFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PublisherFutureStub(channel, callOptions); } /** - * - * *
      * Creates the given topic with the given name. See the [resource name rules]
      * (https://cloud.google.com/pubsub/docs/admin#resource_names).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - createTopic(com.google.pubsub.v1.Topic request) { + public com.google.common.util.concurrent.ListenableFuture createTopic( + com.google.pubsub.v1.Topic request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateTopicMethod(), getCallOptions()), request); } /** - * - * *
      * Updates an existing topic. Note that certain properties of a
      * topic are not modifiable.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updateTopic(com.google.pubsub.v1.UpdateTopicRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateTopic( + com.google.pubsub.v1.UpdateTopicRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateTopicMethod(), getCallOptions()), request); } /** - * - * *
      * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
      * does not exist.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - publish(com.google.pubsub.v1.PublishRequest request) { + public com.google.common.util.concurrent.ListenableFuture publish( + com.google.pubsub.v1.PublishRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPublishMethod(), getCallOptions()), request); } /** - * - * *
      * Gets the configuration of a topic.
      * 
@@ -1059,36 +843,28 @@ public com.google.common.util.concurrent.ListenableFuture * Lists matching topics. *
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.pubsub.v1.ListTopicsResponse> - listTopics(com.google.pubsub.v1.ListTopicsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listTopics( + com.google.pubsub.v1.ListTopicsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListTopicsMethod(), getCallOptions()), request); } /** - * - * *
      * Lists the names of the attached subscriptions on this topic.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.pubsub.v1.ListTopicSubscriptionsResponse> - listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listTopicSubscriptions( + com.google.pubsub.v1.ListTopicSubscriptionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListTopicSubscriptionsMethod(), getCallOptions()), request); } /** - * - * *
      * Lists the names of the snapshots on this topic. Snapshots are used in
      * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
@@ -1097,16 +873,13 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture<
-            com.google.pubsub.v1.ListTopicSnapshotsResponse>
-        listTopicSnapshots(com.google.pubsub.v1.ListTopicSnapshotsRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture listTopicSnapshots(
+        com.google.pubsub.v1.ListTopicSnapshotsRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getListTopicSnapshotsMethod(), getCallOptions()), request);
     }
 
     /**
-     *
-     *
      * 
      * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
      * does not exist. After a topic is deleted, a new topic may be created with
@@ -1115,15 +888,13 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture
-        deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture deleteTopic(
+        com.google.pubsub.v1.DeleteTopicRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getDeleteTopicMethod(), getCallOptions()), request);
     }
 
     /**
-     *
-     *
      * 
      * Detaches a subscription from this topic. All messages retained in the
      * subscription are dropped. Subsequent `Pull` and `StreamingPull` requests
@@ -1131,9 +902,8 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture<
-            com.google.pubsub.v1.DetachSubscriptionResponse>
-        detachSubscription(com.google.pubsub.v1.DetachSubscriptionRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture detachSubscription(
+        com.google.pubsub.v1.DetachSubscriptionRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getDetachSubscriptionMethod(), getCallOptions()), request);
     }
@@ -1149,11 +919,11 @@ public com.google.common.util.concurrent.ListenableFuture
-      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 PublisherImplBase serviceImpl;
     private final int methodId;
 
@@ -1167,53 +937,40 @@ private static final class MethodHandlers
     public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_CREATE_TOPIC:
-          serviceImpl.createTopic(
-              (com.google.pubsub.v1.Topic) request,
+          serviceImpl.createTopic((com.google.pubsub.v1.Topic) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_UPDATE_TOPIC:
-          serviceImpl.updateTopic(
-              (com.google.pubsub.v1.UpdateTopicRequest) request,
+          serviceImpl.updateTopic((com.google.pubsub.v1.UpdateTopicRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_PUBLISH:
-          serviceImpl.publish(
-              (com.google.pubsub.v1.PublishRequest) request,
+          serviceImpl.publish((com.google.pubsub.v1.PublishRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_GET_TOPIC:
-          serviceImpl.getTopic(
-              (com.google.pubsub.v1.GetTopicRequest) request,
+          serviceImpl.getTopic((com.google.pubsub.v1.GetTopicRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_LIST_TOPICS:
-          serviceImpl.listTopics(
-              (com.google.pubsub.v1.ListTopicsRequest) request,
-              (io.grpc.stub.StreamObserver)
-                  responseObserver);
+          serviceImpl.listTopics((com.google.pubsub.v1.ListTopicsRequest) request,
+              (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_LIST_TOPIC_SUBSCRIPTIONS:
-          serviceImpl.listTopicSubscriptions(
-              (com.google.pubsub.v1.ListTopicSubscriptionsRequest) request,
-              (io.grpc.stub.StreamObserver)
-                  responseObserver);
+          serviceImpl.listTopicSubscriptions((com.google.pubsub.v1.ListTopicSubscriptionsRequest) request,
+              (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_LIST_TOPIC_SNAPSHOTS:
-          serviceImpl.listTopicSnapshots(
-              (com.google.pubsub.v1.ListTopicSnapshotsRequest) request,
-              (io.grpc.stub.StreamObserver)
-                  responseObserver);
+          serviceImpl.listTopicSnapshots((com.google.pubsub.v1.ListTopicSnapshotsRequest) request,
+              (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_DELETE_TOPIC:
-          serviceImpl.deleteTopic(
-              (com.google.pubsub.v1.DeleteTopicRequest) request,
+          serviceImpl.deleteTopic((com.google.pubsub.v1.DeleteTopicRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_DETACH_SUBSCRIPTION:
-          serviceImpl.detachSubscription(
-              (com.google.pubsub.v1.DetachSubscriptionRequest) request,
-              (io.grpc.stub.StreamObserver)
-                  responseObserver);
+          serviceImpl.detachSubscription((com.google.pubsub.v1.DetachSubscriptionRequest) request,
+              (io.grpc.stub.StreamObserver) responseObserver);
           break;
         default:
           throw new AssertionError();
@@ -1231,9 +988,8 @@ public io.grpc.stub.StreamObserver invoke(
     }
   }
 
-  private abstract static class PublisherBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
-          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private static abstract class PublisherBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     PublisherBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -1275,20 +1031,18 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
       synchronized (PublisherGrpc.class) {
         result = serviceDescriptor;
         if (result == null) {
-          serviceDescriptor =
-              result =
-                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
-                      .setSchemaDescriptor(new PublisherFileDescriptorSupplier())
-                      .addMethod(getCreateTopicMethod())
-                      .addMethod(getUpdateTopicMethod())
-                      .addMethod(getPublishMethod())
-                      .addMethod(getGetTopicMethod())
-                      .addMethod(getListTopicsMethod())
-                      .addMethod(getListTopicSubscriptionsMethod())
-                      .addMethod(getListTopicSnapshotsMethod())
-                      .addMethod(getDeleteTopicMethod())
-                      .addMethod(getDetachSubscriptionMethod())
-                      .build();
+          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+              .setSchemaDescriptor(new PublisherFileDescriptorSupplier())
+              .addMethod(getCreateTopicMethod())
+              .addMethod(getUpdateTopicMethod())
+              .addMethod(getPublishMethod())
+              .addMethod(getGetTopicMethod())
+              .addMethod(getListTopicsMethod())
+              .addMethod(getListTopicSubscriptionsMethod())
+              .addMethod(getListTopicSnapshotsMethod())
+              .addMethod(getDeleteTopicMethod())
+              .addMethod(getDetachSubscriptionMethod())
+              .build();
         }
       }
     }
diff --git a/owl-bot-staging/v1/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java
new file mode 100644
index 000000000..6239cd5bc
--- /dev/null
+++ b/owl-bot-staging/v1/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java
@@ -0,0 +1,732 @@
+package com.google.pubsub.v1;
+
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+
+/**
+ * 
+ * Service for doing schema-related operations.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/pubsub/v1/schema.proto") +public final class SchemaServiceGrpc { + + private SchemaServiceGrpc() {} + + public static final String SERVICE_NAME = "google.pubsub.v1.SchemaService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSchema", + requestType = com.google.pubsub.v1.CreateSchemaRequest.class, + responseType = com.google.pubsub.v1.Schema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateSchemaMethod() { + io.grpc.MethodDescriptor getCreateSchemaMethod; + if ((getCreateSchemaMethod = SchemaServiceGrpc.getCreateSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getCreateSchemaMethod = SchemaServiceGrpc.getCreateSchemaMethod) == null) { + SchemaServiceGrpc.getCreateSchemaMethod = getCreateSchemaMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.CreateSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.Schema.getDefaultInstance())) + .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("CreateSchema")) + .build(); + } + } + } + return getCreateSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSchema", + requestType = com.google.pubsub.v1.GetSchemaRequest.class, + responseType = com.google.pubsub.v1.Schema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetSchemaMethod() { + io.grpc.MethodDescriptor getGetSchemaMethod; + if ((getGetSchemaMethod = SchemaServiceGrpc.getGetSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getGetSchemaMethod = SchemaServiceGrpc.getGetSchemaMethod) == null) { + SchemaServiceGrpc.getGetSchemaMethod = getGetSchemaMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.GetSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.Schema.getDefaultInstance())) + .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("GetSchema")) + .build(); + } + } + } + return getGetSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor getListSchemasMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSchemas", + requestType = com.google.pubsub.v1.ListSchemasRequest.class, + responseType = com.google.pubsub.v1.ListSchemasResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListSchemasMethod() { + io.grpc.MethodDescriptor getListSchemasMethod; + if ((getListSchemasMethod = SchemaServiceGrpc.getListSchemasMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getListSchemasMethod = SchemaServiceGrpc.getListSchemasMethod) == null) { + SchemaServiceGrpc.getListSchemasMethod = getListSchemasMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSchemas")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ListSchemasRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ListSchemasResponse.getDefaultInstance())) + .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("ListSchemas")) + .build(); + } + } + } + return getListSchemasMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSchema", + requestType = com.google.pubsub.v1.DeleteSchemaRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteSchemaMethod() { + io.grpc.MethodDescriptor getDeleteSchemaMethod; + if ((getDeleteSchemaMethod = SchemaServiceGrpc.getDeleteSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getDeleteSchemaMethod = SchemaServiceGrpc.getDeleteSchemaMethod) == null) { + SchemaServiceGrpc.getDeleteSchemaMethod = getDeleteSchemaMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.DeleteSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("DeleteSchema")) + .build(); + } + } + } + return getDeleteSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor getValidateSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ValidateSchema", + requestType = com.google.pubsub.v1.ValidateSchemaRequest.class, + responseType = com.google.pubsub.v1.ValidateSchemaResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getValidateSchemaMethod() { + io.grpc.MethodDescriptor getValidateSchemaMethod; + if ((getValidateSchemaMethod = SchemaServiceGrpc.getValidateSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getValidateSchemaMethod = SchemaServiceGrpc.getValidateSchemaMethod) == null) { + SchemaServiceGrpc.getValidateSchemaMethod = getValidateSchemaMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ValidateSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ValidateSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ValidateSchemaResponse.getDefaultInstance())) + .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("ValidateSchema")) + .build(); + } + } + } + return getValidateSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor getValidateMessageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ValidateMessage", + requestType = com.google.pubsub.v1.ValidateMessageRequest.class, + responseType = com.google.pubsub.v1.ValidateMessageResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getValidateMessageMethod() { + io.grpc.MethodDescriptor getValidateMessageMethod; + if ((getValidateMessageMethod = SchemaServiceGrpc.getValidateMessageMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getValidateMessageMethod = SchemaServiceGrpc.getValidateMessageMethod) == null) { + SchemaServiceGrpc.getValidateMessageMethod = getValidateMessageMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ValidateMessage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ValidateMessageRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ValidateMessageResponse.getDefaultInstance())) + .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("ValidateMessage")) + .build(); + } + } + } + return getValidateMessageMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static SchemaServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SchemaServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceStub(channel, callOptions); + } + }; + return SchemaServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SchemaServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SchemaServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceBlockingStub(channel, callOptions); + } + }; + return SchemaServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SchemaServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SchemaServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceFutureStub(channel, callOptions); + } + }; + return SchemaServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for doing schema-related operations.
+   * 
+ */ + public static abstract class SchemaServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a schema.
+     * 
+ */ + public void createSchema(com.google.pubsub.v1.CreateSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSchemaMethod(), responseObserver); + } + + /** + *
+     * Gets a schema.
+     * 
+ */ + public void getSchema(com.google.pubsub.v1.GetSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSchemaMethod(), responseObserver); + } + + /** + *
+     * Lists schemas in a project.
+     * 
+ */ + public void listSchemas(com.google.pubsub.v1.ListSchemasRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSchemasMethod(), responseObserver); + } + + /** + *
+     * Deletes a schema.
+     * 
+ */ + public void deleteSchema(com.google.pubsub.v1.DeleteSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSchemaMethod(), responseObserver); + } + + /** + *
+     * Validates a schema.
+     * 
+ */ + public void validateSchema(com.google.pubsub.v1.ValidateSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getValidateSchemaMethod(), responseObserver); + } + + /** + *
+     * Validates a message against a schema.
+     * 
+ */ + public void validateMessage(com.google.pubsub.v1.ValidateMessageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getValidateMessageMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.CreateSchemaRequest, + com.google.pubsub.v1.Schema>( + this, METHODID_CREATE_SCHEMA))) + .addMethod( + getGetSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.GetSchemaRequest, + com.google.pubsub.v1.Schema>( + this, METHODID_GET_SCHEMA))) + .addMethod( + getListSchemasMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListSchemasRequest, + com.google.pubsub.v1.ListSchemasResponse>( + this, METHODID_LIST_SCHEMAS))) + .addMethod( + getDeleteSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DeleteSchemaRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_SCHEMA))) + .addMethod( + getValidateSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ValidateSchemaRequest, + com.google.pubsub.v1.ValidateSchemaResponse>( + this, METHODID_VALIDATE_SCHEMA))) + .addMethod( + getValidateMessageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ValidateMessageRequest, + com.google.pubsub.v1.ValidateMessageResponse>( + this, METHODID_VALIDATE_MESSAGE))) + .build(); + } + } + + /** + *
+   * Service for doing schema-related operations.
+   * 
+ */ + public static final class SchemaServiceStub extends io.grpc.stub.AbstractAsyncStub { + private SchemaServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SchemaServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceStub(channel, callOptions); + } + + /** + *
+     * Creates a schema.
+     * 
+ */ + public void createSchema(com.google.pubsub.v1.CreateSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSchemaMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a schema.
+     * 
+ */ + public void getSchema(com.google.pubsub.v1.GetSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSchemaMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists schemas in a project.
+     * 
+ */ + public void listSchemas(com.google.pubsub.v1.ListSchemasRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSchemasMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a schema.
+     * 
+ */ + public void deleteSchema(com.google.pubsub.v1.DeleteSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSchemaMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Validates a schema.
+     * 
+ */ + public void validateSchema(com.google.pubsub.v1.ValidateSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getValidateSchemaMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Validates a message against a schema.
+     * 
+ */ + public void validateMessage(com.google.pubsub.v1.ValidateMessageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getValidateMessageMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Service for doing schema-related operations.
+   * 
+ */ + public static final class SchemaServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private SchemaServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SchemaServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a schema.
+     * 
+ */ + public com.google.pubsub.v1.Schema createSchema(com.google.pubsub.v1.CreateSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSchemaMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a schema.
+     * 
+ */ + public com.google.pubsub.v1.Schema getSchema(com.google.pubsub.v1.GetSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSchemaMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists schemas in a project.
+     * 
+ */ + public com.google.pubsub.v1.ListSchemasResponse listSchemas(com.google.pubsub.v1.ListSchemasRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSchemasMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a schema.
+     * 
+ */ + public com.google.protobuf.Empty deleteSchema(com.google.pubsub.v1.DeleteSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSchemaMethod(), getCallOptions(), request); + } + + /** + *
+     * Validates a schema.
+     * 
+ */ + public com.google.pubsub.v1.ValidateSchemaResponse validateSchema(com.google.pubsub.v1.ValidateSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getValidateSchemaMethod(), getCallOptions(), request); + } + + /** + *
+     * Validates a message against a schema.
+     * 
+ */ + public com.google.pubsub.v1.ValidateMessageResponse validateMessage(com.google.pubsub.v1.ValidateMessageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getValidateMessageMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Service for doing schema-related operations.
+   * 
+ */ + public static final class SchemaServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private SchemaServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SchemaServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a schema.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createSchema( + com.google.pubsub.v1.CreateSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSchemaMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a schema.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSchema( + com.google.pubsub.v1.GetSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSchemaMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists schemas in a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listSchemas( + com.google.pubsub.v1.ListSchemasRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSchemasMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a schema.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteSchema( + com.google.pubsub.v1.DeleteSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSchemaMethod(), getCallOptions()), request); + } + + /** + *
+     * Validates a schema.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture validateSchema( + com.google.pubsub.v1.ValidateSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getValidateSchemaMethod(), getCallOptions()), request); + } + + /** + *
+     * Validates a message against a schema.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture validateMessage( + com.google.pubsub.v1.ValidateMessageRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getValidateMessageMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SCHEMA = 0; + private static final int METHODID_GET_SCHEMA = 1; + private static final int METHODID_LIST_SCHEMAS = 2; + private static final int METHODID_DELETE_SCHEMA = 3; + private static final int METHODID_VALIDATE_SCHEMA = 4; + private static final int METHODID_VALIDATE_MESSAGE = 5; + + 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 SchemaServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SchemaServiceImplBase 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_SCHEMA: + serviceImpl.createSchema((com.google.pubsub.v1.CreateSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SCHEMA: + serviceImpl.getSchema((com.google.pubsub.v1.GetSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SCHEMAS: + serviceImpl.listSchemas((com.google.pubsub.v1.ListSchemasRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SCHEMA: + serviceImpl.deleteSchema((com.google.pubsub.v1.DeleteSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_VALIDATE_SCHEMA: + serviceImpl.validateSchema((com.google.pubsub.v1.ValidateSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_VALIDATE_MESSAGE: + serviceImpl.validateMessage((com.google.pubsub.v1.ValidateMessageRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class SchemaServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SchemaServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.pubsub.v1.SchemaProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SchemaService"); + } + } + + private static final class SchemaServiceFileDescriptorSupplier + extends SchemaServiceBaseDescriptorSupplier { + SchemaServiceFileDescriptorSupplier() {} + } + + private static final class SchemaServiceMethodDescriptorSupplier + extends SchemaServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SchemaServiceMethodDescriptorSupplier(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 (SchemaServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SchemaServiceFileDescriptorSupplier()) + .addMethod(getCreateSchemaMethod()) + .addMethod(getGetSchemaMethod()) + .addMethod(getListSchemasMethod()) + .addMethod(getDeleteSchemaMethod()) + .addMethod(getValidateSchemaMethod()) + .addMethod(getValidateMessageMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java similarity index 57% rename from grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java rename to owl-bot-staging/v1/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index 295e5e724..735549c27 100644 --- a/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java +++ b/owl-bot-staging/v1/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.pubsub.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * The service that an application uses to manipulate subscriptions and to
  * consume messages from a subscription via the `Pull` method or by
@@ -36,709 +19,556 @@ private SubscriberGrpc() {}
   public static final String SERVICE_NAME = "google.pubsub.v1.Subscriber";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription>
-      getCreateSubscriptionMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateSubscriptionMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateSubscription",
       requestType = com.google.pubsub.v1.Subscription.class,
       responseType = com.google.pubsub.v1.Subscription.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription>
-      getCreateSubscriptionMethod() {
-    io.grpc.MethodDescriptor
-        getCreateSubscriptionMethod;
+  public static io.grpc.MethodDescriptor getCreateSubscriptionMethod() {
+    io.grpc.MethodDescriptor getCreateSubscriptionMethod;
     if ((getCreateSubscriptionMethod = SubscriberGrpc.getCreateSubscriptionMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getCreateSubscriptionMethod = SubscriberGrpc.getCreateSubscriptionMethod) == null) {
-          SubscriberGrpc.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.pubsub.v1.Subscription.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.Subscription.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new SubscriberMethodDescriptorSupplier("CreateSubscription"))
-                      .build();
+          SubscriberGrpc.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.pubsub.v1.Subscription.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.Subscription.getDefaultInstance()))
+              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("CreateSubscription"))
+              .build();
         }
       }
     }
     return getCreateSubscriptionMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.GetSubscriptionRequest, com.google.pubsub.v1.Subscription>
-      getGetSubscriptionMethod;
+  private static volatile io.grpc.MethodDescriptor getGetSubscriptionMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetSubscription",
       requestType = com.google.pubsub.v1.GetSubscriptionRequest.class,
       responseType = com.google.pubsub.v1.Subscription.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.GetSubscriptionRequest, com.google.pubsub.v1.Subscription>
-      getGetSubscriptionMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.pubsub.v1.GetSubscriptionRequest, com.google.pubsub.v1.Subscription>
-        getGetSubscriptionMethod;
+  public static io.grpc.MethodDescriptor getGetSubscriptionMethod() {
+    io.grpc.MethodDescriptor getGetSubscriptionMethod;
     if ((getGetSubscriptionMethod = SubscriberGrpc.getGetSubscriptionMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getGetSubscriptionMethod = SubscriberGrpc.getGetSubscriptionMethod) == null) {
-          SubscriberGrpc.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.pubsub.v1.GetSubscriptionRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.Subscription.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new SubscriberMethodDescriptorSupplier("GetSubscription"))
-                      .build();
+          SubscriberGrpc.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.pubsub.v1.GetSubscriptionRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.Subscription.getDefaultInstance()))
+              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("GetSubscription"))
+              .build();
         }
       }
     }
     return getGetSubscriptionMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.UpdateSubscriptionRequest, com.google.pubsub.v1.Subscription>
-      getUpdateSubscriptionMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateSubscriptionMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateSubscription",
       requestType = com.google.pubsub.v1.UpdateSubscriptionRequest.class,
       responseType = com.google.pubsub.v1.Subscription.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.UpdateSubscriptionRequest, com.google.pubsub.v1.Subscription>
-      getUpdateSubscriptionMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.pubsub.v1.UpdateSubscriptionRequest, com.google.pubsub.v1.Subscription>
-        getUpdateSubscriptionMethod;
+  public static io.grpc.MethodDescriptor getUpdateSubscriptionMethod() {
+    io.grpc.MethodDescriptor getUpdateSubscriptionMethod;
     if ((getUpdateSubscriptionMethod = SubscriberGrpc.getUpdateSubscriptionMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getUpdateSubscriptionMethod = SubscriberGrpc.getUpdateSubscriptionMethod) == null) {
-          SubscriberGrpc.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.pubsub.v1.UpdateSubscriptionRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.Subscription.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new SubscriberMethodDescriptorSupplier("UpdateSubscription"))
-                      .build();
+          SubscriberGrpc.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.pubsub.v1.UpdateSubscriptionRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.Subscription.getDefaultInstance()))
+              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("UpdateSubscription"))
+              .build();
         }
       }
     }
     return getUpdateSubscriptionMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.ListSubscriptionsRequest,
-          com.google.pubsub.v1.ListSubscriptionsResponse>
-      getListSubscriptionsMethod;
+  private static volatile io.grpc.MethodDescriptor getListSubscriptionsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListSubscriptions",
       requestType = com.google.pubsub.v1.ListSubscriptionsRequest.class,
       responseType = com.google.pubsub.v1.ListSubscriptionsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.ListSubscriptionsRequest,
-          com.google.pubsub.v1.ListSubscriptionsResponse>
-      getListSubscriptionsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.pubsub.v1.ListSubscriptionsRequest,
-            com.google.pubsub.v1.ListSubscriptionsResponse>
-        getListSubscriptionsMethod;
+  public static io.grpc.MethodDescriptor getListSubscriptionsMethod() {
+    io.grpc.MethodDescriptor getListSubscriptionsMethod;
     if ((getListSubscriptionsMethod = SubscriberGrpc.getListSubscriptionsMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getListSubscriptionsMethod = SubscriberGrpc.getListSubscriptionsMethod) == null) {
-          SubscriberGrpc.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.pubsub.v1.ListSubscriptionsRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.ListSubscriptionsResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new SubscriberMethodDescriptorSupplier("ListSubscriptions"))
-                      .build();
+          SubscriberGrpc.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.pubsub.v1.ListSubscriptionsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.ListSubscriptionsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("ListSubscriptions"))
+              .build();
         }
       }
     }
     return getListSubscriptionsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty>
-      getDeleteSubscriptionMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteSubscriptionMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteSubscription",
       requestType = com.google.pubsub.v1.DeleteSubscriptionRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty>
-      getDeleteSubscriptionMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty>
-        getDeleteSubscriptionMethod;
+  public static io.grpc.MethodDescriptor getDeleteSubscriptionMethod() {
+    io.grpc.MethodDescriptor getDeleteSubscriptionMethod;
     if ((getDeleteSubscriptionMethod = SubscriberGrpc.getDeleteSubscriptionMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getDeleteSubscriptionMethod = SubscriberGrpc.getDeleteSubscriptionMethod) == null) {
-          SubscriberGrpc.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.pubsub.v1.DeleteSubscriptionRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new SubscriberMethodDescriptorSupplier("DeleteSubscription"))
-                      .build();
+          SubscriberGrpc.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.pubsub.v1.DeleteSubscriptionRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("DeleteSubscription"))
+              .build();
         }
       }
     }
     return getDeleteSubscriptionMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty>
-      getModifyAckDeadlineMethod;
+  private static volatile io.grpc.MethodDescriptor getModifyAckDeadlineMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ModifyAckDeadline",
       requestType = com.google.pubsub.v1.ModifyAckDeadlineRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty>
-      getModifyAckDeadlineMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty>
-        getModifyAckDeadlineMethod;
+  public static io.grpc.MethodDescriptor getModifyAckDeadlineMethod() {
+    io.grpc.MethodDescriptor getModifyAckDeadlineMethod;
     if ((getModifyAckDeadlineMethod = SubscriberGrpc.getModifyAckDeadlineMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getModifyAckDeadlineMethod = SubscriberGrpc.getModifyAckDeadlineMethod) == null) {
-          SubscriberGrpc.getModifyAckDeadlineMethod =
-              getModifyAckDeadlineMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ModifyAckDeadline"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.ModifyAckDeadlineRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new SubscriberMethodDescriptorSupplier("ModifyAckDeadline"))
-                      .build();
+          SubscriberGrpc.getModifyAckDeadlineMethod = getModifyAckDeadlineMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ModifyAckDeadline"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.ModifyAckDeadlineRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("ModifyAckDeadline"))
+              .build();
         }
       }
     }
     return getModifyAckDeadlineMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.AcknowledgeRequest, com.google.protobuf.Empty>
-      getAcknowledgeMethod;
+  private static volatile io.grpc.MethodDescriptor getAcknowledgeMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Acknowledge",
       requestType = com.google.pubsub.v1.AcknowledgeRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.AcknowledgeRequest, com.google.protobuf.Empty>
-      getAcknowledgeMethod() {
-    io.grpc.MethodDescriptor
-        getAcknowledgeMethod;
+  public static io.grpc.MethodDescriptor getAcknowledgeMethod() {
+    io.grpc.MethodDescriptor getAcknowledgeMethod;
     if ((getAcknowledgeMethod = SubscriberGrpc.getAcknowledgeMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getAcknowledgeMethod = SubscriberGrpc.getAcknowledgeMethod) == null) {
-          SubscriberGrpc.getAcknowledgeMethod =
-              getAcknowledgeMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Acknowledge"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.AcknowledgeRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("Acknowledge"))
-                      .build();
+          SubscriberGrpc.getAcknowledgeMethod = getAcknowledgeMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Acknowledge"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.AcknowledgeRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("Acknowledge"))
+              .build();
         }
       }
     }
     return getAcknowledgeMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.PullRequest, com.google.pubsub.v1.PullResponse>
-      getPullMethod;
+  private static volatile io.grpc.MethodDescriptor getPullMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Pull",
       requestType = com.google.pubsub.v1.PullRequest.class,
       responseType = com.google.pubsub.v1.PullResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.PullRequest, com.google.pubsub.v1.PullResponse>
-      getPullMethod() {
-    io.grpc.MethodDescriptor
-        getPullMethod;
+  public static io.grpc.MethodDescriptor getPullMethod() {
+    io.grpc.MethodDescriptor getPullMethod;
     if ((getPullMethod = SubscriberGrpc.getPullMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getPullMethod = SubscriberGrpc.getPullMethod) == null) {
-          SubscriberGrpc.getPullMethod =
-              getPullMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Pull"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.PullRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.PullResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("Pull"))
-                      .build();
+          SubscriberGrpc.getPullMethod = getPullMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Pull"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.PullRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.PullResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("Pull"))
+              .build();
         }
       }
     }
     return getPullMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.StreamingPullRequest, com.google.pubsub.v1.StreamingPullResponse>
-      getStreamingPullMethod;
+  private static volatile io.grpc.MethodDescriptor getStreamingPullMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "StreamingPull",
       requestType = com.google.pubsub.v1.StreamingPullRequest.class,
       responseType = com.google.pubsub.v1.StreamingPullResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-  public static io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.StreamingPullRequest, com.google.pubsub.v1.StreamingPullResponse>
-      getStreamingPullMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.pubsub.v1.StreamingPullRequest, com.google.pubsub.v1.StreamingPullResponse>
-        getStreamingPullMethod;
+  public static io.grpc.MethodDescriptor getStreamingPullMethod() {
+    io.grpc.MethodDescriptor getStreamingPullMethod;
     if ((getStreamingPullMethod = SubscriberGrpc.getStreamingPullMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getStreamingPullMethod = SubscriberGrpc.getStreamingPullMethod) == null) {
-          SubscriberGrpc.getStreamingPullMethod =
-              getStreamingPullMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingPull"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.StreamingPullRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.StreamingPullResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("StreamingPull"))
-                      .build();
+          SubscriberGrpc.getStreamingPullMethod = getStreamingPullMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingPull"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.StreamingPullRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.StreamingPullResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("StreamingPull"))
+              .build();
         }
       }
     }
     return getStreamingPullMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty>
-      getModifyPushConfigMethod;
+  private static volatile io.grpc.MethodDescriptor getModifyPushConfigMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ModifyPushConfig",
       requestType = com.google.pubsub.v1.ModifyPushConfigRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty>
-      getModifyPushConfigMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty>
-        getModifyPushConfigMethod;
+  public static io.grpc.MethodDescriptor getModifyPushConfigMethod() {
+    io.grpc.MethodDescriptor getModifyPushConfigMethod;
     if ((getModifyPushConfigMethod = SubscriberGrpc.getModifyPushConfigMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getModifyPushConfigMethod = SubscriberGrpc.getModifyPushConfigMethod) == null) {
-          SubscriberGrpc.getModifyPushConfigMethod =
-              getModifyPushConfigMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ModifyPushConfig"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.ModifyPushConfigRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new SubscriberMethodDescriptorSupplier("ModifyPushConfig"))
-                      .build();
+          SubscriberGrpc.getModifyPushConfigMethod = getModifyPushConfigMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ModifyPushConfig"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.ModifyPushConfigRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("ModifyPushConfig"))
+              .build();
         }
       }
     }
     return getModifyPushConfigMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.GetSnapshotRequest, com.google.pubsub.v1.Snapshot>
-      getGetSnapshotMethod;
+  private static volatile io.grpc.MethodDescriptor getGetSnapshotMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetSnapshot",
       requestType = com.google.pubsub.v1.GetSnapshotRequest.class,
       responseType = com.google.pubsub.v1.Snapshot.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.GetSnapshotRequest, com.google.pubsub.v1.Snapshot>
-      getGetSnapshotMethod() {
-    io.grpc.MethodDescriptor
-        getGetSnapshotMethod;
+  public static io.grpc.MethodDescriptor getGetSnapshotMethod() {
+    io.grpc.MethodDescriptor getGetSnapshotMethod;
     if ((getGetSnapshotMethod = SubscriberGrpc.getGetSnapshotMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getGetSnapshotMethod = SubscriberGrpc.getGetSnapshotMethod) == null) {
-          SubscriberGrpc.getGetSnapshotMethod =
-              getGetSnapshotMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSnapshot"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.GetSnapshotRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.Snapshot.getDefaultInstance()))
-                      .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("GetSnapshot"))
-                      .build();
+          SubscriberGrpc.getGetSnapshotMethod = getGetSnapshotMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSnapshot"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.GetSnapshotRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.Snapshot.getDefaultInstance()))
+              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("GetSnapshot"))
+              .build();
         }
       }
     }
     return getGetSnapshotMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.ListSnapshotsRequest, com.google.pubsub.v1.ListSnapshotsResponse>
-      getListSnapshotsMethod;
+  private static volatile io.grpc.MethodDescriptor getListSnapshotsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListSnapshots",
       requestType = com.google.pubsub.v1.ListSnapshotsRequest.class,
       responseType = com.google.pubsub.v1.ListSnapshotsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.ListSnapshotsRequest, com.google.pubsub.v1.ListSnapshotsResponse>
-      getListSnapshotsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.pubsub.v1.ListSnapshotsRequest, com.google.pubsub.v1.ListSnapshotsResponse>
-        getListSnapshotsMethod;
+  public static io.grpc.MethodDescriptor getListSnapshotsMethod() {
+    io.grpc.MethodDescriptor getListSnapshotsMethod;
     if ((getListSnapshotsMethod = SubscriberGrpc.getListSnapshotsMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getListSnapshotsMethod = SubscriberGrpc.getListSnapshotsMethod) == null) {
-          SubscriberGrpc.getListSnapshotsMethod =
-              getListSnapshotsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSnapshots"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.ListSnapshotsRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.ListSnapshotsResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("ListSnapshots"))
-                      .build();
+          SubscriberGrpc.getListSnapshotsMethod = getListSnapshotsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSnapshots"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.ListSnapshotsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.ListSnapshotsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("ListSnapshots"))
+              .build();
         }
       }
     }
     return getListSnapshotsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.CreateSnapshotRequest, com.google.pubsub.v1.Snapshot>
-      getCreateSnapshotMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateSnapshotMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateSnapshot",
       requestType = com.google.pubsub.v1.CreateSnapshotRequest.class,
       responseType = com.google.pubsub.v1.Snapshot.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.CreateSnapshotRequest, com.google.pubsub.v1.Snapshot>
-      getCreateSnapshotMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.pubsub.v1.CreateSnapshotRequest, com.google.pubsub.v1.Snapshot>
-        getCreateSnapshotMethod;
+  public static io.grpc.MethodDescriptor getCreateSnapshotMethod() {
+    io.grpc.MethodDescriptor getCreateSnapshotMethod;
     if ((getCreateSnapshotMethod = SubscriberGrpc.getCreateSnapshotMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getCreateSnapshotMethod = SubscriberGrpc.getCreateSnapshotMethod) == null) {
-          SubscriberGrpc.getCreateSnapshotMethod =
-              getCreateSnapshotMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSnapshot"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.CreateSnapshotRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.Snapshot.getDefaultInstance()))
-                      .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("CreateSnapshot"))
-                      .build();
+          SubscriberGrpc.getCreateSnapshotMethod = getCreateSnapshotMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSnapshot"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.CreateSnapshotRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.Snapshot.getDefaultInstance()))
+              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("CreateSnapshot"))
+              .build();
         }
       }
     }
     return getCreateSnapshotMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.UpdateSnapshotRequest, com.google.pubsub.v1.Snapshot>
-      getUpdateSnapshotMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateSnapshotMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateSnapshot",
       requestType = com.google.pubsub.v1.UpdateSnapshotRequest.class,
       responseType = com.google.pubsub.v1.Snapshot.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.UpdateSnapshotRequest, com.google.pubsub.v1.Snapshot>
-      getUpdateSnapshotMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.pubsub.v1.UpdateSnapshotRequest, com.google.pubsub.v1.Snapshot>
-        getUpdateSnapshotMethod;
+  public static io.grpc.MethodDescriptor getUpdateSnapshotMethod() {
+    io.grpc.MethodDescriptor getUpdateSnapshotMethod;
     if ((getUpdateSnapshotMethod = SubscriberGrpc.getUpdateSnapshotMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getUpdateSnapshotMethod = SubscriberGrpc.getUpdateSnapshotMethod) == null) {
-          SubscriberGrpc.getUpdateSnapshotMethod =
-              getUpdateSnapshotMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSnapshot"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.UpdateSnapshotRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.Snapshot.getDefaultInstance()))
-                      .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("UpdateSnapshot"))
-                      .build();
+          SubscriberGrpc.getUpdateSnapshotMethod = getUpdateSnapshotMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSnapshot"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.UpdateSnapshotRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.Snapshot.getDefaultInstance()))
+              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("UpdateSnapshot"))
+              .build();
         }
       }
     }
     return getUpdateSnapshotMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.DeleteSnapshotRequest, com.google.protobuf.Empty>
-      getDeleteSnapshotMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteSnapshotMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteSnapshot",
       requestType = com.google.pubsub.v1.DeleteSnapshotRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.DeleteSnapshotRequest, com.google.protobuf.Empty>
-      getDeleteSnapshotMethod() {
-    io.grpc.MethodDescriptor
-        getDeleteSnapshotMethod;
+  public static io.grpc.MethodDescriptor getDeleteSnapshotMethod() {
+    io.grpc.MethodDescriptor getDeleteSnapshotMethod;
     if ((getDeleteSnapshotMethod = SubscriberGrpc.getDeleteSnapshotMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getDeleteSnapshotMethod = SubscriberGrpc.getDeleteSnapshotMethod) == null) {
-          SubscriberGrpc.getDeleteSnapshotMethod =
-              getDeleteSnapshotMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSnapshot"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.DeleteSnapshotRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("DeleteSnapshot"))
-                      .build();
+          SubscriberGrpc.getDeleteSnapshotMethod = getDeleteSnapshotMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSnapshot"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.DeleteSnapshotRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("DeleteSnapshot"))
+              .build();
         }
       }
     }
     return getDeleteSnapshotMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.SeekRequest, com.google.pubsub.v1.SeekResponse>
-      getSeekMethod;
+  private static volatile io.grpc.MethodDescriptor getSeekMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Seek",
       requestType = com.google.pubsub.v1.SeekRequest.class,
       responseType = com.google.pubsub.v1.SeekResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.pubsub.v1.SeekRequest, com.google.pubsub.v1.SeekResponse>
-      getSeekMethod() {
-    io.grpc.MethodDescriptor
-        getSeekMethod;
+  public static io.grpc.MethodDescriptor getSeekMethod() {
+    io.grpc.MethodDescriptor getSeekMethod;
     if ((getSeekMethod = SubscriberGrpc.getSeekMethod) == null) {
       synchronized (SubscriberGrpc.class) {
         if ((getSeekMethod = SubscriberGrpc.getSeekMethod) == null) {
-          SubscriberGrpc.getSeekMethod =
-              getSeekMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Seek"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.SeekRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.pubsub.v1.SeekResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("Seek"))
-                      .build();
+          SubscriberGrpc.getSeekMethod = getSeekMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Seek"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.SeekRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.pubsub.v1.SeekResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("Seek"))
+              .build();
         }
       }
     }
     return getSeekMethod;
   }
 
-  /** 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 SubscriberStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public SubscriberStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new SubscriberStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public SubscriberStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new SubscriberStub(channel, callOptions);
+        }
+      };
     return SubscriberStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static SubscriberBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static SubscriberBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public SubscriberBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new SubscriberBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public SubscriberBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new SubscriberBlockingStub(channel, callOptions);
+        }
+      };
     return SubscriberBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static SubscriberFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static SubscriberFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public SubscriberFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new SubscriberFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public SubscriberFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new SubscriberFutureStub(channel, callOptions);
+        }
+      };
     return SubscriberFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * The service that an application uses to manipulate subscriptions and to
    * consume messages from a subscription via the `Pull` method or by
    * establishing a bi-directional stream using the `StreamingPull` method.
    * 
*/ - public abstract static class SubscriberImplBase implements io.grpc.BindableService { + public static abstract class SubscriberImplBase implements io.grpc.BindableService { /** - * - * *
      * Creates a subscription to a given topic. See the [resource name rules]
      * (https://cloud.google.com/pubsub/docs/admin#resource_names).
@@ -752,60 +582,43 @@ public abstract static class SubscriberImplBase implements io.grpc.BindableServi
      * API requests, you must specify a name in the request.
      * 
*/ - public void createSubscription( - com.google.pubsub.v1.Subscription request, + public void createSubscription(com.google.pubsub.v1.Subscription request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSubscriptionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSubscriptionMethod(), responseObserver); } /** - * - * *
      * Gets the configuration details of a subscription.
      * 
*/ - public void getSubscription( - com.google.pubsub.v1.GetSubscriptionRequest request, + public void getSubscription(com.google.pubsub.v1.GetSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetSubscriptionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSubscriptionMethod(), responseObserver); } /** - * - * *
      * Updates an existing subscription. Note that certain properties of a
      * subscription, such as its topic, are not modifiable.
      * 
*/ - public void updateSubscription( - com.google.pubsub.v1.UpdateSubscriptionRequest request, + public void updateSubscription(com.google.pubsub.v1.UpdateSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSubscriptionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSubscriptionMethod(), responseObserver); } /** - * - * *
      * Lists matching subscriptions.
      * 
*/ - public void listSubscriptions( - com.google.pubsub.v1.ListSubscriptionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListSubscriptionsMethod(), responseObserver); + public void listSubscriptions(com.google.pubsub.v1.ListSubscriptionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSubscriptionsMethod(), responseObserver); } /** - * - * *
      * Deletes an existing subscription. All messages retained in the subscription
      * are immediately dropped. Calls to `Pull` after deletion will return
@@ -814,16 +627,12 @@ public void listSubscriptions(
      * subscription or its topic unless the same topic is specified.
      * 
*/ - public void deleteSubscription( - com.google.pubsub.v1.DeleteSubscriptionRequest request, + public void deleteSubscription(com.google.pubsub.v1.DeleteSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteSubscriptionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSubscriptionMethod(), responseObserver); } /** - * - * *
      * Modifies the ack deadline for a specific message. This method is useful
      * to indicate that more time is needed to process a message by the
@@ -832,16 +641,12 @@ public void deleteSubscription(
      * subscription-level `ackDeadlineSeconds` used for subsequent messages.
      * 
*/ - public void modifyAckDeadline( - com.google.pubsub.v1.ModifyAckDeadlineRequest request, + public void modifyAckDeadline(com.google.pubsub.v1.ModifyAckDeadlineRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getModifyAckDeadlineMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getModifyAckDeadlineMethod(), responseObserver); } /** - * - * *
      * Acknowledges the messages associated with the `ack_ids` in the
      * `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
@@ -851,31 +656,24 @@ public void modifyAckDeadline(
      * than once will not result in an error.
      * 
*/ - public void acknowledge( - com.google.pubsub.v1.AcknowledgeRequest request, + public void acknowledge(com.google.pubsub.v1.AcknowledgeRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getAcknowledgeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAcknowledgeMethod(), responseObserver); } /** - * - * *
      * Pulls messages from the server. The server may return `UNAVAILABLE` if
      * there are too many concurrent pull requests pending for the given
      * subscription.
      * 
*/ - public void pull( - com.google.pubsub.v1.PullRequest request, + public void pull(com.google.pubsub.v1.PullRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPullMethod(), responseObserver); } /** - * - * *
      * Establishes a stream with the server, which sends messages down to the
      * client. The client streams acknowledgements and ack deadline modifications
@@ -888,13 +686,10 @@ public void pull(
      */
     public io.grpc.stub.StreamObserver streamingPull(
         io.grpc.stub.StreamObserver responseObserver) {
-      return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(
-          getStreamingPullMethod(), responseObserver);
+      return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamingPullMethod(), responseObserver);
     }
 
     /**
-     *
-     *
      * 
      * Modifies the `PushConfig` for a specified subscription.
      * This may be used to change a push subscription to a pull one (signified by
@@ -903,16 +698,12 @@ public io.grpc.stub.StreamObserver st
      * continuously through the call regardless of changes to the `PushConfig`.
      * 
*/ - public void modifyPushConfig( - com.google.pubsub.v1.ModifyPushConfigRequest request, + public void modifyPushConfig(com.google.pubsub.v1.ModifyPushConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getModifyPushConfigMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getModifyPushConfigMethod(), responseObserver); } /** - * - * *
      * Gets the configuration details of a snapshot. Snapshots are used in
      * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
@@ -921,16 +712,12 @@ public void modifyPushConfig(
      * subscription to the state captured by a snapshot.
      * 
*/ - public void getSnapshot( - com.google.pubsub.v1.GetSnapshotRequest request, + public void getSnapshot(com.google.pubsub.v1.GetSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetSnapshotMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSnapshotMethod(), responseObserver); } /** - * - * *
      * Lists the existing snapshots. Snapshots are used in [Seek](
      * https://cloud.google.com/pubsub/docs/replay-overview) operations, which
@@ -939,16 +726,12 @@ public void getSnapshot(
      * state captured by a snapshot.
      * 
*/ - public void listSnapshots( - com.google.pubsub.v1.ListSnapshotsRequest request, + public void listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListSnapshotsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSnapshotsMethod(), responseObserver); } /** - * - * *
      * Creates a snapshot from the requested subscription. Snapshots are used in
      * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
@@ -968,16 +751,12 @@ public void listSnapshots(
      * REST API requests, you must specify a name in the request.
      * 
*/ - public void createSnapshot( - com.google.pubsub.v1.CreateSnapshotRequest request, + public void createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSnapshotMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSnapshotMethod(), responseObserver); } /** - * - * *
      * Updates an existing snapshot. Snapshots are used in
      * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
@@ -987,16 +766,12 @@ public void createSnapshot(
      * captured by a snapshot.
      * 
*/ - public void updateSnapshot( - com.google.pubsub.v1.UpdateSnapshotRequest request, + public void updateSnapshot(com.google.pubsub.v1.UpdateSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateSnapshotMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSnapshotMethod(), responseObserver); } /** - * - * *
      * Removes an existing snapshot. Snapshots are used in [Seek]
      * (https://cloud.google.com/pubsub/docs/replay-overview) operations, which
@@ -1009,16 +784,12 @@ public void updateSnapshot(
      * snapshot or its subscription, unless the same subscription is specified.
      * 
*/ - public void deleteSnapshot( - com.google.pubsub.v1.DeleteSnapshotRequest request, + public void deleteSnapshot(com.google.pubsub.v1.DeleteSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteSnapshotMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSnapshotMethod(), responseObserver); } /** - * - * *
      * Seeks an existing subscription to a point in time or to a given snapshot,
      * whichever is provided in the request. Snapshots are used in [Seek]
@@ -1029,119 +800,130 @@ public void deleteSnapshot(
      * snapshot must be on the same topic.
      * 
*/ - public void seek( - com.google.pubsub.v1.SeekRequest request, + public void seek(com.google.pubsub.v1.SeekRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSeekMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription>( - this, METHODID_CREATE_SUBSCRIPTION))) + getCreateSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.Subscription, + com.google.pubsub.v1.Subscription>( + this, METHODID_CREATE_SUBSCRIPTION))) .addMethod( - getGetSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.GetSubscriptionRequest, - com.google.pubsub.v1.Subscription>(this, METHODID_GET_SUBSCRIPTION))) + getGetSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.GetSubscriptionRequest, + com.google.pubsub.v1.Subscription>( + this, METHODID_GET_SUBSCRIPTION))) .addMethod( - getUpdateSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.UpdateSubscriptionRequest, - com.google.pubsub.v1.Subscription>(this, METHODID_UPDATE_SUBSCRIPTION))) + getUpdateSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.UpdateSubscriptionRequest, + com.google.pubsub.v1.Subscription>( + this, METHODID_UPDATE_SUBSCRIPTION))) .addMethod( - getListSubscriptionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListSubscriptionsRequest, - com.google.pubsub.v1.ListSubscriptionsResponse>( - this, METHODID_LIST_SUBSCRIPTIONS))) + getListSubscriptionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListSubscriptionsRequest, + com.google.pubsub.v1.ListSubscriptionsResponse>( + this, METHODID_LIST_SUBSCRIPTIONS))) .addMethod( - getDeleteSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_SUBSCRIPTION))) + getDeleteSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DeleteSubscriptionRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_SUBSCRIPTION))) .addMethod( - getModifyAckDeadlineMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty>( - this, METHODID_MODIFY_ACK_DEADLINE))) + getModifyAckDeadlineMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ModifyAckDeadlineRequest, + com.google.protobuf.Empty>( + this, METHODID_MODIFY_ACK_DEADLINE))) .addMethod( - getAcknowledgeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.AcknowledgeRequest, com.google.protobuf.Empty>( - this, METHODID_ACKNOWLEDGE))) + getAcknowledgeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.AcknowledgeRequest, + com.google.protobuf.Empty>( + this, METHODID_ACKNOWLEDGE))) .addMethod( - getPullMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.PullRequest, com.google.pubsub.v1.PullResponse>( - this, METHODID_PULL))) + getPullMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.PullRequest, + com.google.pubsub.v1.PullResponse>( + this, METHODID_PULL))) .addMethod( - getStreamingPullMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.pubsub.v1.StreamingPullRequest, - com.google.pubsub.v1.StreamingPullResponse>(this, METHODID_STREAMING_PULL))) + getStreamingPullMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.pubsub.v1.StreamingPullRequest, + com.google.pubsub.v1.StreamingPullResponse>( + this, METHODID_STREAMING_PULL))) .addMethod( - getModifyPushConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty>( - this, METHODID_MODIFY_PUSH_CONFIG))) + getModifyPushConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ModifyPushConfigRequest, + com.google.protobuf.Empty>( + this, METHODID_MODIFY_PUSH_CONFIG))) .addMethod( - getGetSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.GetSnapshotRequest, com.google.pubsub.v1.Snapshot>( - this, METHODID_GET_SNAPSHOT))) + getGetSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.GetSnapshotRequest, + com.google.pubsub.v1.Snapshot>( + this, METHODID_GET_SNAPSHOT))) .addMethod( - getListSnapshotsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListSnapshotsRequest, - com.google.pubsub.v1.ListSnapshotsResponse>(this, METHODID_LIST_SNAPSHOTS))) + getListSnapshotsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListSnapshotsRequest, + com.google.pubsub.v1.ListSnapshotsResponse>( + this, METHODID_LIST_SNAPSHOTS))) .addMethod( - getCreateSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.CreateSnapshotRequest, com.google.pubsub.v1.Snapshot>( - this, METHODID_CREATE_SNAPSHOT))) + getCreateSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.CreateSnapshotRequest, + com.google.pubsub.v1.Snapshot>( + this, METHODID_CREATE_SNAPSHOT))) .addMethod( - getUpdateSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.UpdateSnapshotRequest, com.google.pubsub.v1.Snapshot>( - this, METHODID_UPDATE_SNAPSHOT))) + getUpdateSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.UpdateSnapshotRequest, + com.google.pubsub.v1.Snapshot>( + this, METHODID_UPDATE_SNAPSHOT))) .addMethod( - getDeleteSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.DeleteSnapshotRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_SNAPSHOT))) + getDeleteSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DeleteSnapshotRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_SNAPSHOT))) .addMethod( - getSeekMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.SeekRequest, com.google.pubsub.v1.SeekResponse>( - this, METHODID_SEEK))) + getSeekMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.SeekRequest, + com.google.pubsub.v1.SeekResponse>( + this, METHODID_SEEK))) .build(); } } /** - * - * *
    * The service that an application uses to manipulate subscriptions and to
    * consume messages from a subscription via the `Pull` method or by
@@ -1149,18 +931,18 @@ public final io.grpc.ServerServiceDefinition bindService() {
    * 
*/ public static final class SubscriberStub extends io.grpc.stub.AbstractAsyncStub { - private SubscriberStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private SubscriberStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected SubscriberStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected SubscriberStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SubscriberStub(channel, callOptions); } /** - * - * *
      * Creates a subscription to a given topic. See the [resource name rules]
      * (https://cloud.google.com/pubsub/docs/admin#resource_names).
@@ -1174,68 +956,47 @@ protected SubscriberStub build(io.grpc.Channel channel, io.grpc.CallOptions call
      * API requests, you must specify a name in the request.
      * 
*/ - public void createSubscription( - com.google.pubsub.v1.Subscription request, + public void createSubscription(com.google.pubsub.v1.Subscription request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSubscriptionMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateSubscriptionMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets the configuration details of a subscription.
      * 
*/ - public void getSubscription( - com.google.pubsub.v1.GetSubscriptionRequest request, + public void getSubscription(com.google.pubsub.v1.GetSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSubscriptionMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetSubscriptionMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates an existing subscription. Note that certain properties of a
      * subscription, such as its topic, are not modifiable.
      * 
*/ - public void updateSubscription( - com.google.pubsub.v1.UpdateSubscriptionRequest request, + public void updateSubscription(com.google.pubsub.v1.UpdateSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSubscriptionMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateSubscriptionMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists matching subscriptions.
      * 
*/ - public void listSubscriptions( - com.google.pubsub.v1.ListSubscriptionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listSubscriptions(com.google.pubsub.v1.ListSubscriptionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSubscriptionsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListSubscriptionsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes an existing subscription. All messages retained in the subscription
      * are immediately dropped. Calls to `Pull` after deletion will return
@@ -1244,18 +1005,13 @@ public void listSubscriptions(
      * subscription or its topic unless the same topic is specified.
      * 
*/ - public void deleteSubscription( - com.google.pubsub.v1.DeleteSubscriptionRequest request, + public void deleteSubscription(com.google.pubsub.v1.DeleteSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSubscriptionMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteSubscriptionMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Modifies the ack deadline for a specific message. This method is useful
      * to indicate that more time is needed to process a message by the
@@ -1264,18 +1020,13 @@ public void deleteSubscription(
      * subscription-level `ackDeadlineSeconds` used for subsequent messages.
      * 
*/ - public void modifyAckDeadline( - com.google.pubsub.v1.ModifyAckDeadlineRequest request, + public void modifyAckDeadline(com.google.pubsub.v1.ModifyAckDeadlineRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getModifyAckDeadlineMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getModifyAckDeadlineMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Acknowledges the messages associated with the `ack_ids` in the
      * `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
@@ -1285,34 +1036,26 @@ public void modifyAckDeadline(
      * than once will not result in an error.
      * 
*/ - public void acknowledge( - com.google.pubsub.v1.AcknowledgeRequest request, + public void acknowledge(com.google.pubsub.v1.AcknowledgeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAcknowledgeMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getAcknowledgeMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Pulls messages from the server. The server may return `UNAVAILABLE` if
      * there are too many concurrent pull requests pending for the given
      * subscription.
      * 
*/ - public void pull( - com.google.pubsub.v1.PullRequest request, + public void pull(com.google.pubsub.v1.PullRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getPullMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Establishes a stream with the server, which sends messages down to the
      * client. The client streams acknowledgements and ack deadline modifications
@@ -1330,8 +1073,6 @@ public io.grpc.stub.StreamObserver st
     }
 
     /**
-     *
-     *
      * 
      * Modifies the `PushConfig` for a specified subscription.
      * This may be used to change a push subscription to a pull one (signified by
@@ -1340,18 +1081,13 @@ public io.grpc.stub.StreamObserver st
      * continuously through the call regardless of changes to the `PushConfig`.
      * 
*/ - public void modifyPushConfig( - com.google.pubsub.v1.ModifyPushConfigRequest request, + public void modifyPushConfig(com.google.pubsub.v1.ModifyPushConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getModifyPushConfigMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getModifyPushConfigMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets the configuration details of a snapshot. Snapshots are used in
      * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
@@ -1360,18 +1096,13 @@ public void modifyPushConfig(
      * subscription to the state captured by a snapshot.
      * 
*/ - public void getSnapshot( - com.google.pubsub.v1.GetSnapshotRequest request, + public void getSnapshot(com.google.pubsub.v1.GetSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSnapshotMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetSnapshotMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Lists the existing snapshots. Snapshots are used in [Seek](
      * https://cloud.google.com/pubsub/docs/replay-overview) operations, which
@@ -1380,18 +1111,13 @@ public void getSnapshot(
      * state captured by a snapshot.
      * 
*/ - public void listSnapshots( - com.google.pubsub.v1.ListSnapshotsRequest request, + public void listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSnapshotsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListSnapshotsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates a snapshot from the requested subscription. Snapshots are used in
      * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
@@ -1411,18 +1137,13 @@ public void listSnapshots(
      * REST API requests, you must specify a name in the request.
      * 
*/ - public void createSnapshot( - com.google.pubsub.v1.CreateSnapshotRequest request, + public void createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSnapshotMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateSnapshotMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates an existing snapshot. Snapshots are used in
      * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
@@ -1432,18 +1153,13 @@ public void createSnapshot(
      * captured by a snapshot.
      * 
*/ - public void updateSnapshot( - com.google.pubsub.v1.UpdateSnapshotRequest request, + public void updateSnapshot(com.google.pubsub.v1.UpdateSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSnapshotMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateSnapshotMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Removes an existing snapshot. Snapshots are used in [Seek]
      * (https://cloud.google.com/pubsub/docs/replay-overview) operations, which
@@ -1456,18 +1172,13 @@ public void updateSnapshot(
      * snapshot or its subscription, unless the same subscription is specified.
      * 
*/ - public void deleteSnapshot( - com.google.pubsub.v1.DeleteSnapshotRequest request, + public void deleteSnapshot(com.google.pubsub.v1.DeleteSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSnapshotMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteSnapshotMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Seeks an existing subscription to a point in time or to a given snapshot,
      * whichever is provided in the request. Snapshots are used in [Seek]
@@ -1478,8 +1189,7 @@ public void deleteSnapshot(
      * snapshot must be on the same topic.
      * 
*/ - public void seek( - com.google.pubsub.v1.SeekRequest request, + public void seek(com.google.pubsub.v1.SeekRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSeekMethod(), getCallOptions()), request, responseObserver); @@ -1487,17 +1197,15 @@ public void seek( } /** - * - * *
    * The service that an application uses to manipulate subscriptions and to
    * consume messages from a subscription via the `Pull` method or by
    * establishing a bi-directional stream using the `StreamingPull` method.
    * 
*/ - public static final class SubscriberBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private SubscriberBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class SubscriberBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private SubscriberBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1508,8 +1216,6 @@ protected SubscriberBlockingStub build( } /** - * - * *
      * Creates a subscription to a given topic. See the [resource name rules]
      * (https://cloud.google.com/pubsub/docs/admin#resource_names).
@@ -1523,55 +1229,43 @@ protected SubscriberBlockingStub build(
      * API requests, you must specify a name in the request.
      * 
*/ - public com.google.pubsub.v1.Subscription createSubscription( - com.google.pubsub.v1.Subscription request) { + public com.google.pubsub.v1.Subscription createSubscription(com.google.pubsub.v1.Subscription request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateSubscriptionMethod(), getCallOptions(), request); } /** - * - * *
      * Gets the configuration details of a subscription.
      * 
*/ - public com.google.pubsub.v1.Subscription getSubscription( - com.google.pubsub.v1.GetSubscriptionRequest request) { + public com.google.pubsub.v1.Subscription getSubscription(com.google.pubsub.v1.GetSubscriptionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSubscriptionMethod(), getCallOptions(), request); } /** - * - * *
      * Updates an existing subscription. Note that certain properties of a
      * subscription, such as its topic, are not modifiable.
      * 
*/ - public com.google.pubsub.v1.Subscription updateSubscription( - com.google.pubsub.v1.UpdateSubscriptionRequest request) { + public com.google.pubsub.v1.Subscription updateSubscription(com.google.pubsub.v1.UpdateSubscriptionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateSubscriptionMethod(), getCallOptions(), request); } /** - * - * *
      * Lists matching subscriptions.
      * 
*/ - public com.google.pubsub.v1.ListSubscriptionsResponse listSubscriptions( - com.google.pubsub.v1.ListSubscriptionsRequest request) { + public com.google.pubsub.v1.ListSubscriptionsResponse listSubscriptions(com.google.pubsub.v1.ListSubscriptionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListSubscriptionsMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes an existing subscription. All messages retained in the subscription
      * are immediately dropped. Calls to `Pull` after deletion will return
@@ -1580,15 +1274,12 @@ public com.google.pubsub.v1.ListSubscriptionsResponse listSubscriptions(
      * subscription or its topic unless the same topic is specified.
      * 
*/ - public com.google.protobuf.Empty deleteSubscription( - com.google.pubsub.v1.DeleteSubscriptionRequest request) { + public com.google.protobuf.Empty deleteSubscription(com.google.pubsub.v1.DeleteSubscriptionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteSubscriptionMethod(), getCallOptions(), request); } /** - * - * *
      * Modifies the ack deadline for a specific message. This method is useful
      * to indicate that more time is needed to process a message by the
@@ -1597,15 +1288,12 @@ public com.google.protobuf.Empty deleteSubscription(
      * subscription-level `ackDeadlineSeconds` used for subsequent messages.
      * 
*/ - public com.google.protobuf.Empty modifyAckDeadline( - com.google.pubsub.v1.ModifyAckDeadlineRequest request) { + public com.google.protobuf.Empty modifyAckDeadline(com.google.pubsub.v1.ModifyAckDeadlineRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getModifyAckDeadlineMethod(), getCallOptions(), request); } /** - * - * *
      * Acknowledges the messages associated with the `ack_ids` in the
      * `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
@@ -1621,8 +1309,6 @@ public com.google.protobuf.Empty acknowledge(com.google.pubsub.v1.AcknowledgeReq
     }
 
     /**
-     *
-     *
      * 
      * Pulls messages from the server. The server may return `UNAVAILABLE` if
      * there are too many concurrent pull requests pending for the given
@@ -1635,8 +1321,6 @@ public com.google.pubsub.v1.PullResponse pull(com.google.pubsub.v1.PullRequest r
     }
 
     /**
-     *
-     *
      * 
      * Modifies the `PushConfig` for a specified subscription.
      * This may be used to change a push subscription to a pull one (signified by
@@ -1645,15 +1329,12 @@ public com.google.pubsub.v1.PullResponse pull(com.google.pubsub.v1.PullRequest r
      * continuously through the call regardless of changes to the `PushConfig`.
      * 
*/ - public com.google.protobuf.Empty modifyPushConfig( - com.google.pubsub.v1.ModifyPushConfigRequest request) { + public com.google.protobuf.Empty modifyPushConfig(com.google.pubsub.v1.ModifyPushConfigRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getModifyPushConfigMethod(), getCallOptions(), request); } /** - * - * *
      * Gets the configuration details of a snapshot. Snapshots are used in
      * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
@@ -1662,15 +1343,12 @@ public com.google.protobuf.Empty modifyPushConfig(
      * subscription to the state captured by a snapshot.
      * 
*/ - public com.google.pubsub.v1.Snapshot getSnapshot( - com.google.pubsub.v1.GetSnapshotRequest request) { + public com.google.pubsub.v1.Snapshot getSnapshot(com.google.pubsub.v1.GetSnapshotRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSnapshotMethod(), getCallOptions(), request); } /** - * - * *
      * Lists the existing snapshots. Snapshots are used in [Seek](
      * https://cloud.google.com/pubsub/docs/replay-overview) operations, which
@@ -1679,15 +1357,12 @@ public com.google.pubsub.v1.Snapshot getSnapshot(
      * state captured by a snapshot.
      * 
*/ - public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots( - com.google.pubsub.v1.ListSnapshotsRequest request) { + public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListSnapshotsMethod(), getCallOptions(), request); } /** - * - * *
      * Creates a snapshot from the requested subscription. Snapshots are used in
      * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
@@ -1707,15 +1382,12 @@ public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots(
      * REST API requests, you must specify a name in the request.
      * 
*/ - public com.google.pubsub.v1.Snapshot createSnapshot( - com.google.pubsub.v1.CreateSnapshotRequest request) { + public com.google.pubsub.v1.Snapshot createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateSnapshotMethod(), getCallOptions(), request); } /** - * - * *
      * Updates an existing snapshot. Snapshots are used in
      * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
@@ -1725,15 +1397,12 @@ public com.google.pubsub.v1.Snapshot createSnapshot(
      * captured by a snapshot.
      * 
*/ - public com.google.pubsub.v1.Snapshot updateSnapshot( - com.google.pubsub.v1.UpdateSnapshotRequest request) { + public com.google.pubsub.v1.Snapshot updateSnapshot(com.google.pubsub.v1.UpdateSnapshotRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateSnapshotMethod(), getCallOptions(), request); } /** - * - * *
      * Removes an existing snapshot. Snapshots are used in [Seek]
      * (https://cloud.google.com/pubsub/docs/replay-overview) operations, which
@@ -1746,15 +1415,12 @@ public com.google.pubsub.v1.Snapshot updateSnapshot(
      * snapshot or its subscription, unless the same subscription is specified.
      * 
*/ - public com.google.protobuf.Empty deleteSnapshot( - com.google.pubsub.v1.DeleteSnapshotRequest request) { + public com.google.protobuf.Empty deleteSnapshot(com.google.pubsub.v1.DeleteSnapshotRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteSnapshotMethod(), getCallOptions(), request); } /** - * - * *
      * Seeks an existing subscription to a point in time or to a given snapshot,
      * whichever is provided in the request. Snapshots are used in [Seek]
@@ -1772,28 +1438,25 @@ public com.google.pubsub.v1.SeekResponse seek(com.google.pubsub.v1.SeekRequest r
   }
 
   /**
-   *
-   *
    * 
    * The service that an application uses to manipulate subscriptions and to
    * consume messages from a subscription via the `Pull` method or by
    * establishing a bi-directional stream using the `StreamingPull` method.
    * 
*/ - public static final class SubscriberFutureStub - extends io.grpc.stub.AbstractFutureStub { - private SubscriberFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class SubscriberFutureStub extends io.grpc.stub.AbstractFutureStub { + private SubscriberFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected SubscriberFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SubscriberFutureStub(channel, callOptions); } /** - * - * *
      * Creates a subscription to a given topic. See the [resource name rules]
      * (https://cloud.google.com/pubsub/docs/admin#resource_names).
@@ -1807,56 +1470,47 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * API requests, you must specify a name in the request.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - createSubscription(com.google.pubsub.v1.Subscription request) { + public com.google.common.util.concurrent.ListenableFuture createSubscription( + com.google.pubsub.v1.Subscription request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateSubscriptionMethod(), getCallOptions()), request); } /** - * - * *
      * Gets the configuration details of a subscription.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getSubscription(com.google.pubsub.v1.GetSubscriptionRequest request) { + public com.google.common.util.concurrent.ListenableFuture getSubscription( + com.google.pubsub.v1.GetSubscriptionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSubscriptionMethod(), getCallOptions()), request); } /** - * - * *
      * Updates an existing subscription. Note that certain properties of a
      * subscription, such as its topic, are not modifiable.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updateSubscription(com.google.pubsub.v1.UpdateSubscriptionRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateSubscription( + com.google.pubsub.v1.UpdateSubscriptionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateSubscriptionMethod(), getCallOptions()), request); } /** - * - * *
      * Lists matching subscriptions.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.pubsub.v1.ListSubscriptionsResponse> - listSubscriptions(com.google.pubsub.v1.ListSubscriptionsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listSubscriptions( + com.google.pubsub.v1.ListSubscriptionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListSubscriptionsMethod(), getCallOptions()), request); } /** - * - * *
      * Deletes an existing subscription. All messages retained in the subscription
      * are immediately dropped. Calls to `Pull` after deletion will return
@@ -1865,15 +1519,13 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * subscription or its topic unless the same topic is specified.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteSubscription(com.google.pubsub.v1.DeleteSubscriptionRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteSubscription( + com.google.pubsub.v1.DeleteSubscriptionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteSubscriptionMethod(), getCallOptions()), request); } /** - * - * *
      * Modifies the ack deadline for a specific message. This method is useful
      * to indicate that more time is needed to process a message by the
@@ -1882,15 +1534,13 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * subscription-level `ackDeadlineSeconds` used for subsequent messages.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - modifyAckDeadline(com.google.pubsub.v1.ModifyAckDeadlineRequest request) { + public com.google.common.util.concurrent.ListenableFuture modifyAckDeadline( + com.google.pubsub.v1.ModifyAckDeadlineRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getModifyAckDeadlineMethod(), getCallOptions()), request); } /** - * - * *
      * Acknowledges the messages associated with the `ack_ids` in the
      * `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
@@ -1900,30 +1550,26 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * than once will not result in an error.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - acknowledge(com.google.pubsub.v1.AcknowledgeRequest request) { + public com.google.common.util.concurrent.ListenableFuture acknowledge( + com.google.pubsub.v1.AcknowledgeRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getAcknowledgeMethod(), getCallOptions()), request); } /** - * - * *
      * Pulls messages from the server. The server may return `UNAVAILABLE` if
      * there are too many concurrent pull requests pending for the given
      * subscription.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - pull(com.google.pubsub.v1.PullRequest request) { + public com.google.common.util.concurrent.ListenableFuture pull( + com.google.pubsub.v1.PullRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPullMethod(), getCallOptions()), request); } /** - * - * *
      * Modifies the `PushConfig` for a specified subscription.
      * This may be used to change a push subscription to a pull one (signified by
@@ -1932,15 +1578,13 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * continuously through the call regardless of changes to the `PushConfig`.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - modifyPushConfig(com.google.pubsub.v1.ModifyPushConfigRequest request) { + public com.google.common.util.concurrent.ListenableFuture modifyPushConfig( + com.google.pubsub.v1.ModifyPushConfigRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getModifyPushConfigMethod(), getCallOptions()), request); } /** - * - * *
      * Gets the configuration details of a snapshot. Snapshots are used in
      * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
@@ -1949,15 +1593,13 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * subscription to the state captured by a snapshot.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - getSnapshot(com.google.pubsub.v1.GetSnapshotRequest request) { + public com.google.common.util.concurrent.ListenableFuture getSnapshot( + com.google.pubsub.v1.GetSnapshotRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSnapshotMethod(), getCallOptions()), request); } /** - * - * *
      * Lists the existing snapshots. Snapshots are used in [Seek](
      * https://cloud.google.com/pubsub/docs/replay-overview) operations, which
@@ -1966,16 +1608,13 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * state captured by a snapshot.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.pubsub.v1.ListSnapshotsResponse> - listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listSnapshots( + com.google.pubsub.v1.ListSnapshotsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListSnapshotsMethod(), getCallOptions()), request); } /** - * - * *
      * Creates a snapshot from the requested subscription. Snapshots are used in
      * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
@@ -1995,15 +1634,13 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * REST API requests, you must specify a name in the request.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request) { + public com.google.common.util.concurrent.ListenableFuture createSnapshot( + com.google.pubsub.v1.CreateSnapshotRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateSnapshotMethod(), getCallOptions()), request); } /** - * - * *
      * Updates an existing snapshot. Snapshots are used in
      * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
@@ -2013,15 +1650,13 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * captured by a snapshot.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updateSnapshot(com.google.pubsub.v1.UpdateSnapshotRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateSnapshot( + com.google.pubsub.v1.UpdateSnapshotRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateSnapshotMethod(), getCallOptions()), request); } /** - * - * *
      * Removes an existing snapshot. Snapshots are used in [Seek]
      * (https://cloud.google.com/pubsub/docs/replay-overview) operations, which
@@ -2034,15 +1669,13 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * snapshot or its subscription, unless the same subscription is specified.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteSnapshot(com.google.pubsub.v1.DeleteSnapshotRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteSnapshot( + com.google.pubsub.v1.DeleteSnapshotRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteSnapshotMethod(), getCallOptions()), request); } /** - * - * *
      * Seeks an existing subscription to a point in time or to a given snapshot,
      * whichever is provided in the request. Snapshots are used in [Seek]
@@ -2053,8 +1686,8 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
      * snapshot must be on the same topic.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - seek(com.google.pubsub.v1.SeekRequest request) { + public com.google.common.util.concurrent.ListenableFuture seek( + com.google.pubsub.v1.SeekRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSeekMethod(), getCallOptions()), request); } @@ -2077,11 +1710,11 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption private static final int METHODID_SEEK = 14; private static final int METHODID_STREAMING_PULL = 15; - 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 SubscriberImplBase serviceImpl; private final int methodId; @@ -2095,80 +1728,63 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_SUBSCRIPTION: - serviceImpl.createSubscription( - (com.google.pubsub.v1.Subscription) request, + serviceImpl.createSubscription((com.google.pubsub.v1.Subscription) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_SUBSCRIPTION: - serviceImpl.getSubscription( - (com.google.pubsub.v1.GetSubscriptionRequest) request, + serviceImpl.getSubscription((com.google.pubsub.v1.GetSubscriptionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_SUBSCRIPTION: - serviceImpl.updateSubscription( - (com.google.pubsub.v1.UpdateSubscriptionRequest) request, + serviceImpl.updateSubscription((com.google.pubsub.v1.UpdateSubscriptionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_SUBSCRIPTIONS: - serviceImpl.listSubscriptions( - (com.google.pubsub.v1.ListSubscriptionsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listSubscriptions((com.google.pubsub.v1.ListSubscriptionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_SUBSCRIPTION: - serviceImpl.deleteSubscription( - (com.google.pubsub.v1.DeleteSubscriptionRequest) request, + serviceImpl.deleteSubscription((com.google.pubsub.v1.DeleteSubscriptionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_MODIFY_ACK_DEADLINE: - serviceImpl.modifyAckDeadline( - (com.google.pubsub.v1.ModifyAckDeadlineRequest) request, + serviceImpl.modifyAckDeadline((com.google.pubsub.v1.ModifyAckDeadlineRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_ACKNOWLEDGE: - serviceImpl.acknowledge( - (com.google.pubsub.v1.AcknowledgeRequest) request, + serviceImpl.acknowledge((com.google.pubsub.v1.AcknowledgeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_PULL: - serviceImpl.pull( - (com.google.pubsub.v1.PullRequest) request, + serviceImpl.pull((com.google.pubsub.v1.PullRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_MODIFY_PUSH_CONFIG: - serviceImpl.modifyPushConfig( - (com.google.pubsub.v1.ModifyPushConfigRequest) request, + serviceImpl.modifyPushConfig((com.google.pubsub.v1.ModifyPushConfigRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_SNAPSHOT: - serviceImpl.getSnapshot( - (com.google.pubsub.v1.GetSnapshotRequest) request, + serviceImpl.getSnapshot((com.google.pubsub.v1.GetSnapshotRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_SNAPSHOTS: - serviceImpl.listSnapshots( - (com.google.pubsub.v1.ListSnapshotsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listSnapshots((com.google.pubsub.v1.ListSnapshotsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_SNAPSHOT: - serviceImpl.createSnapshot( - (com.google.pubsub.v1.CreateSnapshotRequest) request, + serviceImpl.createSnapshot((com.google.pubsub.v1.CreateSnapshotRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_SNAPSHOT: - serviceImpl.updateSnapshot( - (com.google.pubsub.v1.UpdateSnapshotRequest) request, + serviceImpl.updateSnapshot((com.google.pubsub.v1.UpdateSnapshotRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_SNAPSHOT: - serviceImpl.deleteSnapshot( - (com.google.pubsub.v1.DeleteSnapshotRequest) request, + serviceImpl.deleteSnapshot((com.google.pubsub.v1.DeleteSnapshotRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SEEK: - serviceImpl.seek( - (com.google.pubsub.v1.SeekRequest) request, + serviceImpl.seek((com.google.pubsub.v1.SeekRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -2182,19 +1798,16 @@ public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_STREAMING_PULL: - return (io.grpc.stub.StreamObserver) - serviceImpl.streamingPull( - (io.grpc.stub.StreamObserver) - responseObserver); + return (io.grpc.stub.StreamObserver) serviceImpl.streamingPull( + (io.grpc.stub.StreamObserver) responseObserver); default: throw new AssertionError(); } } } - private abstract static class SubscriberBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class SubscriberBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { SubscriberBaseDescriptorSupplier() {} @java.lang.Override @@ -2236,27 +1849,25 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (SubscriberGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SubscriberFileDescriptorSupplier()) - .addMethod(getCreateSubscriptionMethod()) - .addMethod(getGetSubscriptionMethod()) - .addMethod(getUpdateSubscriptionMethod()) - .addMethod(getListSubscriptionsMethod()) - .addMethod(getDeleteSubscriptionMethod()) - .addMethod(getModifyAckDeadlineMethod()) - .addMethod(getAcknowledgeMethod()) - .addMethod(getPullMethod()) - .addMethod(getStreamingPullMethod()) - .addMethod(getModifyPushConfigMethod()) - .addMethod(getGetSnapshotMethod()) - .addMethod(getListSnapshotsMethod()) - .addMethod(getCreateSnapshotMethod()) - .addMethod(getUpdateSnapshotMethod()) - .addMethod(getDeleteSnapshotMethod()) - .addMethod(getSeekMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SubscriberFileDescriptorSupplier()) + .addMethod(getCreateSubscriptionMethod()) + .addMethod(getGetSubscriptionMethod()) + .addMethod(getUpdateSubscriptionMethod()) + .addMethod(getListSubscriptionsMethod()) + .addMethod(getDeleteSubscriptionMethod()) + .addMethod(getModifyAckDeadlineMethod()) + .addMethod(getAcknowledgeMethod()) + .addMethod(getPullMethod()) + .addMethod(getStreamingPullMethod()) + .addMethod(getModifyPushConfigMethod()) + .addMethod(getGetSnapshotMethod()) + .addMethod(getListSnapshotsMethod()) + .addMethod(getCreateSnapshotMethod()) + .addMethod(getUpdateSnapshotMethod()) + .addMethod(getDeleteSnapshotMethod()) + .addMethod(getSeekMethod()) + .build(); } } } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java similarity index 70% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index 009081161..bf2dc081e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Request for the Acknowledge method.
  * 
* * Protobuf type {@code google.pubsub.v1.AcknowledgeRequest} */ -public final class AcknowledgeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AcknowledgeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.AcknowledgeRequest) AcknowledgeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AcknowledgeRequest.newBuilder() to construct. private AcknowledgeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AcknowledgeRequest() { subscription_ = ""; ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -44,15 +26,16 @@ private AcknowledgeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AcknowledgeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AcknowledgeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,36 +55,35 @@ private AcknowledgeRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - ackIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - ackIds_.add(s); - break; + subscription_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + ackIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + ackIds_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { ackIds_ = ackIds_.getUnmodifiableView(); @@ -110,36 +92,28 @@ private AcknowledgeRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.AcknowledgeRequest.class, - com.google.pubsub.v1.AcknowledgeRequest.Builder.class); + com.google.pubsub.v1.AcknowledgeRequest.class, com.google.pubsub.v1.AcknowledgeRequest.Builder.class); } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object subscription_; /** - * - * *
    * Required. The subscription whose message is being acknowledged.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The subscription. */ @java.lang.Override @@ -148,32 +122,30 @@ 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; } } /** - * - * *
    * Required. The subscription whose message is being acknowledged.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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 { @@ -184,8 +156,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public static final int ACK_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList ackIds_; /** - * - * *
    * Required. The acknowledgment ID for the messages being acknowledged that
    * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -193,15 +163,13 @@ public com.google.protobuf.ByteString getSubscriptionBytes() {
    * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList getAckIdsList() { + public com.google.protobuf.ProtocolStringList + getAckIdsList() { return ackIds_; } /** - * - * *
    * Required. The acknowledgment ID for the messages being acknowledged that
    * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -209,15 +177,12 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() {
    * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** - * - * *
    * Required. The acknowledgment ID for the messages being acknowledged that
    * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -225,7 +190,6 @@ public int getAckIdsCount() {
    * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -233,8 +197,6 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** - * - * *
    * Required. The acknowledgment ID for the messages being acknowledged that
    * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -242,16 +204,15 @@ public java.lang.String getAckIds(int index) {
    * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. */ - public com.google.protobuf.ByteString getAckIdsBytes(int index) { + public com.google.protobuf.ByteString + getAckIdsBytes(int index) { return ackIds_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,8 +224,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getSubscriptionBytes().isEmpty()) { + 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_); } for (int i = 0; i < ackIds_.size(); i++) { @@ -279,7 +241,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getSubscriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } { @@ -298,15 +260,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.pubsub.v1.AcknowledgeRequest)) { return super.equals(obj); } com.google.pubsub.v1.AcknowledgeRequest other = (com.google.pubsub.v1.AcknowledgeRequest) obj; - if (!getSubscription().equals(other.getSubscription())) return false; - if (!getAckIdsList().equals(other.getAckIdsList())) return false; + if (!getSubscription() + .equals(other.getSubscription())) return false; + if (!getAckIdsList() + .equals(other.getAckIdsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -329,127 +293,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.AcknowledgeRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.AcknowledgeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.AcknowledgeRequest 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.pubsub.v1.AcknowledgeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.pubsub.v1.AcknowledgeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.AcknowledgeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.AcknowledgeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.AcknowledgeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 the Acknowledge method.
    * 
* * Protobuf type {@code google.pubsub.v1.AcknowledgeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.AcknowledgeRequest) com.google.pubsub.v1.AcknowledgeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.AcknowledgeRequest.class, - com.google.pubsub.v1.AcknowledgeRequest.Builder.class); + com.google.pubsub.v1.AcknowledgeRequest.class, com.google.pubsub.v1.AcknowledgeRequest.Builder.class); } // Construct using com.google.pubsub.v1.AcknowledgeRequest.newBuilder() @@ -457,15 +412,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -477,9 +433,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; } @java.lang.Override @@ -498,8 +454,7 @@ public com.google.pubsub.v1.AcknowledgeRequest build() { @java.lang.Override public com.google.pubsub.v1.AcknowledgeRequest buildPartial() { - com.google.pubsub.v1.AcknowledgeRequest result = - new com.google.pubsub.v1.AcknowledgeRequest(this); + com.google.pubsub.v1.AcknowledgeRequest result = new com.google.pubsub.v1.AcknowledgeRequest(this); int from_bitField0_ = bitField0_; result.subscription_ = subscription_; if (((bitField0_ & 0x00000001) != 0)) { @@ -515,39 +470,38 @@ public com.google.pubsub.v1.AcknowledgeRequest 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.pubsub.v1.AcknowledgeRequest) { - return mergeFrom((com.google.pubsub.v1.AcknowledgeRequest) other); + return mergeFrom((com.google.pubsub.v1.AcknowledgeRequest)other); } else { super.mergeFrom(other); return this; @@ -598,28 +552,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object subscription_ = ""; /** - * - * *
      * Required. The subscription whose message is being acknowledged.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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; @@ -628,24 +577,21 @@ public java.lang.String getSubscription() { } } /** - * - * *
      * Required. The subscription whose message is being acknowledged.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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,87 +599,70 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * Required. The subscription whose message is being acknowledged.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription(java.lang.String value) { + public Builder setSubscription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; onChanged(); return this; } /** - * - * *
      * Required. The subscription whose message is being acknowledged.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearSubscription() { - + subscription_ = getDefaultInstance().getSubscription(); onChanged(); return this; } /** - * - * *
      * Required. The subscription whose message is being acknowledged.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList ackIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAckIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Required. The acknowledgment ID for the messages being acknowledged that
      * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -741,15 +670,13 @@ private void ensureAckIdsIsMutable() {
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList getAckIdsList() { + public com.google.protobuf.ProtocolStringList + getAckIdsList() { return ackIds_.getUnmodifiableView(); } /** - * - * *
      * Required. The acknowledgment ID for the messages being acknowledged that
      * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -757,15 +684,12 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() {
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** - * - * *
      * Required. The acknowledgment ID for the messages being acknowledged that
      * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -773,7 +697,6 @@ public int getAckIdsCount() {
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -781,8 +704,6 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** - * - * *
      * Required. The acknowledgment ID for the messages being acknowledged that
      * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -790,16 +711,14 @@ public java.lang.String getAckIds(int index) {
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. */ - public com.google.protobuf.ByteString getAckIdsBytes(int index) { + public com.google.protobuf.ByteString + getAckIdsBytes(int index) { return ackIds_.getByteString(index); } /** - * - * *
      * Required. The acknowledgment ID for the messages being acknowledged that
      * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -807,23 +726,21 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) {
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The ackIds to set. * @return This builder for chaining. */ - public Builder setAckIds(int index, java.lang.String value) { + public Builder setAckIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. The acknowledgment ID for the messages being acknowledged that
      * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -831,22 +748,20 @@ public Builder setAckIds(int index, java.lang.String value) {
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The ackIds to add. * @return This builder for chaining. */ - public Builder addAckIds(java.lang.String value) { + public Builder addAckIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); return this; } /** - * - * *
      * Required. The acknowledgment ID for the messages being acknowledged that
      * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -854,19 +769,18 @@ public Builder addAckIds(java.lang.String value) {
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The ackIds to add. * @return This builder for chaining. */ - public Builder addAllAckIds(java.lang.Iterable values) { + public Builder addAllAckIds( + java.lang.Iterable values) { ensureAckIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ackIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ackIds_); onChanged(); return this; } /** - * - * *
      * Required. The acknowledgment ID for the messages being acknowledged that
      * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -874,7 +788,6 @@ public Builder addAllAckIds(java.lang.Iterable values) {
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAckIds() { @@ -884,8 +797,6 @@ public Builder clearAckIds() { return this; } /** - * - * *
      * Required. The acknowledgment ID for the messages being acknowledged that
      * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -893,23 +804,23 @@ public Builder clearAckIds() {
      * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the ackIds to add. * @return This builder for chaining. */ - public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { + public Builder addAckIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAckIdsIsMutable(); ackIds_.add(value); 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); } @@ -919,12 +830,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.AcknowledgeRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.AcknowledgeRequest) private static final com.google.pubsub.v1.AcknowledgeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.AcknowledgeRequest(); } @@ -933,16 +844,16 @@ public static com.google.pubsub.v1.AcknowledgeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AcknowledgeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AcknowledgeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AcknowledgeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AcknowledgeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -957,4 +868,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.AcknowledgeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java similarity index 65% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java index 4951b0bb1..3f461f31d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; -public interface AcknowledgeRequestOrBuilder - extends +public interface AcknowledgeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.AcknowledgeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The subscription whose message is being acknowledged.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The subscription. */ java.lang.String getSubscription(); /** - * - * *
    * Required. The subscription whose message is being acknowledged.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for subscription. */ - com.google.protobuf.ByteString getSubscriptionBytes(); + com.google.protobuf.ByteString + getSubscriptionBytes(); /** - * - * *
    * Required. The acknowledgment ID for the messages being acknowledged that
    * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -64,13 +37,11 @@ public interface AcknowledgeRequestOrBuilder
    * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the ackIds. */ - java.util.List getAckIdsList(); + java.util.List + getAckIdsList(); /** - * - * *
    * Required. The acknowledgment ID for the messages being acknowledged that
    * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -78,13 +49,10 @@ public interface AcknowledgeRequestOrBuilder
    * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of ackIds. */ int getAckIdsCount(); /** - * - * *
    * Required. The acknowledgment ID for the messages being acknowledged that
    * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -92,14 +60,11 @@ public interface AcknowledgeRequestOrBuilder
    * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The ackIds at the given index. */ java.lang.String getAckIds(int index); /** - * - * *
    * Required. The acknowledgment ID for the messages being acknowledged that
    * was returned by the Pub/Sub system in the `Pull` response. Must not be
@@ -107,9 +72,9 @@ public interface AcknowledgeRequestOrBuilder
    * 
* * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. */ - com.google.protobuf.ByteString getAckIdsBytes(int index); + com.google.protobuf.ByteString + getAckIdsBytes(int index); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java similarity index 71% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java index 6c7618f9c..af75e3f1a 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto package com.google.pubsub.v1; /** - * - * *
  * Request for the CreateSchema method.
  * 
* * Protobuf type {@code google.pubsub.v1.CreateSchemaRequest} */ -public final class CreateSchemaRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateSchemaRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.CreateSchemaRequest) CreateSchemaRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateSchemaRequest.newBuilder() to construct. private CreateSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateSchemaRequest() { parent_ = ""; schemaId_ = ""; @@ -44,15 +26,16 @@ private CreateSchemaRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateSchemaRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateSchemaRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,82 +54,72 @@ private CreateSchemaRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.pubsub.v1.Schema.Builder subBuilder = null; + if (schema_ != null) { + subBuilder = schema_.toBuilder(); } - case 18: - { - com.google.pubsub.v1.Schema.Builder subBuilder = null; - if (schema_ != null) { - subBuilder = schema_.toBuilder(); - } - schema_ = input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(schema_); - schema_ = subBuilder.buildPartial(); - } - - break; + schema_ = input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(schema_); + schema_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - schemaId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + schemaId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_CreateSchemaRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_CreateSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.CreateSchemaRequest.class, - com.google.pubsub.v1.CreateSchemaRequest.Builder.class); + com.google.pubsub.v1.CreateSchemaRequest.class, com.google.pubsub.v1.CreateSchemaRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The name of the project in which to create the schema.
    * Format is `projects/{project-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 @@ -155,32 +128,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 name of the project in which to create the schema.
    * Format is `projects/{project-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 { @@ -191,8 +162,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SCHEMA_FIELD_NUMBER = 2; private com.google.pubsub.v1.Schema schema_; /** - * - * *
    * Required. The schema object to create.
    * This schema's `name` parameter is ignored. The schema object returned
@@ -201,7 +170,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the schema field is set. */ @java.lang.Override @@ -209,8 +177,6 @@ public boolean hasSchema() { return schema_ != null; } /** - * - * *
    * Required. The schema object to create.
    * This schema's `name` parameter is ignored. The schema object returned
@@ -219,7 +185,6 @@ public boolean hasSchema() {
    * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The schema. */ @java.lang.Override @@ -227,8 +192,6 @@ public com.google.pubsub.v1.Schema getSchema() { return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; } /** - * - * *
    * Required. The schema object to create.
    * This schema's `name` parameter is ignored. The schema object returned
@@ -246,8 +209,6 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() {
   public static final int SCHEMA_ID_FIELD_NUMBER = 3;
   private volatile java.lang.Object schemaId_;
   /**
-   *
-   *
    * 
    * The ID to use for the schema, which will become the final component of
    * the schema's resource name.
@@ -256,7 +217,6 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() {
    * 
* * string schema_id = 3; - * * @return The schemaId. */ @java.lang.Override @@ -265,15 +225,14 @@ public java.lang.String getSchemaId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaId_ = s; return s; } } /** - * - * *
    * The ID to use for the schema, which will become the final component of
    * the schema's resource name.
@@ -282,15 +241,16 @@ public java.lang.String getSchemaId() {
    * 
* * string schema_id = 3; - * * @return The bytes for schemaId. */ @java.lang.Override - public com.google.protobuf.ByteString getSchemaIdBytes() { + public com.google.protobuf.ByteString + getSchemaIdBytes() { java.lang.Object ref = schemaId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schemaId_ = b; return b; } else { @@ -299,7 +259,6 @@ public com.google.protobuf.ByteString getSchemaIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -311,14 +270,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + 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_); } if (schema_ != null) { output.writeMessage(2, getSchema()); } - if (!getSchemaIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, schemaId_); } unknownFields.writeTo(output); @@ -330,13 +290,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (schema_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSchema()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSchema()); } - if (!getSchemaIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schemaId_); } size += unknownFields.getSerializedSize(); @@ -347,19 +308,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.pubsub.v1.CreateSchemaRequest)) { return super.equals(obj); } com.google.pubsub.v1.CreateSchemaRequest other = (com.google.pubsub.v1.CreateSchemaRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasSchema() != other.hasSchema()) return false; if (hasSchema()) { - if (!getSchema().equals(other.getSchema())) return false; + if (!getSchema() + .equals(other.getSchema())) return false; } - if (!getSchemaId().equals(other.getSchemaId())) return false; + if (!getSchemaId() + .equals(other.getSchemaId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -384,127 +348,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.CreateSchemaRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.CreateSchemaRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.CreateSchemaRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.CreateSchemaRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.CreateSchemaRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.CreateSchemaRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.CreateSchemaRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.CreateSchemaRequest 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.pubsub.v1.CreateSchemaRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.pubsub.v1.CreateSchemaRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.CreateSchemaRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.CreateSchemaRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.CreateSchemaRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.CreateSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.CreateSchemaRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 the CreateSchema method.
    * 
* * Protobuf type {@code google.pubsub.v1.CreateSchemaRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.CreateSchemaRequest) com.google.pubsub.v1.CreateSchemaRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_CreateSchemaRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_CreateSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.CreateSchemaRequest.class, - com.google.pubsub.v1.CreateSchemaRequest.Builder.class); + com.google.pubsub.v1.CreateSchemaRequest.class, com.google.pubsub.v1.CreateSchemaRequest.Builder.class); } // Construct using com.google.pubsub.v1.CreateSchemaRequest.newBuilder() @@ -512,15 +467,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -538,9 +494,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor; } @java.lang.Override @@ -559,8 +515,7 @@ public com.google.pubsub.v1.CreateSchemaRequest build() { @java.lang.Override public com.google.pubsub.v1.CreateSchemaRequest buildPartial() { - com.google.pubsub.v1.CreateSchemaRequest result = - new com.google.pubsub.v1.CreateSchemaRequest(this); + com.google.pubsub.v1.CreateSchemaRequest result = new com.google.pubsub.v1.CreateSchemaRequest(this); result.parent_ = parent_; if (schemaBuilder_ == null) { result.schema_ = schema_; @@ -576,39 +531,38 @@ public com.google.pubsub.v1.CreateSchemaRequest 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.pubsub.v1.CreateSchemaRequest) { - return mergeFrom((com.google.pubsub.v1.CreateSchemaRequest) other); + return mergeFrom((com.google.pubsub.v1.CreateSchemaRequest)other); } else { super.mergeFrom(other); return this; @@ -659,23 +613,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the project in which to create the schema.
      * Format is `projects/{project-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; @@ -684,24 +634,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the project in which to create the schema.
      * Format is `projects/{project-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 { @@ -709,70 +656,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the project in which to create the schema.
      * Format is `projects/{project-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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the project in which to create the schema.
      * Format is `projects/{project-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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The name of the project in which to create the schema.
      * Format is `projects/{project-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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -780,13 +714,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.pubsub.v1.Schema schema_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Schema, - com.google.pubsub.v1.Schema.Builder, - com.google.pubsub.v1.SchemaOrBuilder> - schemaBuilder_; + com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> schemaBuilder_; /** - * - * *
      * Required. The schema object to create.
      * This schema's `name` parameter is ignored. The schema object returned
@@ -795,15 +724,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the schema field is set. */ public boolean hasSchema() { return schemaBuilder_ != null || schema_ != null; } /** - * - * *
      * Required. The schema object to create.
      * This schema's `name` parameter is ignored. The schema object returned
@@ -812,7 +738,6 @@ public boolean hasSchema() {
      * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The schema. */ public com.google.pubsub.v1.Schema getSchema() { @@ -823,8 +748,6 @@ public com.google.pubsub.v1.Schema getSchema() { } } /** - * - * *
      * Required. The schema object to create.
      * This schema's `name` parameter is ignored. The schema object returned
@@ -848,8 +771,6 @@ public Builder setSchema(com.google.pubsub.v1.Schema value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The schema object to create.
      * This schema's `name` parameter is ignored. The schema object returned
@@ -859,7 +780,8 @@ public Builder setSchema(com.google.pubsub.v1.Schema value) {
      *
      * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
      */
-    public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) {
+    public Builder setSchema(
+        com.google.pubsub.v1.Schema.Builder builderForValue) {
       if (schemaBuilder_ == null) {
         schema_ = builderForValue.build();
         onChanged();
@@ -870,8 +792,6 @@ public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The schema object to create.
      * This schema's `name` parameter is ignored. The schema object returned
@@ -884,7 +804,8 @@ public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) {
     public Builder mergeSchema(com.google.pubsub.v1.Schema value) {
       if (schemaBuilder_ == null) {
         if (schema_ != null) {
-          schema_ = com.google.pubsub.v1.Schema.newBuilder(schema_).mergeFrom(value).buildPartial();
+          schema_ =
+            com.google.pubsub.v1.Schema.newBuilder(schema_).mergeFrom(value).buildPartial();
         } else {
           schema_ = value;
         }
@@ -896,8 +817,6 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The schema object to create.
      * This schema's `name` parameter is ignored. The schema object returned
@@ -919,8 +838,6 @@ public Builder clearSchema() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The schema object to create.
      * This schema's `name` parameter is ignored. The schema object returned
@@ -931,13 +848,11 @@ public Builder clearSchema() {
      * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() {
-
+      
       onChanged();
       return getSchemaFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. The schema object to create.
      * This schema's `name` parameter is ignored. The schema object returned
@@ -951,12 +866,11 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() {
       if (schemaBuilder_ != null) {
         return schemaBuilder_.getMessageOrBuilder();
       } else {
-        return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_;
+        return schema_ == null ?
+            com.google.pubsub.v1.Schema.getDefaultInstance() : schema_;
       }
     }
     /**
-     *
-     *
      * 
      * Required. The schema object to create.
      * This schema's `name` parameter is ignored. The schema object returned
@@ -967,17 +881,14 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() {
      * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.pubsub.v1.Schema,
-            com.google.pubsub.v1.Schema.Builder,
-            com.google.pubsub.v1.SchemaOrBuilder>
+        com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> 
         getSchemaFieldBuilder() {
       if (schemaBuilder_ == null) {
-        schemaBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.pubsub.v1.Schema,
-                com.google.pubsub.v1.Schema.Builder,
-                com.google.pubsub.v1.SchemaOrBuilder>(
-                getSchema(), getParentForChildren(), isClean());
+        schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder>(
+                getSchema(),
+                getParentForChildren(),
+                isClean());
         schema_ = null;
       }
       return schemaBuilder_;
@@ -985,8 +896,6 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() {
 
     private java.lang.Object schemaId_ = "";
     /**
-     *
-     *
      * 
      * The ID to use for the schema, which will become the final component of
      * the schema's resource name.
@@ -995,13 +904,13 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() {
      * 
* * string schema_id = 3; - * * @return The schemaId. */ public java.lang.String getSchemaId() { java.lang.Object ref = schemaId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaId_ = s; return s; @@ -1010,8 +919,6 @@ public java.lang.String getSchemaId() { } } /** - * - * *
      * The ID to use for the schema, which will become the final component of
      * the schema's resource name.
@@ -1020,14 +927,15 @@ public java.lang.String getSchemaId() {
      * 
* * string schema_id = 3; - * * @return The bytes for schemaId. */ - public com.google.protobuf.ByteString getSchemaIdBytes() { + public com.google.protobuf.ByteString + getSchemaIdBytes() { java.lang.Object ref = schemaId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schemaId_ = b; return b; } else { @@ -1035,8 +943,6 @@ public com.google.protobuf.ByteString getSchemaIdBytes() { } } /** - * - * *
      * The ID to use for the schema, which will become the final component of
      * the schema's resource name.
@@ -1045,22 +951,20 @@ public com.google.protobuf.ByteString getSchemaIdBytes() {
      * 
* * string schema_id = 3; - * * @param value The schemaId to set. * @return This builder for chaining. */ - public Builder setSchemaId(java.lang.String value) { + public Builder setSchemaId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + schemaId_ = value; onChanged(); return this; } /** - * - * *
      * The ID to use for the schema, which will become the final component of
      * the schema's resource name.
@@ -1069,18 +973,15 @@ public Builder setSchemaId(java.lang.String value) {
      * 
* * string schema_id = 3; - * * @return This builder for chaining. */ public Builder clearSchemaId() { - + schemaId_ = getDefaultInstance().getSchemaId(); onChanged(); return this; } /** - * - * *
      * The ID to use for the schema, which will become the final component of
      * the schema's resource name.
@@ -1089,23 +990,23 @@ public Builder clearSchemaId() {
      * 
* * string schema_id = 3; - * * @param value The bytes for schemaId to set. * @return This builder for chaining. */ - public Builder setSchemaIdBytes(com.google.protobuf.ByteString value) { + public Builder setSchemaIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schemaId_ = value; 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 +1016,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.CreateSchemaRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.CreateSchemaRequest) private static final com.google.pubsub.v1.CreateSchemaRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.CreateSchemaRequest(); } @@ -1129,16 +1030,16 @@ public static com.google.pubsub.v1.CreateSchemaRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSchemaRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateSchemaRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateSchemaRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1153,4 +1054,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.CreateSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java similarity index 69% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java index 395a549cf..329e106b9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto package com.google.pubsub.v1; -public interface CreateSchemaRequestOrBuilder - extends +public interface CreateSchemaRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.CreateSchemaRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the project in which to create the schema.
    * Format is `projects/{project-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 name of the project in which to create the schema.
    * Format is `projects/{project-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(); /** - * - * *
    * Required. The schema object to create.
    * This schema's `name` parameter is ignored. The schema object returned
@@ -65,13 +38,10 @@ public interface CreateSchemaRequestOrBuilder
    * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the schema field is set. */ boolean hasSchema(); /** - * - * *
    * Required. The schema object to create.
    * This schema's `name` parameter is ignored. The schema object returned
@@ -80,13 +50,10 @@ public interface CreateSchemaRequestOrBuilder
    * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The schema. */ com.google.pubsub.v1.Schema getSchema(); /** - * - * *
    * Required. The schema object to create.
    * This schema's `name` parameter is ignored. The schema object returned
@@ -99,8 +66,6 @@ public interface CreateSchemaRequestOrBuilder
   com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder();
 
   /**
-   *
-   *
    * 
    * The ID to use for the schema, which will become the final component of
    * the schema's resource name.
@@ -109,13 +74,10 @@ public interface CreateSchemaRequestOrBuilder
    * 
* * string schema_id = 3; - * * @return The schemaId. */ java.lang.String getSchemaId(); /** - * - * *
    * The ID to use for the schema, which will become the final component of
    * the schema's resource name.
@@ -124,8 +86,8 @@ public interface CreateSchemaRequestOrBuilder
    * 
* * string schema_id = 3; - * * @return The bytes for schemaId. */ - com.google.protobuf.ByteString getSchemaIdBytes(); + com.google.protobuf.ByteString + getSchemaIdBytes(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java similarity index 66% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 00ea43fcd..82db322f1 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Request for the `CreateSnapshot` method.
  * 
* * Protobuf type {@code google.pubsub.v1.CreateSnapshotRequest} */ -public final class CreateSnapshotRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateSnapshotRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.CreateSnapshotRequest) CreateSnapshotRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateSnapshotRequest.newBuilder() to construct. private CreateSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateSnapshotRequest() { name_ = ""; subscription_ = ""; @@ -44,15 +26,16 @@ private CreateSnapshotRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateSnapshotRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateSnapshotRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,83 +55,78 @@ private CreateSnapshotRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + subscription_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetLabels(); 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.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.CreateSnapshotRequest.class, - com.google.pubsub.v1.CreateSnapshotRequest.Builder.class); + com.google.pubsub.v1.CreateSnapshotRequest.class, com.google.pubsub.v1.CreateSnapshotRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. User-provided name for this snapshot. If the name is not provided
    * in the request, the server will assign a random name for this snapshot on
@@ -158,10 +136,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
    * 
* - * - * string name = 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 @@ -170,15 +145,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; } } /** - * - * *
    * Required. User-provided name for this snapshot. If the name is not provided
    * in the request, the server will assign a random name for this snapshot on
@@ -188,18 +162,17 @@ public java.lang.String getName() {
    * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
    * 
* - * - * string name = 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 { @@ -210,8 +183,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SUBSCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object subscription_; /** - * - * *
    * Required. The subscription whose backlog the snapshot retains.
    * Specifically, the created snapshot is guaranteed to retain:
@@ -224,10 +195,7 @@ public com.google.protobuf.ByteString getNameBytes() {
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The subscription. */ @java.lang.Override @@ -236,15 +204,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; } } /** - * - * *
    * Required. The subscription whose backlog the snapshot retains.
    * Specifically, the created snapshot is guaranteed to retain:
@@ -257,18 +224,17 @@ public java.lang.String getSubscription() {
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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 { @@ -277,23 +243,24 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } public static final int LABELS_FIELD_NUMBER = 3; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -302,8 +269,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -311,22 +276,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 3;
    */
+
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -335,12 +300,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 3;
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -349,16 +313,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 3;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -367,11 +331,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 3;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -379,7 +344,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -391,15 +355,20 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (!getNameBytes().isEmpty()) {
+  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_);
     }
-    if (!getSubscriptionBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subscription_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        3);
     unknownFields.writeTo(output);
   }
 
@@ -409,21 +378,21 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
-    if (!getSubscriptionBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subscription_);
     }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, labels__);
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(3, labels__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -433,17 +402,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.pubsub.v1.CreateSnapshotRequest)) {
       return super.equals(obj);
     }
-    com.google.pubsub.v1.CreateSnapshotRequest other =
-        (com.google.pubsub.v1.CreateSnapshotRequest) obj;
+    com.google.pubsub.v1.CreateSnapshotRequest other = (com.google.pubsub.v1.CreateSnapshotRequest) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (!getSubscription().equals(other.getSubscription())) return false;
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!getSubscription()
+        .equals(other.getSubscription())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -468,147 +439,140 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom(java.nio.ByteBuffer data)
+  public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.CreateSnapshotRequest 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.pubsub.v1.CreateSnapshotRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.pubsub.v1.CreateSnapshotRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.pubsub.v1.CreateSnapshotRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.pubsub.v1.CreateSnapshotRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.pubsub.v1.CreateSnapshotRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 the `CreateSnapshot` method.
    * 
* * Protobuf type {@code google.pubsub.v1.CreateSnapshotRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.CreateSnapshotRequest) com.google.pubsub.v1.CreateSnapshotRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 3: return internalGetMutableLabels(); 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.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.CreateSnapshotRequest.class, - com.google.pubsub.v1.CreateSnapshotRequest.Builder.class); + com.google.pubsub.v1.CreateSnapshotRequest.class, com.google.pubsub.v1.CreateSnapshotRequest.Builder.class); } // Construct using com.google.pubsub.v1.CreateSnapshotRequest.newBuilder() @@ -616,15 +580,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -637,9 +602,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; } @java.lang.Override @@ -658,8 +623,7 @@ public com.google.pubsub.v1.CreateSnapshotRequest build() { @java.lang.Override public com.google.pubsub.v1.CreateSnapshotRequest buildPartial() { - com.google.pubsub.v1.CreateSnapshotRequest result = - new com.google.pubsub.v1.CreateSnapshotRequest(this); + com.google.pubsub.v1.CreateSnapshotRequest result = new com.google.pubsub.v1.CreateSnapshotRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.subscription_ = subscription_; @@ -673,39 +637,38 @@ public com.google.pubsub.v1.CreateSnapshotRequest 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.pubsub.v1.CreateSnapshotRequest) { - return mergeFrom((com.google.pubsub.v1.CreateSnapshotRequest) other); + return mergeFrom((com.google.pubsub.v1.CreateSnapshotRequest)other); } else { super.mergeFrom(other); return this; @@ -722,7 +685,8 @@ public Builder mergeFrom(com.google.pubsub.v1.CreateSnapshotRequest other) { subscription_ = other.subscription_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -751,13 +715,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. User-provided name for this snapshot. If the name is not provided
      * in the request, the server will assign a random name for this snapshot on
@@ -767,16 +728,14 @@ public Builder mergeFrom(
      * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * - * string name = 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; @@ -785,8 +744,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. User-provided name for this snapshot. If the name is not provided
      * in the request, the server will assign a random name for this snapshot on
@@ -796,17 +753,16 @@ public java.lang.String getName() {
      * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * - * string name = 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 { @@ -814,8 +770,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. User-provided name for this snapshot. If the name is not provided
      * in the request, the server will assign a random name for this snapshot on
@@ -825,25 +779,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * - * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. User-provided name for this snapshot. If the name is not provided
      * in the request, the server will assign a random name for this snapshot on
@@ -853,21 +803,16 @@ public Builder setName(java.lang.String value) {
      * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * - * string 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. User-provided name for this snapshot. If the name is not provided
      * in the request, the server will assign a random name for this snapshot on
@@ -877,19 +822,17 @@ public Builder clearName() {
      * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * - * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -897,8 +840,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object subscription_ = ""; /** - * - * *
      * Required. The subscription whose backlog the snapshot retains.
      * Specifically, the created snapshot is guaranteed to retain:
@@ -911,16 +852,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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; @@ -929,8 +868,6 @@ public java.lang.String getSubscription() { } } /** - * - * *
      * Required. The subscription whose backlog the snapshot retains.
      * Specifically, the created snapshot is guaranteed to retain:
@@ -943,17 +880,16 @@ public java.lang.String getSubscription() {
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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 { @@ -961,8 +897,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * Required. The subscription whose backlog the snapshot retains.
      * Specifically, the created snapshot is guaranteed to retain:
@@ -975,25 +909,21 @@ public com.google.protobuf.ByteString getSubscriptionBytes() {
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription(java.lang.String value) { + public Builder setSubscription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; onChanged(); return this; } /** - * - * *
      * Required. The subscription whose backlog the snapshot retains.
      * Specifically, the created snapshot is guaranteed to retain:
@@ -1006,21 +936,16 @@ public Builder setSubscription(java.lang.String value) {
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearSubscription() { - + subscription_ = getDefaultInstance().getSubscription(); onChanged(); return this; } /** - * - * *
      * Required. The subscription whose backlog the snapshot retains.
      * Specifically, the created snapshot is guaranteed to retain:
@@ -1033,39 +958,38 @@ public Builder clearSubscription() {
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = value; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1077,8 +1001,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -1086,22 +1008,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 3;
      */
+
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -1110,12 +1032,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 3;
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -1124,17 +1045,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 3;
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -1143,11 +1063,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 3;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1155,12 +1076,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -1168,21 +1088,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 3;
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+    getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -1190,19 +1112,16 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 3;
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -1210,13 +1129,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 3;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       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);
     }
 
@@ -1226,12 +1148,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.pubsub.v1.CreateSnapshotRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.pubsub.v1.CreateSnapshotRequest)
   private static final com.google.pubsub.v1.CreateSnapshotRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.pubsub.v1.CreateSnapshotRequest();
   }
@@ -1240,16 +1162,16 @@ public static com.google.pubsub.v1.CreateSnapshotRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public CreateSnapshotRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new CreateSnapshotRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public CreateSnapshotRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new CreateSnapshotRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1264,4 +1186,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.pubsub.v1.CreateSnapshotRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java
similarity index 67%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java
index b8e0ef2f9..0d630aea3 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/pubsub/v1/pubsub.proto
 
 package com.google.pubsub.v1;
 
-public interface CreateSnapshotRequestOrBuilder
-    extends
+public interface CreateSnapshotRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.pubsub.v1.CreateSnapshotRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. User-provided name for this snapshot. If the name is not provided
    * in the request, the server will assign a random name for this snapshot on
@@ -35,16 +17,11 @@ public interface CreateSnapshotRequestOrBuilder
    * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
    * 
* - * - * string name = 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. User-provided name for this snapshot. If the name is not provided
    * in the request, the server will assign a random name for this snapshot on
@@ -54,17 +31,13 @@ public interface CreateSnapshotRequestOrBuilder
    * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
    * 
* - * - * string name = 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(); /** - * - * *
    * Required. The subscription whose backlog the snapshot retains.
    * Specifically, the created snapshot is guaranteed to retain:
@@ -77,16 +50,11 @@ public interface CreateSnapshotRequestOrBuilder
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The subscription. */ java.lang.String getSubscription(); /** - * - * *
    * Required. The subscription whose backlog the snapshot retains.
    * Specifically, the created snapshot is guaranteed to retain:
@@ -99,17 +67,13 @@ public interface CreateSnapshotRequestOrBuilder
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for subscription. */ - com.google.protobuf.ByteString getSubscriptionBytes(); + com.google.protobuf.ByteString + getSubscriptionBytes(); /** - * - * *
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -119,8 +83,6 @@ public interface CreateSnapshotRequestOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -128,13 +90,15 @@ public interface CreateSnapshotRequestOrBuilder
    *
    * map<string, string> labels = 3;
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -142,10 +106,9 @@ public interface CreateSnapshotRequestOrBuilder
    *
    * map<string, string> labels = 3;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -153,10 +116,11 @@ public interface CreateSnapshotRequestOrBuilder
    *
    * map<string, string> labels = 3;
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -164,5 +128,7 @@ public interface CreateSnapshotRequestOrBuilder
    *
    * map<string, string> labels = 3;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 }
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java
similarity index 76%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java
index 773359cfa..076183bc8 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/pubsub/v1/pubsub.proto
 
 package com.google.pubsub.v1;
 
 /**
- *
- *
  * 
  * Dead lettering is done on a best effort basis. The same message might be
  * dead lettered multiple times.
@@ -30,31 +13,31 @@
  *
  * Protobuf type {@code google.pubsub.v1.DeadLetterPolicy}
  */
-public final class DeadLetterPolicy extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeadLetterPolicy extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeadLetterPolicy)
     DeadLetterPolicyOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeadLetterPolicy.newBuilder() to construct.
   private DeadLetterPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeadLetterPolicy() {
     deadLetterTopic_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeadLetterPolicy();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private DeadLetterPolicy(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,57 +56,52 @@ private DeadLetterPolicy(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              deadLetterTopic_ = s;
-              break;
-            }
-          case 16:
-            {
-              maxDeliveryAttempts_ = input.readInt32();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            deadLetterTopic_ = s;
+            break;
+          }
+          case 16: {
+
+            maxDeliveryAttempts_ = input.readInt32();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.pubsub.v1.PubsubProto
-        .internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.pubsub.v1.PubsubProto
-        .internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable
+    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.pubsub.v1.DeadLetterPolicy.class,
-            com.google.pubsub.v1.DeadLetterPolicy.Builder.class);
+            com.google.pubsub.v1.DeadLetterPolicy.class, com.google.pubsub.v1.DeadLetterPolicy.Builder.class);
   }
 
   public static final int DEAD_LETTER_TOPIC_FIELD_NUMBER = 1;
   private volatile java.lang.Object deadLetterTopic_;
   /**
-   *
-   *
    * 
    * The name of the topic to which dead letter messages should be published.
    * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
@@ -136,7 +114,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string dead_letter_topic = 1; - * * @return The deadLetterTopic. */ @java.lang.Override @@ -145,15 +122,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; } } /** - * - * *
    * The name of the topic to which dead letter messages should be published.
    * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
@@ -166,15 +142,16 @@ public java.lang.String getDeadLetterTopic() {
    * 
* * string dead_letter_topic = 1; - * * @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 { @@ -185,8 +162,6 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { public static final int MAX_DELIVERY_ATTEMPTS_FIELD_NUMBER = 2; private int maxDeliveryAttempts_; /** - * - * *
    * The maximum number of delivery attempts for any message. The value must be
    * between 5 and 100.
@@ -200,7 +175,6 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() {
    * 
* * int32 max_delivery_attempts = 2; - * * @return The maxDeliveryAttempts. */ @java.lang.Override @@ -209,7 +183,6 @@ public int getMaxDeliveryAttempts() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,8 +194,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getDeadLetterTopicBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deadLetterTopic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deadLetterTopic_); } if (maxDeliveryAttempts_ != 0) { @@ -237,11 +211,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getDeadLetterTopicBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deadLetterTopic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deadLetterTopic_); } if (maxDeliveryAttempts_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxDeliveryAttempts_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, maxDeliveryAttempts_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -251,15 +226,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.pubsub.v1.DeadLetterPolicy)) { return super.equals(obj); } com.google.pubsub.v1.DeadLetterPolicy other = (com.google.pubsub.v1.DeadLetterPolicy) obj; - if (!getDeadLetterTopic().equals(other.getDeadLetterTopic())) return false; - if (getMaxDeliveryAttempts() != other.getMaxDeliveryAttempts()) return false; + if (!getDeadLetterTopic() + .equals(other.getDeadLetterTopic())) return false; + if (getMaxDeliveryAttempts() + != other.getMaxDeliveryAttempts()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -280,103 +257,97 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.DeadLetterPolicy parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.DeadLetterPolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.DeadLetterPolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.pubsub.v1.DeadLetterPolicy parseFrom(com.google.protobuf.ByteString data) + public static com.google.pubsub.v1.DeadLetterPolicy parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.DeadLetterPolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.DeadLetterPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.DeadLetterPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.DeadLetterPolicy 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.pubsub.v1.DeadLetterPolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.DeadLetterPolicy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.DeadLetterPolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.DeadLetterPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.DeadLetterPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.DeadLetterPolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Dead lettering is done on a best effort basis. The same message might be
    * dead lettered multiple times.
@@ -386,23 +357,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.pubsub.v1.DeadLetterPolicy}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DeadLetterPolicy)
       com.google.pubsub.v1.DeadLetterPolicyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.pubsub.v1.PubsubProto
-          .internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.pubsub.v1.PubsubProto
-          .internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable
+      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.pubsub.v1.DeadLetterPolicy.class,
-              com.google.pubsub.v1.DeadLetterPolicy.Builder.class);
+              com.google.pubsub.v1.DeadLetterPolicy.class, com.google.pubsub.v1.DeadLetterPolicy.Builder.class);
     }
 
     // Construct using com.google.pubsub.v1.DeadLetterPolicy.newBuilder()
@@ -410,15 +379,16 @@ 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) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -430,9 +400,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.pubsub.v1.PubsubProto
-          .internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor;
     }
 
     @java.lang.Override
@@ -451,8 +421,7 @@ public com.google.pubsub.v1.DeadLetterPolicy build() {
 
     @java.lang.Override
     public com.google.pubsub.v1.DeadLetterPolicy buildPartial() {
-      com.google.pubsub.v1.DeadLetterPolicy result =
-          new com.google.pubsub.v1.DeadLetterPolicy(this);
+      com.google.pubsub.v1.DeadLetterPolicy result = new com.google.pubsub.v1.DeadLetterPolicy(this);
       result.deadLetterTopic_ = deadLetterTopic_;
       result.maxDeliveryAttempts_ = maxDeliveryAttempts_;
       onBuilt();
@@ -463,39 +432,38 @@ public com.google.pubsub.v1.DeadLetterPolicy 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.pubsub.v1.DeadLetterPolicy) {
-        return mergeFrom((com.google.pubsub.v1.DeadLetterPolicy) other);
+        return mergeFrom((com.google.pubsub.v1.DeadLetterPolicy)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -542,8 +510,6 @@ public Builder mergeFrom(
 
     private java.lang.Object deadLetterTopic_ = "";
     /**
-     *
-     *
      * 
      * The name of the topic to which dead letter messages should be published.
      * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
@@ -556,13 +522,13 @@ public Builder mergeFrom(
      * 
* * string dead_letter_topic = 1; - * * @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; @@ -571,8 +537,6 @@ public java.lang.String getDeadLetterTopic() { } } /** - * - * *
      * The name of the topic to which dead letter messages should be published.
      * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
@@ -585,14 +549,15 @@ public java.lang.String getDeadLetterTopic() {
      * 
* * string dead_letter_topic = 1; - * * @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 { @@ -600,8 +565,6 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { } } /** - * - * *
      * The name of the topic to which dead letter messages should be published.
      * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
@@ -614,22 +577,20 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() {
      * 
* * string dead_letter_topic = 1; - * * @param value The deadLetterTopic to set. * @return This builder for chaining. */ - public Builder setDeadLetterTopic(java.lang.String value) { + public Builder setDeadLetterTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + deadLetterTopic_ = value; onChanged(); return this; } /** - * - * *
      * The name of the topic to which dead letter messages should be published.
      * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
@@ -642,18 +603,15 @@ public Builder setDeadLetterTopic(java.lang.String value) {
      * 
* * string dead_letter_topic = 1; - * * @return This builder for chaining. */ public Builder clearDeadLetterTopic() { - + deadLetterTopic_ = getDefaultInstance().getDeadLetterTopic(); onChanged(); return this; } /** - * - * *
      * The name of the topic to which dead letter messages should be published.
      * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
@@ -666,25 +624,23 @@ public Builder clearDeadLetterTopic() {
      * 
* * string dead_letter_topic = 1; - * * @param value The bytes for deadLetterTopic to set. * @return This builder for chaining. */ - public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) { + public Builder setDeadLetterTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deadLetterTopic_ = value; onChanged(); return this; } - private int maxDeliveryAttempts_; + private int maxDeliveryAttempts_ ; /** - * - * *
      * The maximum number of delivery attempts for any message. The value must be
      * between 5 and 100.
@@ -698,7 +654,6 @@ public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 max_delivery_attempts = 2; - * * @return The maxDeliveryAttempts. */ @java.lang.Override @@ -706,8 +661,6 @@ public int getMaxDeliveryAttempts() { return maxDeliveryAttempts_; } /** - * - * *
      * The maximum number of delivery attempts for any message. The value must be
      * between 5 and 100.
@@ -721,19 +674,16 @@ public int getMaxDeliveryAttempts() {
      * 
* * int32 max_delivery_attempts = 2; - * * @param value The maxDeliveryAttempts to set. * @return This builder for chaining. */ public Builder setMaxDeliveryAttempts(int value) { - + maxDeliveryAttempts_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of delivery attempts for any message. The value must be
      * between 5 and 100.
@@ -747,18 +697,17 @@ public Builder setMaxDeliveryAttempts(int value) {
      * 
* * int32 max_delivery_attempts = 2; - * * @return This builder for chaining. */ public Builder clearMaxDeliveryAttempts() { - + maxDeliveryAttempts_ = 0; 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); } @@ -768,12 +717,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DeadLetterPolicy) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.DeadLetterPolicy) private static final com.google.pubsub.v1.DeadLetterPolicy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.DeadLetterPolicy(); } @@ -782,16 +731,16 @@ public static com.google.pubsub.v1.DeadLetterPolicy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeadLetterPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeadLetterPolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeadLetterPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeadLetterPolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -806,4 +755,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.DeadLetterPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java similarity index 76% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index 1e3060f7b..a08edfcd9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; -public interface DeadLetterPolicyOrBuilder - extends +public interface DeadLetterPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeadLetterPolicy) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the topic to which dead letter messages should be published.
    * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
@@ -38,13 +20,10 @@ public interface DeadLetterPolicyOrBuilder
    * 
* * string dead_letter_topic = 1; - * * @return The deadLetterTopic. */ java.lang.String getDeadLetterTopic(); /** - * - * *
    * The name of the topic to which dead letter messages should be published.
    * Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service
@@ -57,14 +36,12 @@ public interface DeadLetterPolicyOrBuilder
    * 
* * string dead_letter_topic = 1; - * * @return The bytes for deadLetterTopic. */ - com.google.protobuf.ByteString getDeadLetterTopicBytes(); + com.google.protobuf.ByteString + getDeadLetterTopicBytes(); /** - * - * *
    * The maximum number of delivery attempts for any message. The value must be
    * between 5 and 100.
@@ -78,7 +55,6 @@ public interface DeadLetterPolicyOrBuilder
    * 
* * int32 max_delivery_attempts = 2; - * * @return The maxDeliveryAttempts. */ int getMaxDeliveryAttempts(); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java similarity index 65% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java index b09de9b8e..572e80eab 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto package com.google.pubsub.v1; /** - * - * *
  * Request for the `DeleteSchema` method.
  * 
* * Protobuf type {@code google.pubsub.v1.DeleteSchemaRequest} */ -public final class DeleteSchemaRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteSchemaRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteSchemaRequest) DeleteSchemaRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteSchemaRequest.newBuilder() to construct. private DeleteSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteSchemaRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteSchemaRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteSchemaRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,61 +53,53 @@ private DeleteSchemaRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_DeleteSchemaRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_DeleteSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.DeleteSchemaRequest.class, - com.google.pubsub.v1.DeleteSchemaRequest.Builder.class); + com.google.pubsub.v1.DeleteSchemaRequest.class, com.google.pubsub.v1.DeleteSchemaRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the schema to delete.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* - * - * string name = 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 @@ -133,32 +108,30 @@ 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. Name of the schema to delete.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* - * - * string name = 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 { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +151,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + 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_); } unknownFields.writeTo(output); @@ -192,7 +165,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); @@ -203,14 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.DeleteSchemaRequest)) { return super.equals(obj); } com.google.pubsub.v1.DeleteSchemaRequest other = (com.google.pubsub.v1.DeleteSchemaRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,127 +203,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.DeleteSchemaRequest 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.pubsub.v1.DeleteSchemaRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.pubsub.v1.DeleteSchemaRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.DeleteSchemaRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.DeleteSchemaRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.DeleteSchemaRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 the `DeleteSchema` method.
    * 
* * Protobuf type {@code google.pubsub.v1.DeleteSchemaRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DeleteSchemaRequest) com.google.pubsub.v1.DeleteSchemaRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_DeleteSchemaRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_DeleteSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.DeleteSchemaRequest.class, - com.google.pubsub.v1.DeleteSchemaRequest.Builder.class); + com.google.pubsub.v1.DeleteSchemaRequest.class, com.google.pubsub.v1.DeleteSchemaRequest.Builder.class); } // Construct using com.google.pubsub.v1.DeleteSchemaRequest.newBuilder() @@ -357,15 +322,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor; } @java.lang.Override @@ -396,8 +362,7 @@ public com.google.pubsub.v1.DeleteSchemaRequest build() { @java.lang.Override public com.google.pubsub.v1.DeleteSchemaRequest buildPartial() { - com.google.pubsub.v1.DeleteSchemaRequest result = - new com.google.pubsub.v1.DeleteSchemaRequest(this); + com.google.pubsub.v1.DeleteSchemaRequest result = new com.google.pubsub.v1.DeleteSchemaRequest(this); result.name_ = name_; onBuilt(); return result; @@ -407,39 +372,38 @@ public com.google.pubsub.v1.DeleteSchemaRequest 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.pubsub.v1.DeleteSchemaRequest) { - return mergeFrom((com.google.pubsub.v1.DeleteSchemaRequest) other); + return mergeFrom((com.google.pubsub.v1.DeleteSchemaRequest)other); } else { super.mergeFrom(other); return this; @@ -483,23 +447,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the schema to delete.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* - * - * string name = 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; @@ -508,24 +468,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the schema to delete.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* - * - * string name = 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 { @@ -533,77 +490,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the schema to delete.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* - * - * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the schema to delete.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* - * - * string 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the schema to delete.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* - * - * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; 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); } @@ -613,12 +557,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DeleteSchemaRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.DeleteSchemaRequest) private static final com.google.pubsub.v1.DeleteSchemaRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.DeleteSchemaRequest(); } @@ -627,16 +571,16 @@ public static com.google.pubsub.v1.DeleteSchemaRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSchemaRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteSchemaRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteSchemaRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -651,4 +595,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.DeleteSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java new file mode 100644 index 000000000..2901f155e --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +public interface DeleteSchemaRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the schema to delete.
+   * Format is `projects/{project}/schemas/{schema}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the schema to delete.
+   * Format is `projects/{project}/schemas/{schema}`.
+   * 
+ * + * 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-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java similarity index 65% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index d43936019..3f7ae3579 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Request for the `DeleteSnapshot` method.
  * 
* * Protobuf type {@code google.pubsub.v1.DeleteSnapshotRequest} */ -public final class DeleteSnapshotRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteSnapshotRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteSnapshotRequest) DeleteSnapshotRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteSnapshotRequest.newBuilder() to construct. private DeleteSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteSnapshotRequest() { snapshot_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteSnapshotRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteSnapshotRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,61 +53,53 @@ private DeleteSnapshotRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - snapshot_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + snapshot_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.DeleteSnapshotRequest.class, - com.google.pubsub.v1.DeleteSnapshotRequest.Builder.class); + com.google.pubsub.v1.DeleteSnapshotRequest.class, com.google.pubsub.v1.DeleteSnapshotRequest.Builder.class); } public static final int SNAPSHOT_FIELD_NUMBER = 1; private volatile java.lang.Object snapshot_; /** - * - * *
    * Required. The name of the snapshot to delete.
    * Format is `projects/{project}/snapshots/{snap}`.
    * 
* - * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The snapshot. */ @java.lang.Override @@ -133,32 +108,30 @@ public java.lang.String getSnapshot() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshot_ = s; return s; } } /** - * - * *
    * Required. The name of the snapshot to delete.
    * Format is `projects/{project}/snapshots/{snap}`.
    * 
* - * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for snapshot. */ @java.lang.Override - public com.google.protobuf.ByteString getSnapshotBytes() { + public com.google.protobuf.ByteString + getSnapshotBytes() { java.lang.Object ref = snapshot_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); snapshot_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getSnapshotBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +151,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getSnapshotBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshot_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshot_); } unknownFields.writeTo(output); @@ -192,7 +165,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getSnapshotBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshot_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshot_); } size += unknownFields.getSerializedSize(); @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.DeleteSnapshotRequest)) { return super.equals(obj); } - com.google.pubsub.v1.DeleteSnapshotRequest other = - (com.google.pubsub.v1.DeleteSnapshotRequest) obj; + com.google.pubsub.v1.DeleteSnapshotRequest other = (com.google.pubsub.v1.DeleteSnapshotRequest) obj; - if (!getSnapshot().equals(other.getSnapshot())) return false; + if (!getSnapshot() + .equals(other.getSnapshot())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -230,127 +203,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.DeleteSnapshotRequest 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.pubsub.v1.DeleteSnapshotRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.pubsub.v1.DeleteSnapshotRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.DeleteSnapshotRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.DeleteSnapshotRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.DeleteSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 the `DeleteSnapshot` method.
    * 
* * Protobuf type {@code google.pubsub.v1.DeleteSnapshotRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DeleteSnapshotRequest) com.google.pubsub.v1.DeleteSnapshotRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.DeleteSnapshotRequest.class, - com.google.pubsub.v1.DeleteSnapshotRequest.Builder.class); + com.google.pubsub.v1.DeleteSnapshotRequest.class, com.google.pubsub.v1.DeleteSnapshotRequest.Builder.class); } // Construct using com.google.pubsub.v1.DeleteSnapshotRequest.newBuilder() @@ -358,15 +322,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; } @java.lang.Override @@ -397,8 +362,7 @@ public com.google.pubsub.v1.DeleteSnapshotRequest build() { @java.lang.Override public com.google.pubsub.v1.DeleteSnapshotRequest buildPartial() { - com.google.pubsub.v1.DeleteSnapshotRequest result = - new com.google.pubsub.v1.DeleteSnapshotRequest(this); + com.google.pubsub.v1.DeleteSnapshotRequest result = new com.google.pubsub.v1.DeleteSnapshotRequest(this); result.snapshot_ = snapshot_; onBuilt(); return result; @@ -408,39 +372,38 @@ public com.google.pubsub.v1.DeleteSnapshotRequest 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.pubsub.v1.DeleteSnapshotRequest) { - return mergeFrom((com.google.pubsub.v1.DeleteSnapshotRequest) other); + return mergeFrom((com.google.pubsub.v1.DeleteSnapshotRequest)other); } else { super.mergeFrom(other); return this; @@ -484,23 +447,19 @@ public Builder mergeFrom( private java.lang.Object snapshot_ = ""; /** - * - * *
      * Required. The name of the snapshot to delete.
      * Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The snapshot. */ public java.lang.String getSnapshot() { java.lang.Object ref = snapshot_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshot_ = s; return s; @@ -509,24 +468,21 @@ public java.lang.String getSnapshot() { } } /** - * - * *
      * Required. The name of the snapshot to delete.
      * Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for snapshot. */ - public com.google.protobuf.ByteString getSnapshotBytes() { + public com.google.protobuf.ByteString + getSnapshotBytes() { java.lang.Object ref = snapshot_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); snapshot_ = b; return b; } else { @@ -534,77 +490,64 @@ public com.google.protobuf.ByteString getSnapshotBytes() { } } /** - * - * *
      * Required. The name of the snapshot to delete.
      * Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The snapshot to set. * @return This builder for chaining. */ - public Builder setSnapshot(java.lang.String value) { + public Builder setSnapshot( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + snapshot_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the snapshot to delete.
      * Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearSnapshot() { - + snapshot_ = getDefaultInstance().getSnapshot(); onChanged(); return this; } /** - * - * *
      * Required. The name of the snapshot to delete.
      * Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for snapshot to set. * @return This builder for chaining. */ - public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { + public Builder setSnapshotBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + snapshot_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -614,12 +557,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DeleteSnapshotRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.DeleteSnapshotRequest) private static final com.google.pubsub.v1.DeleteSnapshotRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.DeleteSnapshotRequest(); } @@ -628,16 +571,16 @@ public static com.google.pubsub.v1.DeleteSnapshotRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSnapshotRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteSnapshotRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSnapshotRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteSnapshotRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -652,4 +595,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.DeleteSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java new file mode 100644 index 000000000..f7ee8d19c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface DeleteSnapshotRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteSnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the snapshot to delete.
+   * Format is `projects/{project}/snapshots/{snap}`.
+   * 
+ * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The snapshot. + */ + java.lang.String getSnapshot(); + /** + *
+   * Required. The name of the snapshot to delete.
+   * Format is `projects/{project}/snapshots/{snap}`.
+   * 
+ * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for snapshot. + */ + com.google.protobuf.ByteString + getSnapshotBytes(); +} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java similarity index 65% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index 82bd05b37..edeff56a2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Request for the DeleteSubscription method.
  * 
* * Protobuf type {@code google.pubsub.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.pubsub.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() { subscription_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteSubscriptionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteSubscriptionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,61 +53,53 @@ private DeleteSubscriptionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + subscription_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.DeleteSubscriptionRequest.class, - com.google.pubsub.v1.DeleteSubscriptionRequest.Builder.class); + com.google.pubsub.v1.DeleteSubscriptionRequest.class, com.google.pubsub.v1.DeleteSubscriptionRequest.Builder.class); } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object subscription_; /** - * - * *
    * Required. The subscription to delete.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The subscription. */ @java.lang.Override @@ -133,32 +108,30 @@ 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; } } /** - * - * *
    * Required. The subscription to delete.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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 { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +151,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getSubscriptionBytes().isEmpty()) { + 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_); } unknownFields.writeTo(output); @@ -192,7 +165,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getSubscriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } size += unknownFields.getSerializedSize(); @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.DeleteSubscriptionRequest)) { return super.equals(obj); } - com.google.pubsub.v1.DeleteSubscriptionRequest other = - (com.google.pubsub.v1.DeleteSubscriptionRequest) obj; + com.google.pubsub.v1.DeleteSubscriptionRequest other = (com.google.pubsub.v1.DeleteSubscriptionRequest) obj; - if (!getSubscription().equals(other.getSubscription())) return false; + if (!getSubscription() + .equals(other.getSubscription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -230,127 +203,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.DeleteSubscriptionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.DeleteSubscriptionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.DeleteSubscriptionRequest 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.pubsub.v1.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.pubsub.v1.DeleteSubscriptionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.DeleteSubscriptionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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 the DeleteSubscription method.
    * 
* * Protobuf type {@code google.pubsub.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.pubsub.v1.DeleteSubscriptionRequest) com.google.pubsub.v1.DeleteSubscriptionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.DeleteSubscriptionRequest.class, - com.google.pubsub.v1.DeleteSubscriptionRequest.Builder.class); + com.google.pubsub.v1.DeleteSubscriptionRequest.class, com.google.pubsub.v1.DeleteSubscriptionRequest.Builder.class); } // Construct using com.google.pubsub.v1.DeleteSubscriptionRequest.newBuilder() @@ -358,15 +322,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; } @java.lang.Override @@ -397,8 +362,7 @@ public com.google.pubsub.v1.DeleteSubscriptionRequest build() { @java.lang.Override public com.google.pubsub.v1.DeleteSubscriptionRequest buildPartial() { - com.google.pubsub.v1.DeleteSubscriptionRequest result = - new com.google.pubsub.v1.DeleteSubscriptionRequest(this); + com.google.pubsub.v1.DeleteSubscriptionRequest result = new com.google.pubsub.v1.DeleteSubscriptionRequest(this); result.subscription_ = subscription_; onBuilt(); return result; @@ -408,39 +372,38 @@ public com.google.pubsub.v1.DeleteSubscriptionRequest 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.pubsub.v1.DeleteSubscriptionRequest) { - return mergeFrom((com.google.pubsub.v1.DeleteSubscriptionRequest) other); + return mergeFrom((com.google.pubsub.v1.DeleteSubscriptionRequest)other); } else { super.mergeFrom(other); return this; @@ -484,23 +447,19 @@ public Builder mergeFrom( private java.lang.Object subscription_ = ""; /** - * - * *
      * Required. The subscription to delete.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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; @@ -509,24 +468,21 @@ public java.lang.String getSubscription() { } } /** - * - * *
      * Required. The subscription to delete.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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 { @@ -534,77 +490,64 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * Required. The subscription to delete.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription(java.lang.String value) { + public Builder setSubscription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; onChanged(); return this; } /** - * - * *
      * Required. The subscription to delete.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearSubscription() { - + subscription_ = getDefaultInstance().getSubscription(); onChanged(); return this; } /** - * - * *
      * Required. The subscription to delete.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -614,12 +557,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DeleteSubscriptionRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.DeleteSubscriptionRequest) private static final com.google.pubsub.v1.DeleteSubscriptionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.DeleteSubscriptionRequest(); } @@ -628,16 +571,16 @@ public static com.google.pubsub.v1.DeleteSubscriptionRequest getDefaultInstance( 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 { - return new DeleteSubscriptionRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteSubscriptionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -652,4 +595,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.pubsub.v1.DeleteSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java new file mode 100644 index 000000000..a0d563a50 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface DeleteSubscriptionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteSubscriptionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The subscription to delete.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The subscription. + */ + java.lang.String getSubscription(); + /** + *
+   * Required. The subscription to delete.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for subscription. + */ + com.google.protobuf.ByteString + getSubscriptionBytes(); +} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java similarity index 65% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index 68db7a957..5a2d819c5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Request for the `DeleteTopic` method.
  * 
* * Protobuf type {@code google.pubsub.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.pubsub.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() { topic_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteTopicRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteTopicRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,61 +53,53 @@ private DeleteTopicRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - topic_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + topic_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.DeleteTopicRequest.class, - com.google.pubsub.v1.DeleteTopicRequest.Builder.class); + com.google.pubsub.v1.DeleteTopicRequest.class, com.google.pubsub.v1.DeleteTopicRequest.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; private volatile java.lang.Object topic_; /** - * - * *
    * Required. Name of the topic to delete.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * - * 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 @@ -133,32 +108,30 @@ 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. Name of the topic to delete.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * - * 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 { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getTopicBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +151,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTopicBytes().isEmpty()) { + 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_); } unknownFields.writeTo(output); @@ -192,7 +165,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTopicBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); } size += unknownFields.getSerializedSize(); @@ -203,14 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.DeleteTopicRequest)) { return super.equals(obj); } com.google.pubsub.v1.DeleteTopicRequest other = (com.google.pubsub.v1.DeleteTopicRequest) obj; - if (!getTopic().equals(other.getTopic())) return false; + if (!getTopic() + .equals(other.getTopic())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,127 +203,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.DeleteTopicRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.DeleteTopicRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.DeleteTopicRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.DeleteTopicRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.DeleteTopicRequest 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.pubsub.v1.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.pubsub.v1.DeleteTopicRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.DeleteTopicRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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 the `DeleteTopic` method.
    * 
* * Protobuf type {@code google.pubsub.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.pubsub.v1.DeleteTopicRequest) com.google.pubsub.v1.DeleteTopicRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.DeleteTopicRequest.class, - com.google.pubsub.v1.DeleteTopicRequest.Builder.class); + com.google.pubsub.v1.DeleteTopicRequest.class, com.google.pubsub.v1.DeleteTopicRequest.Builder.class); } // Construct using com.google.pubsub.v1.DeleteTopicRequest.newBuilder() @@ -357,15 +322,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; } @java.lang.Override @@ -396,8 +362,7 @@ public com.google.pubsub.v1.DeleteTopicRequest build() { @java.lang.Override public com.google.pubsub.v1.DeleteTopicRequest buildPartial() { - com.google.pubsub.v1.DeleteTopicRequest result = - new com.google.pubsub.v1.DeleteTopicRequest(this); + com.google.pubsub.v1.DeleteTopicRequest result = new com.google.pubsub.v1.DeleteTopicRequest(this); result.topic_ = topic_; onBuilt(); return result; @@ -407,39 +372,38 @@ public com.google.pubsub.v1.DeleteTopicRequest 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.pubsub.v1.DeleteTopicRequest) { - return mergeFrom((com.google.pubsub.v1.DeleteTopicRequest) other); + return mergeFrom((com.google.pubsub.v1.DeleteTopicRequest)other); } else { super.mergeFrom(other); return this; @@ -483,23 +447,19 @@ public Builder mergeFrom( private java.lang.Object topic_ = ""; /** - * - * *
      * Required. Name of the topic to delete.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * - * 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; @@ -508,24 +468,21 @@ public java.lang.String getTopic() { } } /** - * - * *
      * Required. Name of the topic to delete.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * - * 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 { @@ -533,77 +490,64 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
      * Required. Name of the topic to delete.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * - * 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) { + public Builder setTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topic_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the topic to delete.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * - * 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() { - + topic_ = getDefaultInstance().getTopic(); onChanged(); return this; } /** - * - * *
      * Required. Name of the topic to delete.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * - * 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) { + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; 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); } @@ -613,12 +557,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DeleteTopicRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.DeleteTopicRequest) private static final com.google.pubsub.v1.DeleteTopicRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.DeleteTopicRequest(); } @@ -627,16 +571,16 @@ public static com.google.pubsub.v1.DeleteTopicRequest getDefaultInstance() { 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 { - return new DeleteTopicRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteTopicRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -651,4 +595,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.DeleteTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java new file mode 100644 index 000000000..c776f2a4b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface DeleteTopicRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteTopicRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the topic to delete.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The topic. + */ + java.lang.String getTopic(); + /** + *
+   * Required. Name of the topic to delete.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for topic. + */ + com.google.protobuf.ByteString + getTopicBytes(); +} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java similarity index 65% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java index 6b738acfa..7ed8a0400 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Request for the DetachSubscription method.
  * 
* * Protobuf type {@code google.pubsub.v1.DetachSubscriptionRequest} */ -public final class DetachSubscriptionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DetachSubscriptionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.DetachSubscriptionRequest) DetachSubscriptionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DetachSubscriptionRequest.newBuilder() to construct. private DetachSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DetachSubscriptionRequest() { subscription_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DetachSubscriptionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DetachSubscriptionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,61 +53,53 @@ private DetachSubscriptionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + subscription_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.DetachSubscriptionRequest.class, - com.google.pubsub.v1.DetachSubscriptionRequest.Builder.class); + com.google.pubsub.v1.DetachSubscriptionRequest.class, com.google.pubsub.v1.DetachSubscriptionRequest.Builder.class); } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object subscription_; /** - * - * *
    * Required. The subscription to detach.
    * Format is `projects/{project}/subscriptions/{subscription}`.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The subscription. */ @java.lang.Override @@ -133,32 +108,30 @@ 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; } } /** - * - * *
    * Required. The subscription to detach.
    * Format is `projects/{project}/subscriptions/{subscription}`.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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 { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +151,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getSubscriptionBytes().isEmpty()) { + 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_); } unknownFields.writeTo(output); @@ -192,7 +165,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getSubscriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } size += unknownFields.getSerializedSize(); @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.DetachSubscriptionRequest)) { return super.equals(obj); } - com.google.pubsub.v1.DetachSubscriptionRequest other = - (com.google.pubsub.v1.DetachSubscriptionRequest) obj; + com.google.pubsub.v1.DetachSubscriptionRequest other = (com.google.pubsub.v1.DetachSubscriptionRequest) obj; - if (!getSubscription().equals(other.getSubscription())) return false; + if (!getSubscription() + .equals(other.getSubscription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -230,127 +203,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.DetachSubscriptionRequest 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.pubsub.v1.DetachSubscriptionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.pubsub.v1.DetachSubscriptionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.DetachSubscriptionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.DetachSubscriptionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.DetachSubscriptionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 the DetachSubscription method.
    * 
* * Protobuf type {@code google.pubsub.v1.DetachSubscriptionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DetachSubscriptionRequest) com.google.pubsub.v1.DetachSubscriptionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.DetachSubscriptionRequest.class, - com.google.pubsub.v1.DetachSubscriptionRequest.Builder.class); + com.google.pubsub.v1.DetachSubscriptionRequest.class, com.google.pubsub.v1.DetachSubscriptionRequest.Builder.class); } // Construct using com.google.pubsub.v1.DetachSubscriptionRequest.newBuilder() @@ -358,15 +322,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor; } @java.lang.Override @@ -397,8 +362,7 @@ public com.google.pubsub.v1.DetachSubscriptionRequest build() { @java.lang.Override public com.google.pubsub.v1.DetachSubscriptionRequest buildPartial() { - com.google.pubsub.v1.DetachSubscriptionRequest result = - new com.google.pubsub.v1.DetachSubscriptionRequest(this); + com.google.pubsub.v1.DetachSubscriptionRequest result = new com.google.pubsub.v1.DetachSubscriptionRequest(this); result.subscription_ = subscription_; onBuilt(); return result; @@ -408,39 +372,38 @@ public com.google.pubsub.v1.DetachSubscriptionRequest 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.pubsub.v1.DetachSubscriptionRequest) { - return mergeFrom((com.google.pubsub.v1.DetachSubscriptionRequest) other); + return mergeFrom((com.google.pubsub.v1.DetachSubscriptionRequest)other); } else { super.mergeFrom(other); return this; @@ -484,23 +447,19 @@ public Builder mergeFrom( private java.lang.Object subscription_ = ""; /** - * - * *
      * Required. The subscription to detach.
      * Format is `projects/{project}/subscriptions/{subscription}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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; @@ -509,24 +468,21 @@ public java.lang.String getSubscription() { } } /** - * - * *
      * Required. The subscription to detach.
      * Format is `projects/{project}/subscriptions/{subscription}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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 { @@ -534,77 +490,64 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * Required. The subscription to detach.
      * Format is `projects/{project}/subscriptions/{subscription}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription(java.lang.String value) { + public Builder setSubscription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; onChanged(); return this; } /** - * - * *
      * Required. The subscription to detach.
      * Format is `projects/{project}/subscriptions/{subscription}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearSubscription() { - + subscription_ = getDefaultInstance().getSubscription(); onChanged(); return this; } /** - * - * *
      * Required. The subscription to detach.
      * Format is `projects/{project}/subscriptions/{subscription}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -614,12 +557,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DetachSubscriptionRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.DetachSubscriptionRequest) private static final com.google.pubsub.v1.DetachSubscriptionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.DetachSubscriptionRequest(); } @@ -628,16 +571,16 @@ public static com.google.pubsub.v1.DetachSubscriptionRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DetachSubscriptionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DetachSubscriptionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetachSubscriptionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetachSubscriptionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -652,4 +595,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.pubsub.v1.DetachSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java new file mode 100644 index 000000000..0acda3201 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface DetachSubscriptionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DetachSubscriptionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The subscription to detach.
+   * Format is `projects/{project}/subscriptions/{subscription}`.
+   * 
+ * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The subscription. + */ + java.lang.String getSubscription(); + /** + *
+   * Required. The subscription to detach.
+   * Format is `projects/{project}/subscriptions/{subscription}`.
+   * 
+ * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for subscription. + */ + com.google.protobuf.ByteString + getSubscriptionBytes(); +} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java similarity index 67% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java index a473832a2..fe41d84cf 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Response for the DetachSubscription method.
  * Reserved for future use.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.pubsub.v1.DetachSubscriptionResponse}
  */
-public final class DetachSubscriptionResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DetachSubscriptionResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.pubsub.v1.DetachSubscriptionResponse)
     DetachSubscriptionResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DetachSubscriptionResponse.newBuilder() to construct.
   private DetachSubscriptionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private DetachSubscriptionResponse() {}
+  private DetachSubscriptionResponse() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DetachSubscriptionResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private DetachSubscriptionResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,42 +53,39 @@ private DetachSubscriptionResponse(
           case 0:
             done = true;
             break;
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.pubsub.v1.PubsubProto
-        .internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.pubsub.v1.PubsubProto
-        .internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable
+    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.pubsub.v1.DetachSubscriptionResponse.class,
-            com.google.pubsub.v1.DetachSubscriptionResponse.Builder.class);
+            com.google.pubsub.v1.DetachSubscriptionResponse.class, com.google.pubsub.v1.DetachSubscriptionResponse.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -116,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 {
     unknownFields.writeTo(output);
   }
 
@@ -134,13 +116,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.pubsub.v1.DetachSubscriptionResponse)) {
       return super.equals(obj);
     }
-    com.google.pubsub.v1.DetachSubscriptionResponse other =
-        (com.google.pubsub.v1.DetachSubscriptionResponse) obj;
+    com.google.pubsub.v1.DetachSubscriptionResponse other = (com.google.pubsub.v1.DetachSubscriptionResponse) obj;
 
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -158,104 +139,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom(java.nio.ByteBuffer data)
+  public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.DetachSubscriptionResponse 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.pubsub.v1.DetachSubscriptionResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.pubsub.v1.DetachSubscriptionResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.pubsub.v1.DetachSubscriptionResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.pubsub.v1.DetachSubscriptionResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.pubsub.v1.DetachSubscriptionResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 the DetachSubscription method.
    * Reserved for future use.
@@ -263,23 +237,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.pubsub.v1.DetachSubscriptionResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DetachSubscriptionResponse)
       com.google.pubsub.v1.DetachSubscriptionResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.pubsub.v1.PubsubProto
-          .internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.pubsub.v1.PubsubProto
-          .internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable
+      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.pubsub.v1.DetachSubscriptionResponse.class,
-              com.google.pubsub.v1.DetachSubscriptionResponse.Builder.class);
+              com.google.pubsub.v1.DetachSubscriptionResponse.class, com.google.pubsub.v1.DetachSubscriptionResponse.Builder.class);
     }
 
     // Construct using com.google.pubsub.v1.DetachSubscriptionResponse.newBuilder()
@@ -287,15 +259,16 @@ 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) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -303,9 +276,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.pubsub.v1.PubsubProto
-          .internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor;
     }
 
     @java.lang.Override
@@ -324,8 +297,7 @@ public com.google.pubsub.v1.DetachSubscriptionResponse build() {
 
     @java.lang.Override
     public com.google.pubsub.v1.DetachSubscriptionResponse buildPartial() {
-      com.google.pubsub.v1.DetachSubscriptionResponse result =
-          new com.google.pubsub.v1.DetachSubscriptionResponse(this);
+      com.google.pubsub.v1.DetachSubscriptionResponse result = new com.google.pubsub.v1.DetachSubscriptionResponse(this);
       onBuilt();
       return result;
     }
@@ -334,39 +306,38 @@ public com.google.pubsub.v1.DetachSubscriptionResponse 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.pubsub.v1.DetachSubscriptionResponse) {
-        return mergeFrom((com.google.pubsub.v1.DetachSubscriptionResponse) other);
+        return mergeFrom((com.google.pubsub.v1.DetachSubscriptionResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -374,8 +345,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.pubsub.v1.DetachSubscriptionResponse other) {
-      if (other == com.google.pubsub.v1.DetachSubscriptionResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.pubsub.v1.DetachSubscriptionResponse.getDefaultInstance()) return this;
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -404,9 +374,9 @@ public Builder mergeFrom(
       }
       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);
     }
 
@@ -416,12 +386,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DetachSubscriptionResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.pubsub.v1.DetachSubscriptionResponse)
   private static final com.google.pubsub.v1.DetachSubscriptionResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.pubsub.v1.DetachSubscriptionResponse();
   }
@@ -430,16 +400,16 @@ public static com.google.pubsub.v1.DetachSubscriptionResponse getDefaultInstance
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public DetachSubscriptionResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new DetachSubscriptionResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public DetachSubscriptionResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new DetachSubscriptionResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -454,4 +424,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.pubsub.v1.DetachSubscriptionResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java
new file mode 100644
index 000000000..e9e8bdf14
--- /dev/null
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java
@@ -0,0 +1,9 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/pubsub/v1/pubsub.proto
+
+package com.google.pubsub.v1;
+
+public interface DetachSubscriptionResponseOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DetachSubscriptionResponse)
+    com.google.protobuf.MessageOrBuilder {
+}
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java
similarity index 67%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java
index 838fe7682..8ae906633 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java
@@ -1,36 +1,18 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/pubsub/v1/schema.proto
 
 package com.google.pubsub.v1;
 
 /**
- *
- *
  * 
  * Possible encoding types for messages.
  * 
* * Protobuf enum {@code google.pubsub.v1.Encoding} */ -public enum Encoding implements com.google.protobuf.ProtocolMessageEnum { +public enum Encoding + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Unspecified
    * 
@@ -39,8 +21,6 @@ public enum Encoding implements com.google.protobuf.ProtocolMessageEnum { */ ENCODING_UNSPECIFIED(0), /** - * - * *
    * JSON encoding
    * 
@@ -49,8 +29,6 @@ public enum Encoding implements com.google.protobuf.ProtocolMessageEnum { */ JSON(1), /** - * - * *
    * Binary encoding, as defined by the schema type. For some schema types,
    * binary encoding may not be available.
@@ -63,8 +41,6 @@ public enum Encoding implements com.google.protobuf.ProtocolMessageEnum {
   ;
 
   /**
-   *
-   *
    * 
    * Unspecified
    * 
@@ -73,8 +49,6 @@ public enum Encoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENCODING_UNSPECIFIED_VALUE = 0; /** - * - * *
    * JSON encoding
    * 
@@ -83,8 +57,6 @@ public enum Encoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int JSON_VALUE = 1; /** - * - * *
    * Binary encoding, as defined by the schema type. For some schema types,
    * binary encoding may not be available.
@@ -94,6 +66,7 @@ public enum Encoding implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int BINARY_VALUE = 2;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -118,49 +91,49 @@ public static Encoding valueOf(int value) {
    */
   public static Encoding forNumber(int value) {
     switch (value) {
-      case 0:
-        return ENCODING_UNSPECIFIED;
-      case 1:
-        return JSON;
-      case 2:
-        return BINARY;
-      default:
-        return null;
+      case 0: return ENCODING_UNSPECIFIED;
+      case 1: return JSON;
+      case 2: return BINARY;
+      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 internalValueMap =
-      new com.google.protobuf.Internal.EnumLiteMap() {
-        public Encoding findValueByNumber(int number) {
-          return Encoding.forNumber(number);
-        }
-      };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+  private static final com.google.protobuf.Internal.EnumLiteMap<
+      Encoding> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public Encoding findValueByNumber(int number) {
+            return Encoding.forNumber(number);
+          }
+        };
+
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor
+      getValueDescriptor() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-
-  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+  public final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptorForType() {
     return getDescriptor();
   }
-
-  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+  public static final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptor() {
     return com.google.pubsub.v1.SchemaProto.getDescriptor().getEnumTypes().get(1);
   }
 
   private static final Encoding[] VALUES = values();
 
-  public static Encoding valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static Encoding 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;
@@ -176,3 +149,4 @@ private Encoding(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.pubsub.v1.Encoding)
 }
+
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java
similarity index 74%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java
index 5c88243ee..608aeb6f4 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/pubsub/v1/pubsub.proto
 
 package com.google.pubsub.v1;
 
 /**
- *
- *
  * 
  * A policy that specifies the conditions for resource expiration (i.e.,
  * automatic resource deletion).
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.pubsub.v1.ExpirationPolicy}
  */
-public final class ExpirationPolicy extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ExpirationPolicy extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.pubsub.v1.ExpirationPolicy)
     ExpirationPolicyOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ExpirationPolicy.newBuilder() to construct.
   private ExpirationPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ExpirationPolicy() {}
+  private ExpirationPolicy() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ExpirationPolicy();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ExpirationPolicy(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,59 +53,54 @@ private ExpirationPolicy(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (ttl_ != null) {
-                subBuilder = ttl_.toBuilder();
-              }
-              ttl_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(ttl_);
-                ttl_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (ttl_ != null) {
+              subBuilder = ttl_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            ttl_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(ttl_);
+              ttl_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.pubsub.v1.PubsubProto
-        .internal_static_google_pubsub_v1_ExpirationPolicy_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ExpirationPolicy_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.pubsub.v1.PubsubProto
-        .internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable
+    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.pubsub.v1.ExpirationPolicy.class,
-            com.google.pubsub.v1.ExpirationPolicy.Builder.class);
+            com.google.pubsub.v1.ExpirationPolicy.class, com.google.pubsub.v1.ExpirationPolicy.Builder.class);
   }
 
   public static final int TTL_FIELD_NUMBER = 1;
   private com.google.protobuf.Duration ttl_;
   /**
-   *
-   *
    * 
    * Specifies the "time-to-live" duration for an associated resource. The
    * resource expires if it is not active for a period of `ttl`. The definition
@@ -132,7 +111,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.protobuf.Duration ttl = 1; - * * @return Whether the ttl field is set. */ @java.lang.Override @@ -140,8 +118,6 @@ public boolean hasTtl() { return ttl_ != null; } /** - * - * *
    * Specifies the "time-to-live" duration for an associated resource. The
    * resource expires if it is not active for a period of `ttl`. The definition
@@ -152,7 +128,6 @@ public boolean hasTtl() {
    * 
* * .google.protobuf.Duration ttl = 1; - * * @return The ttl. */ @java.lang.Override @@ -160,8 +135,6 @@ public com.google.protobuf.Duration getTtl() { return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; } /** - * - * *
    * Specifies the "time-to-live" duration for an associated resource. The
    * resource expires if it is not active for a period of `ttl`. The definition
@@ -179,7 +152,6 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -191,7 +163,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (ttl_ != null) {
       output.writeMessage(1, getTtl());
     }
@@ -205,7 +178,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (ttl_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTtl());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getTtl());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -215,7 +189,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.pubsub.v1.ExpirationPolicy)) {
       return super.equals(obj);
@@ -224,7 +198,8 @@ public boolean equals(final java.lang.Object obj) {
 
     if (hasTtl() != other.hasTtl()) return false;
     if (hasTtl()) {
-      if (!getTtl().equals(other.getTtl())) return false;
+      if (!getTtl()
+          .equals(other.getTtl())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -246,103 +221,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.pubsub.v1.ExpirationPolicy parseFrom(java.nio.ByteBuffer data)
+  public static com.google.pubsub.v1.ExpirationPolicy parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.ExpirationPolicy parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.pubsub.v1.ExpirationPolicy parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.pubsub.v1.ExpirationPolicy parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.ExpirationPolicy parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.ExpirationPolicy parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.ExpirationPolicy parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.ExpirationPolicy 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.pubsub.v1.ExpirationPolicy parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.ExpirationPolicy parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.pubsub.v1.ExpirationPolicy parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.ExpirationPolicy parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.pubsub.v1.ExpirationPolicy parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.pubsub.v1.ExpirationPolicy prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 policy that specifies the conditions for resource expiration (i.e.,
    * automatic resource deletion).
@@ -350,23 +319,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.pubsub.v1.ExpirationPolicy}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ExpirationPolicy)
       com.google.pubsub.v1.ExpirationPolicyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.pubsub.v1.PubsubProto
-          .internal_static_google_pubsub_v1_ExpirationPolicy_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ExpirationPolicy_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.pubsub.v1.PubsubProto
-          .internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable
+      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.pubsub.v1.ExpirationPolicy.class,
-              com.google.pubsub.v1.ExpirationPolicy.Builder.class);
+              com.google.pubsub.v1.ExpirationPolicy.class, com.google.pubsub.v1.ExpirationPolicy.Builder.class);
     }
 
     // Construct using com.google.pubsub.v1.ExpirationPolicy.newBuilder()
@@ -374,15 +341,16 @@ 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) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -396,9 +364,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.pubsub.v1.PubsubProto
-          .internal_static_google_pubsub_v1_ExpirationPolicy_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ExpirationPolicy_descriptor;
     }
 
     @java.lang.Override
@@ -417,8 +385,7 @@ public com.google.pubsub.v1.ExpirationPolicy build() {
 
     @java.lang.Override
     public com.google.pubsub.v1.ExpirationPolicy buildPartial() {
-      com.google.pubsub.v1.ExpirationPolicy result =
-          new com.google.pubsub.v1.ExpirationPolicy(this);
+      com.google.pubsub.v1.ExpirationPolicy result = new com.google.pubsub.v1.ExpirationPolicy(this);
       if (ttlBuilder_ == null) {
         result.ttl_ = ttl_;
       } else {
@@ -432,39 +399,38 @@ public com.google.pubsub.v1.ExpirationPolicy 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.pubsub.v1.ExpirationPolicy) {
-        return mergeFrom((com.google.pubsub.v1.ExpirationPolicy) other);
+        return mergeFrom((com.google.pubsub.v1.ExpirationPolicy)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -507,13 +473,8 @@ public Builder mergeFrom(
 
     private com.google.protobuf.Duration ttl_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        ttlBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_;
     /**
-     *
-     *
      * 
      * Specifies the "time-to-live" duration for an associated resource. The
      * resource expires if it is not active for a period of `ttl`. The definition
@@ -524,15 +485,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration ttl = 1; - * * @return Whether the ttl field is set. */ public boolean hasTtl() { return ttlBuilder_ != null || ttl_ != null; } /** - * - * *
      * Specifies the "time-to-live" duration for an associated resource. The
      * resource expires if it is not active for a period of `ttl`. The definition
@@ -543,7 +501,6 @@ public boolean hasTtl() {
      * 
* * .google.protobuf.Duration ttl = 1; - * * @return The ttl. */ public com.google.protobuf.Duration getTtl() { @@ -554,8 +511,6 @@ public com.google.protobuf.Duration getTtl() { } } /** - * - * *
      * Specifies the "time-to-live" duration for an associated resource. The
      * resource expires if it is not active for a period of `ttl`. The definition
@@ -581,8 +536,6 @@ public Builder setTtl(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies the "time-to-live" duration for an associated resource. The
      * resource expires if it is not active for a period of `ttl`. The definition
@@ -594,7 +547,8 @@ public Builder setTtl(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration ttl = 1;
      */
-    public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTtl(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (ttlBuilder_ == null) {
         ttl_ = builderForValue.build();
         onChanged();
@@ -605,8 +559,6 @@ public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies the "time-to-live" duration for an associated resource. The
      * resource expires if it is not active for a period of `ttl`. The definition
@@ -621,7 +573,8 @@ public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) {
     public Builder mergeTtl(com.google.protobuf.Duration value) {
       if (ttlBuilder_ == null) {
         if (ttl_ != null) {
-          ttl_ = com.google.protobuf.Duration.newBuilder(ttl_).mergeFrom(value).buildPartial();
+          ttl_ =
+            com.google.protobuf.Duration.newBuilder(ttl_).mergeFrom(value).buildPartial();
         } else {
           ttl_ = value;
         }
@@ -633,8 +586,6 @@ public Builder mergeTtl(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies the "time-to-live" duration for an associated resource. The
      * resource expires if it is not active for a period of `ttl`. The definition
@@ -658,8 +609,6 @@ public Builder clearTtl() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies the "time-to-live" duration for an associated resource. The
      * resource expires if it is not active for a period of `ttl`. The definition
@@ -672,13 +621,11 @@ public Builder clearTtl() {
      * .google.protobuf.Duration ttl = 1;
      */
     public com.google.protobuf.Duration.Builder getTtlBuilder() {
-
+      
       onChanged();
       return getTtlFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Specifies the "time-to-live" duration for an associated resource. The
      * resource expires if it is not active for a period of `ttl`. The definition
@@ -694,12 +641,11 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
       if (ttlBuilder_ != null) {
         return ttlBuilder_.getMessageOrBuilder();
       } else {
-        return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_;
+        return ttl_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : ttl_;
       }
     }
     /**
-     *
-     *
      * 
      * Specifies the "time-to-live" duration for an associated resource. The
      * resource expires if it is not active for a period of `ttl`. The definition
@@ -712,23 +658,21 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
      * .google.protobuf.Duration ttl = 1;
      */
     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> 
         getTtlFieldBuilder() {
       if (ttlBuilder_ == null) {
-        ttlBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(getTtl(), getParentForChildren(), isClean());
+        ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getTtl(),
+                getParentForChildren(),
+                isClean());
         ttl_ = null;
       }
       return ttlBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -738,12 +682,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ExpirationPolicy)
   }
 
   // @@protoc_insertion_point(class_scope:google.pubsub.v1.ExpirationPolicy)
   private static final com.google.pubsub.v1.ExpirationPolicy DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.pubsub.v1.ExpirationPolicy();
   }
@@ -752,16 +696,16 @@ public static com.google.pubsub.v1.ExpirationPolicy getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ExpirationPolicy parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new ExpirationPolicy(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ExpirationPolicy parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new ExpirationPolicy(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -776,4 +720,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.pubsub.v1.ExpirationPolicy getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java
similarity index 73%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java
index ac04be2f7..097989dce 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/pubsub/v1/pubsub.proto
 
 package com.google.pubsub.v1;
 
-public interface ExpirationPolicyOrBuilder
-    extends
+public interface ExpirationPolicyOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ExpirationPolicy)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Specifies the "time-to-live" duration for an associated resource. The
    * resource expires if it is not active for a period of `ttl`. The definition
@@ -36,13 +18,10 @@ public interface ExpirationPolicyOrBuilder
    * 
* * .google.protobuf.Duration ttl = 1; - * * @return Whether the ttl field is set. */ boolean hasTtl(); /** - * - * *
    * Specifies the "time-to-live" duration for an associated resource. The
    * resource expires if it is not active for a period of `ttl`. The definition
@@ -53,13 +32,10 @@ public interface ExpirationPolicyOrBuilder
    * 
* * .google.protobuf.Duration ttl = 1; - * * @return The ttl. */ com.google.protobuf.Duration getTtl(); /** - * - * *
    * Specifies the "time-to-live" duration for an associated resource. The
    * resource expires if it is not active for a period of `ttl`. The definition
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java
similarity index 69%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java
index d8dd20048..2aee91b04 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/pubsub/v1/schema.proto
 
 package com.google.pubsub.v1;
 
 /**
- *
- *
  * 
  * Request for the GetSchema method.
  * 
* * Protobuf type {@code google.pubsub.v1.GetSchemaRequest} */ -public final class GetSchemaRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetSchemaRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.GetSchemaRequest) GetSchemaRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetSchemaRequest.newBuilder() to construct. private GetSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetSchemaRequest() { name_ = ""; view_ = 0; @@ -44,15 +26,16 @@ private GetSchemaRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSchemaRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetSchemaRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,68 +54,59 @@ private GetSchemaRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - view_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + view_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_GetSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_GetSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_GetSchemaRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_GetSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.GetSchemaRequest.class, - com.google.pubsub.v1.GetSchemaRequest.Builder.class); + com.google.pubsub.v1.GetSchemaRequest.class, com.google.pubsub.v1.GetSchemaRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the schema to get.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* - * - * string name = 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 @@ -141,32 +115,30 @@ 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 schema to get.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* - * - * string name = 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 { @@ -177,8 +149,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VIEW_FIELD_NUMBER = 2; private int view_; /** - * - * *
    * The set of fields to return in the response. If not set, returns a Schema
    * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
@@ -186,16 +156,12 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * .google.pubsub.v1.SchemaView view = 2; - * * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
    * The set of fields to return in the response. If not set, returns a Schema
    * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
@@ -203,18 +169,15 @@ public int getViewValue() {
    * 
* * .google.pubsub.v1.SchemaView view = 2; - * * @return The view. */ - @java.lang.Override - public com.google.pubsub.v1.SchemaView getView() { + @java.lang.Override public com.google.pubsub.v1.SchemaView getView() { @SuppressWarnings("deprecation") com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.valueOf(view_); return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,8 +189,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + 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_); } if (view_ != com.google.pubsub.v1.SchemaView.SCHEMA_VIEW_UNSPECIFIED.getNumber()) { @@ -242,11 +206,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (view_ != com.google.pubsub.v1.SchemaView.SCHEMA_VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, view_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -256,14 +221,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.pubsub.v1.GetSchemaRequest)) { return super.equals(obj); } com.google.pubsub.v1.GetSchemaRequest other = (com.google.pubsub.v1.GetSchemaRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (view_ != other.view_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -285,126 +251,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.GetSchemaRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.GetSchemaRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.GetSchemaRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.pubsub.v1.GetSchemaRequest parseFrom(com.google.protobuf.ByteString data) + public static com.google.pubsub.v1.GetSchemaRequest parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.GetSchemaRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.GetSchemaRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.GetSchemaRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.GetSchemaRequest 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.pubsub.v1.GetSchemaRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.GetSchemaRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.GetSchemaRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.GetSchemaRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.GetSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.GetSchemaRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 the GetSchema method.
    * 
* * Protobuf type {@code google.pubsub.v1.GetSchemaRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.GetSchemaRequest) com.google.pubsub.v1.GetSchemaRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_GetSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_GetSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_GetSchemaRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_GetSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.GetSchemaRequest.class, - com.google.pubsub.v1.GetSchemaRequest.Builder.class); + com.google.pubsub.v1.GetSchemaRequest.class, com.google.pubsub.v1.GetSchemaRequest.Builder.class); } // Construct using com.google.pubsub.v1.GetSchemaRequest.newBuilder() @@ -412,15 +370,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -432,9 +391,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_GetSchemaRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_GetSchemaRequest_descriptor; } @java.lang.Override @@ -453,8 +412,7 @@ public com.google.pubsub.v1.GetSchemaRequest build() { @java.lang.Override public com.google.pubsub.v1.GetSchemaRequest buildPartial() { - com.google.pubsub.v1.GetSchemaRequest result = - new com.google.pubsub.v1.GetSchemaRequest(this); + com.google.pubsub.v1.GetSchemaRequest result = new com.google.pubsub.v1.GetSchemaRequest(this); result.name_ = name_; result.view_ = view_; onBuilt(); @@ -465,39 +423,38 @@ public com.google.pubsub.v1.GetSchemaRequest 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.pubsub.v1.GetSchemaRequest) { - return mergeFrom((com.google.pubsub.v1.GetSchemaRequest) other); + return mergeFrom((com.google.pubsub.v1.GetSchemaRequest)other); } else { super.mergeFrom(other); return this; @@ -544,23 +501,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the schema to get.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -569,24 +522,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the schema to get.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* - * - * string name = 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 { @@ -594,70 +544,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the schema to get.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* - * - * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the schema to get.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* - * - * string 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the schema to get.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* - * - * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -665,8 +602,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int view_ = 0; /** - * - * *
      * The set of fields to return in the response. If not set, returns a Schema
      * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
@@ -674,16 +609,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.pubsub.v1.SchemaView view = 2; - * * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
      * The set of fields to return in the response. If not set, returns a Schema
      * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
@@ -691,19 +622,16 @@ public int getViewValue() {
      * 
* * .google.pubsub.v1.SchemaView view = 2; - * * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ public Builder setViewValue(int value) { - + view_ = value; onChanged(); return this; } /** - * - * *
      * The set of fields to return in the response. If not set, returns a Schema
      * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
@@ -711,7 +639,6 @@ public Builder setViewValue(int value) {
      * 
* * .google.pubsub.v1.SchemaView view = 2; - * * @return The view. */ @java.lang.Override @@ -721,8 +648,6 @@ public com.google.pubsub.v1.SchemaView getView() { return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; } /** - * - * *
      * The set of fields to return in the response. If not set, returns a Schema
      * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
@@ -730,7 +655,6 @@ public com.google.pubsub.v1.SchemaView getView() {
      * 
* * .google.pubsub.v1.SchemaView view = 2; - * * @param value The view to set. * @return This builder for chaining. */ @@ -738,14 +662,12 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) { if (value == null) { throw new NullPointerException(); } - + view_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The set of fields to return in the response. If not set, returns a Schema
      * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
@@ -753,18 +675,17 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) {
      * 
* * .google.pubsub.v1.SchemaView view = 2; - * * @return This builder for chaining. */ public Builder clearView() { - + view_ = 0; 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); } @@ -774,12 +695,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.GetSchemaRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.GetSchemaRequest) private static final com.google.pubsub.v1.GetSchemaRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.GetSchemaRequest(); } @@ -788,16 +709,16 @@ public static com.google.pubsub.v1.GetSchemaRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSchemaRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSchemaRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSchemaRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -812,4 +733,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.GetSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java index 54c9481e2..e06bc63f9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto package com.google.pubsub.v1; -public interface GetSchemaRequestOrBuilder - extends +public interface GetSchemaRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.GetSchemaRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the schema to get.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* - * - * string name = 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 schema to get.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* - * - * string name = 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 set of fields to return in the response. If not set, returns a Schema
    * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
@@ -64,13 +37,10 @@ public interface GetSchemaRequestOrBuilder
    * 
* * .google.pubsub.v1.SchemaView view = 2; - * * @return The enum numeric value on the wire for view. */ int getViewValue(); /** - * - * *
    * The set of fields to return in the response. If not set, returns a Schema
    * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
@@ -78,7 +48,6 @@ public interface GetSchemaRequestOrBuilder
    * 
* * .google.pubsub.v1.SchemaView view = 2; - * * @return The view. */ com.google.pubsub.v1.SchemaView getView(); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java similarity index 65% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index ee75fc7d3..311dc8bcc 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Request for the GetSnapshot method.
  * 
* * Protobuf type {@code google.pubsub.v1.GetSnapshotRequest} */ -public final class GetSnapshotRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetSnapshotRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.GetSnapshotRequest) GetSnapshotRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetSnapshotRequest.newBuilder() to construct. private GetSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetSnapshotRequest() { snapshot_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSnapshotRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetSnapshotRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,61 +53,53 @@ private GetSnapshotRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - snapshot_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + snapshot_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.GetSnapshotRequest.class, - com.google.pubsub.v1.GetSnapshotRequest.Builder.class); + com.google.pubsub.v1.GetSnapshotRequest.class, com.google.pubsub.v1.GetSnapshotRequest.Builder.class); } public static final int SNAPSHOT_FIELD_NUMBER = 1; private volatile java.lang.Object snapshot_; /** - * - * *
    * Required. The name of the snapshot to get.
    * Format is `projects/{project}/snapshots/{snap}`.
    * 
* - * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The snapshot. */ @java.lang.Override @@ -133,32 +108,30 @@ public java.lang.String getSnapshot() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshot_ = s; return s; } } /** - * - * *
    * Required. The name of the snapshot to get.
    * Format is `projects/{project}/snapshots/{snap}`.
    * 
* - * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for snapshot. */ @java.lang.Override - public com.google.protobuf.ByteString getSnapshotBytes() { + public com.google.protobuf.ByteString + getSnapshotBytes() { java.lang.Object ref = snapshot_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); snapshot_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getSnapshotBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +151,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getSnapshotBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshot_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshot_); } unknownFields.writeTo(output); @@ -192,7 +165,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getSnapshotBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshot_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshot_); } size += unknownFields.getSerializedSize(); @@ -203,14 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.GetSnapshotRequest)) { return super.equals(obj); } com.google.pubsub.v1.GetSnapshotRequest other = (com.google.pubsub.v1.GetSnapshotRequest) obj; - if (!getSnapshot().equals(other.getSnapshot())) return false; + if (!getSnapshot() + .equals(other.getSnapshot())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,127 +203,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.GetSnapshotRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.GetSnapshotRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.GetSnapshotRequest 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.pubsub.v1.GetSnapshotRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.pubsub.v1.GetSnapshotRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.GetSnapshotRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.GetSnapshotRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.GetSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 the GetSnapshot method.
    * 
* * Protobuf type {@code google.pubsub.v1.GetSnapshotRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.GetSnapshotRequest) com.google.pubsub.v1.GetSnapshotRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.GetSnapshotRequest.class, - com.google.pubsub.v1.GetSnapshotRequest.Builder.class); + com.google.pubsub.v1.GetSnapshotRequest.class, com.google.pubsub.v1.GetSnapshotRequest.Builder.class); } // Construct using com.google.pubsub.v1.GetSnapshotRequest.newBuilder() @@ -357,15 +322,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; } @java.lang.Override @@ -396,8 +362,7 @@ public com.google.pubsub.v1.GetSnapshotRequest build() { @java.lang.Override public com.google.pubsub.v1.GetSnapshotRequest buildPartial() { - com.google.pubsub.v1.GetSnapshotRequest result = - new com.google.pubsub.v1.GetSnapshotRequest(this); + com.google.pubsub.v1.GetSnapshotRequest result = new com.google.pubsub.v1.GetSnapshotRequest(this); result.snapshot_ = snapshot_; onBuilt(); return result; @@ -407,39 +372,38 @@ public com.google.pubsub.v1.GetSnapshotRequest 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.pubsub.v1.GetSnapshotRequest) { - return mergeFrom((com.google.pubsub.v1.GetSnapshotRequest) other); + return mergeFrom((com.google.pubsub.v1.GetSnapshotRequest)other); } else { super.mergeFrom(other); return this; @@ -483,23 +447,19 @@ public Builder mergeFrom( private java.lang.Object snapshot_ = ""; /** - * - * *
      * Required. The name of the snapshot to get.
      * Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The snapshot. */ public java.lang.String getSnapshot() { java.lang.Object ref = snapshot_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshot_ = s; return s; @@ -508,24 +468,21 @@ public java.lang.String getSnapshot() { } } /** - * - * *
      * Required. The name of the snapshot to get.
      * Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for snapshot. */ - public com.google.protobuf.ByteString getSnapshotBytes() { + public com.google.protobuf.ByteString + getSnapshotBytes() { java.lang.Object ref = snapshot_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); snapshot_ = b; return b; } else { @@ -533,77 +490,64 @@ public com.google.protobuf.ByteString getSnapshotBytes() { } } /** - * - * *
      * Required. The name of the snapshot to get.
      * Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The snapshot to set. * @return This builder for chaining. */ - public Builder setSnapshot(java.lang.String value) { + public Builder setSnapshot( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + snapshot_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the snapshot to get.
      * Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearSnapshot() { - + snapshot_ = getDefaultInstance().getSnapshot(); onChanged(); return this; } /** - * - * *
      * Required. The name of the snapshot to get.
      * Format is `projects/{project}/snapshots/{snap}`.
      * 
* - * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for snapshot to set. * @return This builder for chaining. */ - public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { + public Builder setSnapshotBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + snapshot_ = value; 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); } @@ -613,12 +557,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.GetSnapshotRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.GetSnapshotRequest) private static final com.google.pubsub.v1.GetSnapshotRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.GetSnapshotRequest(); } @@ -627,16 +571,16 @@ public static com.google.pubsub.v1.GetSnapshotRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSnapshotRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSnapshotRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSnapshotRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSnapshotRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -651,4 +595,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.GetSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java new file mode 100644 index 000000000..d0c929953 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface GetSnapshotRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.GetSnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the snapshot to get.
+   * Format is `projects/{project}/snapshots/{snap}`.
+   * 
+ * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The snapshot. + */ + java.lang.String getSnapshot(); + /** + *
+   * Required. The name of the snapshot to get.
+   * Format is `projects/{project}/snapshots/{snap}`.
+   * 
+ * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for snapshot. + */ + com.google.protobuf.ByteString + getSnapshotBytes(); +} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java similarity index 65% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index 7aed4b01a..9fe8152ce 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Request for the GetSubscription method.
  * 
* * Protobuf type {@code google.pubsub.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.pubsub.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() { subscription_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetSubscriptionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetSubscriptionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,61 +53,53 @@ private GetSubscriptionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + subscription_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.GetSubscriptionRequest.class, - com.google.pubsub.v1.GetSubscriptionRequest.Builder.class); + com.google.pubsub.v1.GetSubscriptionRequest.class, com.google.pubsub.v1.GetSubscriptionRequest.Builder.class); } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object subscription_; /** - * - * *
    * Required. The name of the subscription to get.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The subscription. */ @java.lang.Override @@ -133,32 +108,30 @@ 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; } } /** - * - * *
    * Required. The name of the subscription to get.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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 { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +151,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getSubscriptionBytes().isEmpty()) { + 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_); } unknownFields.writeTo(output); @@ -192,7 +165,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getSubscriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } size += unknownFields.getSerializedSize(); @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.GetSubscriptionRequest)) { return super.equals(obj); } - com.google.pubsub.v1.GetSubscriptionRequest other = - (com.google.pubsub.v1.GetSubscriptionRequest) obj; + com.google.pubsub.v1.GetSubscriptionRequest other = (com.google.pubsub.v1.GetSubscriptionRequest) obj; - if (!getSubscription().equals(other.getSubscription())) return false; + if (!getSubscription() + .equals(other.getSubscription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -230,127 +203,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.GetSubscriptionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.GetSubscriptionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.GetSubscriptionRequest 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.pubsub.v1.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.pubsub.v1.GetSubscriptionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.GetSubscriptionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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 the GetSubscription method.
    * 
* * Protobuf type {@code google.pubsub.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.pubsub.v1.GetSubscriptionRequest) com.google.pubsub.v1.GetSubscriptionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.GetSubscriptionRequest.class, - com.google.pubsub.v1.GetSubscriptionRequest.Builder.class); + com.google.pubsub.v1.GetSubscriptionRequest.class, com.google.pubsub.v1.GetSubscriptionRequest.Builder.class); } // Construct using com.google.pubsub.v1.GetSubscriptionRequest.newBuilder() @@ -358,15 +322,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; } @java.lang.Override @@ -397,8 +362,7 @@ public com.google.pubsub.v1.GetSubscriptionRequest build() { @java.lang.Override public com.google.pubsub.v1.GetSubscriptionRequest buildPartial() { - com.google.pubsub.v1.GetSubscriptionRequest result = - new com.google.pubsub.v1.GetSubscriptionRequest(this); + com.google.pubsub.v1.GetSubscriptionRequest result = new com.google.pubsub.v1.GetSubscriptionRequest(this); result.subscription_ = subscription_; onBuilt(); return result; @@ -408,39 +372,38 @@ public com.google.pubsub.v1.GetSubscriptionRequest 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.pubsub.v1.GetSubscriptionRequest) { - return mergeFrom((com.google.pubsub.v1.GetSubscriptionRequest) other); + return mergeFrom((com.google.pubsub.v1.GetSubscriptionRequest)other); } else { super.mergeFrom(other); return this; @@ -484,23 +447,19 @@ public Builder mergeFrom( private java.lang.Object subscription_ = ""; /** - * - * *
      * Required. The name of the subscription to get.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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; @@ -509,24 +468,21 @@ public java.lang.String getSubscription() { } } /** - * - * *
      * Required. The name of the subscription to get.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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 { @@ -534,77 +490,64 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * Required. The name of the subscription to get.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription(java.lang.String value) { + public Builder setSubscription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the subscription to get.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearSubscription() { - + subscription_ = getDefaultInstance().getSubscription(); onChanged(); return this; } /** - * - * *
      * Required. The name of the subscription to get.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -614,12 +557,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.GetSubscriptionRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.GetSubscriptionRequest) private static final com.google.pubsub.v1.GetSubscriptionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.GetSubscriptionRequest(); } @@ -628,16 +571,16 @@ public static com.google.pubsub.v1.GetSubscriptionRequest getDefaultInstance() { 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 { - return new GetSubscriptionRequest(input, extensionRegistry); - } - }; + 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 { + return new GetSubscriptionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -652,4 +595,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.GetSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java new file mode 100644 index 000000000..1b1f6dccb --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface GetSubscriptionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.GetSubscriptionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the subscription to get.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The subscription. + */ + java.lang.String getSubscription(); + /** + *
+   * Required. The name of the subscription to get.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for subscription. + */ + com.google.protobuf.ByteString + getSubscriptionBytes(); +} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java similarity index 65% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index acf62a7f7..882124770 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Request for the GetTopic method.
  * 
* * Protobuf type {@code google.pubsub.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.pubsub.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() { topic_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetTopicRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetTopicRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,61 +53,53 @@ private GetTopicRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - topic_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + topic_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_GetTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.GetTopicRequest.class, - com.google.pubsub.v1.GetTopicRequest.Builder.class); + com.google.pubsub.v1.GetTopicRequest.class, com.google.pubsub.v1.GetTopicRequest.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; private volatile java.lang.Object topic_; /** - * - * *
    * Required. The name of the topic to get.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * - * 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 @@ -133,32 +108,30 @@ 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 name of the topic to get.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * - * 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 { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getTopicBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +151,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTopicBytes().isEmpty()) { + 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_); } unknownFields.writeTo(output); @@ -192,7 +165,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTopicBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); } size += unknownFields.getSerializedSize(); @@ -203,14 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.GetTopicRequest)) { return super.equals(obj); } com.google.pubsub.v1.GetTopicRequest other = (com.google.pubsub.v1.GetTopicRequest) obj; - if (!getTopic().equals(other.getTopic())) return false; + if (!getTopic() + .equals(other.getTopic())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,126 +203,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.GetTopicRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.GetTopicRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.GetTopicRequest parseFrom(com.google.protobuf.ByteString data) + public static com.google.pubsub.v1.GetTopicRequest parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.GetTopicRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.GetTopicRequest 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.pubsub.v1.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.pubsub.v1.GetTopicRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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 the GetTopic method.
    * 
* * Protobuf type {@code google.pubsub.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.pubsub.v1.GetTopicRequest) com.google.pubsub.v1.GetTopicRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_GetTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.GetTopicRequest.class, - com.google.pubsub.v1.GetTopicRequest.Builder.class); + com.google.pubsub.v1.GetTopicRequest.class, com.google.pubsub.v1.GetTopicRequest.Builder.class); } // Construct using com.google.pubsub.v1.GetTopicRequest.newBuilder() @@ -356,15 +322,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_GetTopicRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_descriptor; } @java.lang.Override @@ -405,39 +372,38 @@ public com.google.pubsub.v1.GetTopicRequest 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.pubsub.v1.GetTopicRequest) { - return mergeFrom((com.google.pubsub.v1.GetTopicRequest) other); + return mergeFrom((com.google.pubsub.v1.GetTopicRequest)other); } else { super.mergeFrom(other); return this; @@ -481,23 +447,19 @@ public Builder mergeFrom( private java.lang.Object topic_ = ""; /** - * - * *
      * Required. The name of the topic to get.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * - * 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; @@ -506,24 +468,21 @@ public java.lang.String getTopic() { } } /** - * - * *
      * Required. The name of the topic to get.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * - * 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 { @@ -531,77 +490,64 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
      * Required. The name of the topic to get.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * - * 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) { + public Builder setTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topic_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the topic to get.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * - * 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() { - + topic_ = getDefaultInstance().getTopic(); onChanged(); return this; } /** - * - * *
      * Required. The name of the topic to get.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * - * 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) { + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; 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); } @@ -611,12 +557,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.GetTopicRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.GetTopicRequest) private static final com.google.pubsub.v1.GetTopicRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.GetTopicRequest(); } @@ -625,16 +571,16 @@ public static com.google.pubsub.v1.GetTopicRequest getDefaultInstance() { 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 { - return new GetTopicRequest(input, extensionRegistry); - } - }; + 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 { + return new GetTopicRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -649,4 +595,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.GetTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java new file mode 100644 index 000000000..f29eae1a6 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface GetTopicRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.GetTopicRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the topic to get.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The topic. + */ + java.lang.String getTopic(); + /** + *
+   * Required. The name of the topic to get.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for topic. + */ + com.google.protobuf.ByteString + getTopicBytes(); +} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java similarity index 71% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java index 95cf9ecab..9c86a0d7c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto package com.google.pubsub.v1; /** - * - * *
  * Request for the `ListSchemas` method.
  * 
* * Protobuf type {@code google.pubsub.v1.ListSchemasRequest} */ -public final class ListSchemasRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSchemasRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSchemasRequest) ListSchemasRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSchemasRequest.newBuilder() to construct. private ListSchemasRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSchemasRequest() { parent_ = ""; view_ = 0; @@ -45,15 +27,16 @@ private ListSchemasRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSchemasRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListSchemasRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,80 +55,70 @@ private ListSchemasRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + parent_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - view_ = rawValue; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + view_ = rawValue; + break; + } + case 24: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_ListSchemasRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemasRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_ListSchemasRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemasRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSchemasRequest.class, - com.google.pubsub.v1.ListSchemasRequest.Builder.class); + com.google.pubsub.v1.ListSchemasRequest.class, com.google.pubsub.v1.ListSchemasRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The name of the project in which to list schemas.
    * Format is `projects/{project-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 @@ -154,32 +127,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 name of the project in which to list schemas.
    * Format is `projects/{project-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 { @@ -190,8 +161,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int VIEW_FIELD_NUMBER = 2; private int view_; /** - * - * *
    * The set of Schema fields to return in the response. If not set, returns
    * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
@@ -199,16 +168,12 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * .google.pubsub.v1.SchemaView view = 2; - * * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
    * The set of Schema fields to return in the response. If not set, returns
    * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
@@ -216,11 +181,9 @@ public int getViewValue() {
    * 
* * .google.pubsub.v1.SchemaView view = 2; - * * @return The view. */ - @java.lang.Override - public com.google.pubsub.v1.SchemaView getView() { + @java.lang.Override public com.google.pubsub.v1.SchemaView getView() { @SuppressWarnings("deprecation") com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.valueOf(view_); return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; @@ -229,14 +192,11 @@ public com.google.pubsub.v1.SchemaView getView() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * Maximum number of schemas to return.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -247,8 +207,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListSchemasResponse`; indicates that
    * this is a continuation of a prior `ListSchemas` call, and that the
@@ -256,7 +214,6 @@ public int getPageSize() {
    * 
* * string page_token = 4; - * * @return The pageToken. */ @java.lang.Override @@ -265,15 +222,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; } } /** - * - * *
    * The value returned by the last `ListSchemasResponse`; indicates that
    * this is a continuation of a prior `ListSchemas` call, and that the
@@ -281,15 +237,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4; - * * @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 { @@ -298,7 +255,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -310,8 +266,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + 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_); } if (view_ != com.google.pubsub.v1.SchemaView.SCHEMA_VIEW_UNSPECIFIED.getNumber()) { @@ -320,7 +277,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); } unknownFields.writeTo(output); @@ -332,16 +289,18 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (view_ != com.google.pubsub.v1.SchemaView.SCHEMA_VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, view_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); } size += unknownFields.getSerializedSize(); @@ -352,17 +311,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.pubsub.v1.ListSchemasRequest)) { return super.equals(obj); } com.google.pubsub.v1.ListSchemasRequest other = (com.google.pubsub.v1.ListSchemasRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (view_ != other.view_) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -387,127 +349,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ListSchemasRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ListSchemasRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ListSchemasRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ListSchemasRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ListSchemasRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ListSchemasRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ListSchemasRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ListSchemasRequest 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.pubsub.v1.ListSchemasRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.pubsub.v1.ListSchemasRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ListSchemasRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.ListSchemasRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ListSchemasRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.ListSchemasRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.ListSchemasRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 the `ListSchemas` method.
    * 
* * Protobuf type {@code google.pubsub.v1.ListSchemasRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSchemasRequest) com.google.pubsub.v1.ListSchemasRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_ListSchemasRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemasRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_ListSchemasRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemasRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSchemasRequest.class, - com.google.pubsub.v1.ListSchemasRequest.Builder.class); + com.google.pubsub.v1.ListSchemasRequest.class, com.google.pubsub.v1.ListSchemasRequest.Builder.class); } // Construct using com.google.pubsub.v1.ListSchemasRequest.newBuilder() @@ -515,15 +468,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -539,9 +493,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_ListSchemasRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemasRequest_descriptor; } @java.lang.Override @@ -560,8 +514,7 @@ public com.google.pubsub.v1.ListSchemasRequest build() { @java.lang.Override public com.google.pubsub.v1.ListSchemasRequest buildPartial() { - com.google.pubsub.v1.ListSchemasRequest result = - new com.google.pubsub.v1.ListSchemasRequest(this); + com.google.pubsub.v1.ListSchemasRequest result = new com.google.pubsub.v1.ListSchemasRequest(this); result.parent_ = parent_; result.view_ = view_; result.pageSize_ = pageSize_; @@ -574,39 +527,38 @@ public com.google.pubsub.v1.ListSchemasRequest 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.pubsub.v1.ListSchemasRequest) { - return mergeFrom((com.google.pubsub.v1.ListSchemasRequest) other); + return mergeFrom((com.google.pubsub.v1.ListSchemasRequest)other); } else { super.mergeFrom(other); return this; @@ -660,23 +612,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the project in which to list schemas.
      * Format is `projects/{project-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; @@ -685,24 +633,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the project in which to list schemas.
      * Format is `projects/{project-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 { @@ -710,70 +655,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the project in which to list schemas.
      * Format is `projects/{project-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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the project in which to list schemas.
      * Format is `projects/{project-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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The name of the project in which to list schemas.
      * Format is `projects/{project-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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -781,8 +713,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private int view_ = 0; /** - * - * *
      * The set of Schema fields to return in the response. If not set, returns
      * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
@@ -790,16 +720,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.pubsub.v1.SchemaView view = 2; - * * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
      * The set of Schema fields to return in the response. If not set, returns
      * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
@@ -807,19 +733,16 @@ public int getViewValue() {
      * 
* * .google.pubsub.v1.SchemaView view = 2; - * * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ public Builder setViewValue(int value) { - + view_ = value; onChanged(); return this; } /** - * - * *
      * The set of Schema fields to return in the response. If not set, returns
      * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
@@ -827,7 +750,6 @@ public Builder setViewValue(int value) {
      * 
* * .google.pubsub.v1.SchemaView view = 2; - * * @return The view. */ @java.lang.Override @@ -837,8 +759,6 @@ public com.google.pubsub.v1.SchemaView getView() { return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; } /** - * - * *
      * The set of Schema fields to return in the response. If not set, returns
      * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
@@ -846,7 +766,6 @@ public com.google.pubsub.v1.SchemaView getView() {
      * 
* * .google.pubsub.v1.SchemaView view = 2; - * * @param value The view to set. * @return This builder for chaining. */ @@ -854,14 +773,12 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) { if (value == null) { throw new NullPointerException(); } - + view_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The set of Schema fields to return in the response. If not set, returns
      * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
@@ -869,26 +786,22 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) {
      * 
* * .google.pubsub.v1.SchemaView view = 2; - * * @return This builder for chaining. */ public Builder clearView() { - + view_ = 0; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of schemas to return.
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -896,36 +809,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of schemas to return.
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of schemas to return.
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -933,8 +840,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListSchemasResponse`; indicates that
      * this is a continuation of a prior `ListSchemas` call, and that the
@@ -942,13 +847,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4; - * * @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; @@ -957,8 +862,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListSchemasResponse`; indicates that
      * this is a continuation of a prior `ListSchemas` call, and that the
@@ -966,14 +869,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4; - * * @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 { @@ -981,8 +885,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListSchemasResponse`; indicates that
      * this is a continuation of a prior `ListSchemas` call, and that the
@@ -990,22 +892,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 4; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListSchemasResponse`; indicates that
      * this is a continuation of a prior `ListSchemas` call, and that the
@@ -1013,18 +913,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 4; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListSchemasResponse`; indicates that
      * this is a continuation of a prior `ListSchemas` call, and that the
@@ -1032,23 +929,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; 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); } @@ -1058,12 +955,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSchemasRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSchemasRequest) private static final com.google.pubsub.v1.ListSchemasRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ListSchemasRequest(); } @@ -1072,16 +969,16 @@ public static com.google.pubsub.v1.ListSchemasRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSchemasRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSchemasRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSchemasRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSchemasRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1096,4 +993,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ListSchemasRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java similarity index 65% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java index bd5787e76..49bdd3109 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto package com.google.pubsub.v1; -public interface ListSchemasRequestOrBuilder - extends +public interface ListSchemasRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSchemasRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the project in which to list schemas.
    * Format is `projects/{project-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 name of the project in which to list schemas.
    * Format is `projects/{project-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 set of Schema fields to return in the response. If not set, returns
    * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
@@ -64,13 +37,10 @@ public interface ListSchemasRequestOrBuilder
    * 
* * .google.pubsub.v1.SchemaView view = 2; - * * @return The enum numeric value on the wire for view. */ int getViewValue(); /** - * - * *
    * The set of Schema fields to return in the response. If not set, returns
    * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
@@ -78,27 +48,21 @@ public interface ListSchemasRequestOrBuilder
    * 
* * .google.pubsub.v1.SchemaView view = 2; - * * @return The view. */ com.google.pubsub.v1.SchemaView getView(); /** - * - * *
    * Maximum number of schemas to return.
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value returned by the last `ListSchemasResponse`; indicates that
    * this is a continuation of a prior `ListSchemas` call, and that the
@@ -106,13 +70,10 @@ public interface ListSchemasRequestOrBuilder
    * 
* * string page_token = 4; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListSchemasResponse`; indicates that
    * this is a continuation of a prior `ListSchemas` call, and that the
@@ -120,8 +81,8 @@ public interface ListSchemasRequestOrBuilder
    * 
* * string page_token = 4; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java similarity index 73% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java index ea77ff15a..357f34736 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto package com.google.pubsub.v1; /** - * - * *
  * Response for the `ListSchemas` method.
  * 
* * Protobuf type {@code google.pubsub.v1.ListSchemasResponse} */ -public final class ListSchemasResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSchemasResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSchemasResponse) ListSchemasResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSchemasResponse.newBuilder() to construct. private ListSchemasResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSchemasResponse() { schemas_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListSchemasResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSchemasResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListSchemasResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,36 +55,35 @@ private ListSchemasResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - schemas_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - schemas_.add( - input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + schemas_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + schemas_.add( + input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { schemas_ = java.util.Collections.unmodifiableList(schemas_); @@ -110,27 +92,22 @@ private ListSchemasResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_ListSchemasResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemasResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_ListSchemasResponse_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemasResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSchemasResponse.class, - com.google.pubsub.v1.ListSchemasResponse.Builder.class); + com.google.pubsub.v1.ListSchemasResponse.class, com.google.pubsub.v1.ListSchemasResponse.Builder.class); } public static final int SCHEMAS_FIELD_NUMBER = 1; private java.util.List schemas_; /** - * - * *
    * The resulting schemas.
    * 
@@ -142,8 +119,6 @@ public java.util.List getSchemasList() { return schemas_; } /** - * - * *
    * The resulting schemas.
    * 
@@ -151,12 +126,11 @@ public java.util.List getSchemasList() { * repeated .google.pubsub.v1.Schema schemas = 1; */ @java.lang.Override - public java.util.List getSchemasOrBuilderList() { + public java.util.List + getSchemasOrBuilderList() { return schemas_; } /** - * - * *
    * The resulting schemas.
    * 
@@ -168,8 +142,6 @@ public int getSchemasCount() { return schemas_.size(); } /** - * - * *
    * The resulting schemas.
    * 
@@ -181,8 +153,6 @@ public com.google.pubsub.v1.Schema getSchemas(int index) { return schemas_.get(index); } /** - * - * *
    * The resulting schemas.
    * 
@@ -190,22 +160,20 @@ public com.google.pubsub.v1.Schema getSchemas(int index) { * repeated .google.pubsub.v1.Schema schemas = 1; */ @java.lang.Override - public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder(int index) { + public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder( + int index) { return schemas_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * If not empty, indicates that there may be more schemas that match the
    * request; this value should be passed in a new `ListSchemasRequest`.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -214,30 +182,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; } } /** - * - * *
    * If not empty, indicates that there may be more schemas that match the
    * request; this value should be passed in a new `ListSchemasRequest`.
    * 
* * 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 { @@ -246,7 +214,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -258,11 +225,12 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < schemas_.size(); i++) { output.writeMessage(1, schemas_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -275,9 +243,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < schemas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, schemas_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, schemas_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); @@ -288,15 +257,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.pubsub.v1.ListSchemasResponse)) { return super.equals(obj); } com.google.pubsub.v1.ListSchemasResponse other = (com.google.pubsub.v1.ListSchemasResponse) obj; - if (!getSchemasList().equals(other.getSchemasList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getSchemasList() + .equals(other.getSchemasList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -319,127 +290,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ListSchemasResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ListSchemasResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ListSchemasResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ListSchemasResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ListSchemasResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ListSchemasResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ListSchemasResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ListSchemasResponse 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.pubsub.v1.ListSchemasResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.pubsub.v1.ListSchemasResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ListSchemasResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.ListSchemasResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ListSchemasResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.ListSchemasResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.ListSchemasResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 the `ListSchemas` method.
    * 
* * Protobuf type {@code google.pubsub.v1.ListSchemasResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSchemasResponse) com.google.pubsub.v1.ListSchemasResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_ListSchemasResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemasResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_ListSchemasResponse_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemasResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSchemasResponse.class, - com.google.pubsub.v1.ListSchemasResponse.Builder.class); + com.google.pubsub.v1.ListSchemasResponse.class, com.google.pubsub.v1.ListSchemasResponse.Builder.class); } // Construct using com.google.pubsub.v1.ListSchemasResponse.newBuilder() @@ -447,17 +409,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) { getSchemasFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -473,9 +435,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_ListSchemasResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ListSchemasResponse_descriptor; } @java.lang.Override @@ -494,8 +456,7 @@ public com.google.pubsub.v1.ListSchemasResponse build() { @java.lang.Override public com.google.pubsub.v1.ListSchemasResponse buildPartial() { - com.google.pubsub.v1.ListSchemasResponse result = - new com.google.pubsub.v1.ListSchemasResponse(this); + com.google.pubsub.v1.ListSchemasResponse result = new com.google.pubsub.v1.ListSchemasResponse(this); int from_bitField0_ = bitField0_; if (schemasBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -515,39 +476,38 @@ public com.google.pubsub.v1.ListSchemasResponse 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.pubsub.v1.ListSchemasResponse) { - return mergeFrom((com.google.pubsub.v1.ListSchemasResponse) other); + return mergeFrom((com.google.pubsub.v1.ListSchemasResponse)other); } else { super.mergeFrom(other); return this; @@ -574,10 +534,9 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSchemasResponse other) { schemasBuilder_ = null; schemas_ = other.schemas_; bitField0_ = (bitField0_ & ~0x00000001); - schemasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSchemasFieldBuilder() - : null; + schemasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSchemasFieldBuilder() : null; } else { schemasBuilder_.addAllMessages(other.schemas_); } @@ -615,28 +574,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List schemas_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSchemasIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { schemas_ = new java.util.ArrayList(schemas_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Schema, - com.google.pubsub.v1.Schema.Builder, - com.google.pubsub.v1.SchemaOrBuilder> - schemasBuilder_; + com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> schemasBuilder_; /** - * - * *
      * The resulting schemas.
      * 
@@ -651,8 +603,6 @@ public java.util.List getSchemasList() { } } /** - * - * *
      * The resulting schemas.
      * 
@@ -667,8 +617,6 @@ public int getSchemasCount() { } } /** - * - * *
      * The resulting schemas.
      * 
@@ -683,15 +631,14 @@ public com.google.pubsub.v1.Schema getSchemas(int index) { } } /** - * - * *
      * The resulting schemas.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public Builder setSchemas(int index, com.google.pubsub.v1.Schema value) { + public Builder setSchemas( + int index, com.google.pubsub.v1.Schema value) { if (schemasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -705,15 +652,14 @@ public Builder setSchemas(int index, com.google.pubsub.v1.Schema value) { return this; } /** - * - * *
      * The resulting schemas.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public Builder setSchemas(int index, com.google.pubsub.v1.Schema.Builder builderForValue) { + public Builder setSchemas( + int index, com.google.pubsub.v1.Schema.Builder builderForValue) { if (schemasBuilder_ == null) { ensureSchemasIsMutable(); schemas_.set(index, builderForValue.build()); @@ -724,8 +670,6 @@ public Builder setSchemas(int index, com.google.pubsub.v1.Schema.Builder builder return this; } /** - * - * *
      * The resulting schemas.
      * 
@@ -746,15 +690,14 @@ public Builder addSchemas(com.google.pubsub.v1.Schema value) { return this; } /** - * - * *
      * The resulting schemas.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public Builder addSchemas(int index, com.google.pubsub.v1.Schema value) { + public Builder addSchemas( + int index, com.google.pubsub.v1.Schema value) { if (schemasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -768,15 +711,14 @@ public Builder addSchemas(int index, com.google.pubsub.v1.Schema value) { return this; } /** - * - * *
      * The resulting schemas.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public Builder addSchemas(com.google.pubsub.v1.Schema.Builder builderForValue) { + public Builder addSchemas( + com.google.pubsub.v1.Schema.Builder builderForValue) { if (schemasBuilder_ == null) { ensureSchemasIsMutable(); schemas_.add(builderForValue.build()); @@ -787,15 +729,14 @@ public Builder addSchemas(com.google.pubsub.v1.Schema.Builder builderForValue) { return this; } /** - * - * *
      * The resulting schemas.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public Builder addSchemas(int index, com.google.pubsub.v1.Schema.Builder builderForValue) { + public Builder addSchemas( + int index, com.google.pubsub.v1.Schema.Builder builderForValue) { if (schemasBuilder_ == null) { ensureSchemasIsMutable(); schemas_.add(index, builderForValue.build()); @@ -806,18 +747,18 @@ public Builder addSchemas(int index, com.google.pubsub.v1.Schema.Builder builder return this; } /** - * - * *
      * The resulting schemas.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public Builder addAllSchemas(java.lang.Iterable values) { + public Builder addAllSchemas( + java.lang.Iterable values) { if (schemasBuilder_ == null) { ensureSchemasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, schemas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, schemas_); onChanged(); } else { schemasBuilder_.addAllMessages(values); @@ -825,8 +766,6 @@ public Builder addAllSchemas(java.lang.Iterable * The resulting schemas. *
@@ -844,8 +783,6 @@ public Builder clearSchemas() { return this; } /** - * - * *
      * The resulting schemas.
      * 
@@ -863,44 +800,39 @@ public Builder removeSchemas(int index) { return this; } /** - * - * *
      * The resulting schemas.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public com.google.pubsub.v1.Schema.Builder getSchemasBuilder(int index) { + public com.google.pubsub.v1.Schema.Builder getSchemasBuilder( + int index) { return getSchemasFieldBuilder().getBuilder(index); } /** - * - * *
      * The resulting schemas.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder(int index) { + public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder( + int index) { if (schemasBuilder_ == null) { - return schemas_.get(index); - } else { + return schemas_.get(index); } else { return schemasBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The resulting schemas.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public java.util.List - getSchemasOrBuilderList() { + public java.util.List + getSchemasOrBuilderList() { if (schemasBuilder_ != null) { return schemasBuilder_.getMessageOrBuilderList(); } else { @@ -908,8 +840,6 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder(int index) { } } /** - * - * *
      * The resulting schemas.
      * 
@@ -917,46 +847,42 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder(int index) { * repeated .google.pubsub.v1.Schema schemas = 1; */ public com.google.pubsub.v1.Schema.Builder addSchemasBuilder() { - return getSchemasFieldBuilder().addBuilder(com.google.pubsub.v1.Schema.getDefaultInstance()); + return getSchemasFieldBuilder().addBuilder( + com.google.pubsub.v1.Schema.getDefaultInstance()); } /** - * - * *
      * The resulting schemas.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public com.google.pubsub.v1.Schema.Builder addSchemasBuilder(int index) { - return getSchemasFieldBuilder() - .addBuilder(index, com.google.pubsub.v1.Schema.getDefaultInstance()); + public com.google.pubsub.v1.Schema.Builder addSchemasBuilder( + int index) { + return getSchemasFieldBuilder().addBuilder( + index, com.google.pubsub.v1.Schema.getDefaultInstance()); } /** - * - * *
      * The resulting schemas.
      * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - public java.util.List getSchemasBuilderList() { + public java.util.List + getSchemasBuilderList() { return getSchemasFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Schema, - com.google.pubsub.v1.Schema.Builder, - com.google.pubsub.v1.SchemaOrBuilder> + com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> getSchemasFieldBuilder() { if (schemasBuilder_ == null) { - schemasBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Schema, - com.google.pubsub.v1.Schema.Builder, - com.google.pubsub.v1.SchemaOrBuilder>( - schemas_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + schemasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder>( + schemas_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); schemas_ = null; } return schemasBuilder_; @@ -964,21 +890,19 @@ public java.util.List getSchemasBuilderList private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If not empty, indicates that there may be more schemas that match the
      * request; this value should be passed in a new `ListSchemasRequest`.
      * 
* * 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; @@ -987,22 +911,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If not empty, indicates that there may be more schemas that match the
      * request; this value should be passed in a new `ListSchemasRequest`.
      * 
* * 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 { @@ -1010,71 +933,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If not empty, indicates that there may be more schemas that match the
      * request; this value should be passed in a new `ListSchemasRequest`.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * If not empty, indicates that there may be more schemas that match the
      * request; this value should be passed in a new `ListSchemasRequest`.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * If not empty, indicates that there may be more schemas that match the
      * request; this value should be passed in a new `ListSchemasRequest`.
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; 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); } @@ -1084,12 +1000,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSchemasResponse) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSchemasResponse) private static final com.google.pubsub.v1.ListSchemasResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ListSchemasResponse(); } @@ -1098,16 +1014,16 @@ public static com.google.pubsub.v1.ListSchemasResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSchemasResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSchemasResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSchemasResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSchemasResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1122,4 +1038,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ListSchemasResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java similarity index 63% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java index 3ee2015b1..aaa6844d5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto package com.google.pubsub.v1; -public interface ListSchemasResponseOrBuilder - extends +public interface ListSchemasResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSchemasResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resulting schemas.
    * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - java.util.List getSchemasList(); + java.util.List + getSchemasList(); /** - * - * *
    * The resulting schemas.
    * 
@@ -44,8 +25,6 @@ public interface ListSchemasResponseOrBuilder */ com.google.pubsub.v1.Schema getSchemas(int index); /** - * - * *
    * The resulting schemas.
    * 
@@ -54,50 +33,43 @@ public interface ListSchemasResponseOrBuilder */ int getSchemasCount(); /** - * - * *
    * The resulting schemas.
    * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - java.util.List getSchemasOrBuilderList(); + java.util.List + getSchemasOrBuilderList(); /** - * - * *
    * The resulting schemas.
    * 
* * repeated .google.pubsub.v1.Schema schemas = 1; */ - com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder(int index); + com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder( + int index); /** - * - * *
    * If not empty, indicates that there may be more schemas that match the
    * request; this value should be passed in a new `ListSchemasRequest`.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If not empty, indicates that there may be more schemas that match the
    * request; this value should be passed in a new `ListSchemasRequest`.
    * 
* * 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-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java similarity index 68% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index 72ce020e1..b83611e14 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Request for the `ListSnapshots` method.
  * 
* * Protobuf type {@code google.pubsub.v1.ListSnapshotsRequest} */ -public final class ListSnapshotsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSnapshotsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSnapshotsRequest) ListSnapshotsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSnapshotsRequest.newBuilder() to construct. private ListSnapshotsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSnapshotsRequest() { project_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListSnapshotsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSnapshotsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListSnapshotsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,73 +54,64 @@ private ListSnapshotsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - project_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + project_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSnapshotsRequest.class, - com.google.pubsub.v1.ListSnapshotsRequest.Builder.class); + com.google.pubsub.v1.ListSnapshotsRequest.class, com.google.pubsub.v1.ListSnapshotsRequest.Builder.class); } public static final int PROJECT_FIELD_NUMBER = 1; private volatile java.lang.Object project_; /** - * - * *
    * Required. The name of the project in which to list snapshots.
    * Format is `projects/{project-id}`.
    * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ @java.lang.Override @@ -146,32 +120,30 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** - * - * *
    * Required. The name of the project in which to list snapshots.
    * Format is `projects/{project-id}`.
    * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -182,14 +154,11 @@ public com.google.protobuf.ByteString getProjectBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Maximum number of snapshots to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -200,8 +169,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListSnapshotsResponse`; indicates that this
    * is a continuation of a prior `ListSnapshots` call, and that the system
@@ -209,7 +176,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -218,15 +184,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; } } /** - * - * *
    * The value returned by the last `ListSnapshotsResponse`; indicates that this
    * is a continuation of a prior `ListSnapshots` call, and that the system
@@ -234,15 +199,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 { @@ -251,7 +217,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,14 +228,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -282,13 +248,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getProjectBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); @@ -299,17 +266,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.pubsub.v1.ListSnapshotsRequest)) { return super.equals(obj); } - com.google.pubsub.v1.ListSnapshotsRequest other = - (com.google.pubsub.v1.ListSnapshotsRequest) obj; + com.google.pubsub.v1.ListSnapshotsRequest other = (com.google.pubsub.v1.ListSnapshotsRequest) obj; - if (!getProject().equals(other.getProject())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getProject() + .equals(other.getProject())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -332,127 +301,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ListSnapshotsRequest 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.pubsub.v1.ListSnapshotsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.pubsub.v1.ListSnapshotsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ListSnapshotsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.ListSnapshotsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.ListSnapshotsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 the `ListSnapshots` method.
    * 
* * Protobuf type {@code google.pubsub.v1.ListSnapshotsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSnapshotsRequest) com.google.pubsub.v1.ListSnapshotsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSnapshotsRequest.class, - com.google.pubsub.v1.ListSnapshotsRequest.Builder.class); + com.google.pubsub.v1.ListSnapshotsRequest.class, com.google.pubsub.v1.ListSnapshotsRequest.Builder.class); } // Construct using com.google.pubsub.v1.ListSnapshotsRequest.newBuilder() @@ -460,15 +420,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -482,9 +443,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; } @java.lang.Override @@ -503,8 +464,7 @@ public com.google.pubsub.v1.ListSnapshotsRequest build() { @java.lang.Override public com.google.pubsub.v1.ListSnapshotsRequest buildPartial() { - com.google.pubsub.v1.ListSnapshotsRequest result = - new com.google.pubsub.v1.ListSnapshotsRequest(this); + com.google.pubsub.v1.ListSnapshotsRequest result = new com.google.pubsub.v1.ListSnapshotsRequest(this); result.project_ = project_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -516,39 +476,38 @@ public com.google.pubsub.v1.ListSnapshotsRequest 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.pubsub.v1.ListSnapshotsRequest) { - return mergeFrom((com.google.pubsub.v1.ListSnapshotsRequest) other); + return mergeFrom((com.google.pubsub.v1.ListSnapshotsRequest)other); } else { super.mergeFrom(other); return this; @@ -599,23 +558,19 @@ public Builder mergeFrom( private java.lang.Object project_ = ""; /** - * - * *
      * Required. The name of the project in which to list snapshots.
      * Format is `projects/{project-id}`.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -624,24 +579,21 @@ public java.lang.String getProject() { } } /** - * - * *
      * Required. The name of the project in which to list snapshots.
      * Format is `projects/{project-id}`.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -649,85 +601,69 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
      * Required. The name of the project in which to list snapshots.
      * Format is `projects/{project-id}`.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject(java.lang.String value) { + public Builder setProject( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the project in which to list snapshots.
      * Format is `projects/{project-id}`.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearProject() { - + project_ = getDefaultInstance().getProject(); onChanged(); return this; } /** - * - * *
      * Required. The name of the project in which to list snapshots.
      * Format is `projects/{project-id}`.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of snapshots to return.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -735,36 +671,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of snapshots to return.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of snapshots to return.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -772,8 +702,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListSnapshotsResponse`; indicates that this
      * is a continuation of a prior `ListSnapshots` call, and that the system
@@ -781,13 +709,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 +724,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListSnapshotsResponse`; indicates that this
      * is a continuation of a prior `ListSnapshots` call, and that the system
@@ -805,14 +731,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -820,8 +747,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListSnapshotsResponse`; indicates that this
      * is a continuation of a prior `ListSnapshots` call, and that the system
@@ -829,22 +754,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListSnapshotsResponse`; indicates that this
      * is a continuation of a prior `ListSnapshots` call, and that the system
@@ -852,18 +775,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListSnapshotsResponse`; indicates that this
      * is a continuation of a prior `ListSnapshots` call, and that the system
@@ -871,23 +791,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; 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); } @@ -897,12 +817,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSnapshotsRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSnapshotsRequest) private static final com.google.pubsub.v1.ListSnapshotsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ListSnapshotsRequest(); } @@ -911,16 +831,16 @@ public static com.google.pubsub.v1.ListSnapshotsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSnapshotsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSnapshotsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSnapshotsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSnapshotsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -935,4 +855,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ListSnapshotsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index c4a67ace0..2a859ca35 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -1,75 +1,45 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; -public interface ListSnapshotsRequestOrBuilder - extends +public interface ListSnapshotsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSnapshotsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the project in which to list snapshots.
    * Format is `projects/{project-id}`.
    * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ java.lang.String getProject(); /** - * - * *
    * Required. The name of the project in which to list snapshots.
    * Format is `projects/{project-id}`.
    * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - com.google.protobuf.ByteString getProjectBytes(); + com.google.protobuf.ByteString + getProjectBytes(); /** - * - * *
    * Maximum number of snapshots to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value returned by the last `ListSnapshotsResponse`; indicates that this
    * is a continuation of a prior `ListSnapshots` call, and that the system
@@ -77,13 +47,10 @@ public interface ListSnapshotsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListSnapshotsResponse`; indicates that this
    * is a continuation of a prior `ListSnapshots` call, and that the system
@@ -91,8 +58,8 @@ public interface ListSnapshotsRequestOrBuilder
    * 
* * 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-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java similarity index 73% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index e355e42f6..c44625ba5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Response for the `ListSnapshots` method.
  * 
* * Protobuf type {@code google.pubsub.v1.ListSnapshotsResponse} */ -public final class ListSnapshotsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSnapshotsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSnapshotsResponse) ListSnapshotsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSnapshotsResponse.newBuilder() to construct. private ListSnapshotsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSnapshotsResponse() { snapshots_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListSnapshotsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSnapshotsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListSnapshotsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,36 +55,35 @@ private ListSnapshotsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - snapshots_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - snapshots_.add( - input.readMessage(com.google.pubsub.v1.Snapshot.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + snapshots_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + snapshots_.add( + input.readMessage(com.google.pubsub.v1.Snapshot.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { snapshots_ = java.util.Collections.unmodifiableList(snapshots_); @@ -110,27 +92,22 @@ private ListSnapshotsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSnapshotsResponse.class, - com.google.pubsub.v1.ListSnapshotsResponse.Builder.class); + com.google.pubsub.v1.ListSnapshotsResponse.class, com.google.pubsub.v1.ListSnapshotsResponse.Builder.class); } public static final int SNAPSHOTS_FIELD_NUMBER = 1; private java.util.List snapshots_; /** - * - * *
    * The resulting snapshots.
    * 
@@ -142,8 +119,6 @@ public java.util.List getSnapshotsList() { return snapshots_; } /** - * - * *
    * The resulting snapshots.
    * 
@@ -151,13 +126,11 @@ public java.util.List getSnapshotsList() { * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSnapshotsOrBuilderList() { return snapshots_; } /** - * - * *
    * The resulting snapshots.
    * 
@@ -169,8 +142,6 @@ public int getSnapshotsCount() { return snapshots_.size(); } /** - * - * *
    * The resulting snapshots.
    * 
@@ -182,8 +153,6 @@ public com.google.pubsub.v1.Snapshot getSnapshots(int index) { return snapshots_.get(index); } /** - * - * *
    * The resulting snapshots.
    * 
@@ -191,22 +160,20 @@ public com.google.pubsub.v1.Snapshot getSnapshots(int index) { * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ @java.lang.Override - public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { + public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder( + int index) { return snapshots_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * If not empty, indicates that there may be more snapshot that match the
    * request; this value should be passed in a new `ListSnapshotsRequest`.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -215,30 +182,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; } } /** - * - * *
    * If not empty, indicates that there may be more snapshot that match the
    * request; this value should be passed in a new `ListSnapshotsRequest`.
    * 
* * 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 { @@ -247,7 +214,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,11 +225,12 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < snapshots_.size(); i++) { output.writeMessage(1, snapshots_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -276,9 +243,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < snapshots_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, snapshots_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, snapshots_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); @@ -289,16 +257,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.pubsub.v1.ListSnapshotsResponse)) { return super.equals(obj); } - com.google.pubsub.v1.ListSnapshotsResponse other = - (com.google.pubsub.v1.ListSnapshotsResponse) obj; + com.google.pubsub.v1.ListSnapshotsResponse other = (com.google.pubsub.v1.ListSnapshotsResponse) obj; - if (!getSnapshotsList().equals(other.getSnapshotsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getSnapshotsList() + .equals(other.getSnapshotsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -321,127 +290,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ListSnapshotsResponse 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.pubsub.v1.ListSnapshotsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.pubsub.v1.ListSnapshotsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ListSnapshotsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.ListSnapshotsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.ListSnapshotsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 the `ListSnapshots` method.
    * 
* * Protobuf type {@code google.pubsub.v1.ListSnapshotsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSnapshotsResponse) com.google.pubsub.v1.ListSnapshotsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSnapshotsResponse.class, - com.google.pubsub.v1.ListSnapshotsResponse.Builder.class); + com.google.pubsub.v1.ListSnapshotsResponse.class, com.google.pubsub.v1.ListSnapshotsResponse.Builder.class); } // Construct using com.google.pubsub.v1.ListSnapshotsResponse.newBuilder() @@ -449,17 +409,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) { getSnapshotsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -475,9 +435,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; } @java.lang.Override @@ -496,8 +456,7 @@ public com.google.pubsub.v1.ListSnapshotsResponse build() { @java.lang.Override public com.google.pubsub.v1.ListSnapshotsResponse buildPartial() { - com.google.pubsub.v1.ListSnapshotsResponse result = - new com.google.pubsub.v1.ListSnapshotsResponse(this); + com.google.pubsub.v1.ListSnapshotsResponse result = new com.google.pubsub.v1.ListSnapshotsResponse(this); int from_bitField0_ = bitField0_; if (snapshotsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -517,39 +476,38 @@ public com.google.pubsub.v1.ListSnapshotsResponse 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.pubsub.v1.ListSnapshotsResponse) { - return mergeFrom((com.google.pubsub.v1.ListSnapshotsResponse) other); + return mergeFrom((com.google.pubsub.v1.ListSnapshotsResponse)other); } else { super.mergeFrom(other); return this; @@ -576,10 +534,9 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSnapshotsResponse other) { snapshotsBuilder_ = null; snapshots_ = other.snapshots_; bitField0_ = (bitField0_ & ~0x00000001); - snapshotsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSnapshotsFieldBuilder() - : null; + snapshotsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSnapshotsFieldBuilder() : null; } else { snapshotsBuilder_.addAllMessages(other.snapshots_); } @@ -617,28 +574,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List snapshots_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSnapshotsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { snapshots_ = new java.util.ArrayList(snapshots_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Snapshot, - com.google.pubsub.v1.Snapshot.Builder, - com.google.pubsub.v1.SnapshotOrBuilder> - snapshotsBuilder_; + com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder> snapshotsBuilder_; /** - * - * *
      * The resulting snapshots.
      * 
@@ -653,8 +603,6 @@ public java.util.List getSnapshotsList() { } } /** - * - * *
      * The resulting snapshots.
      * 
@@ -669,8 +617,6 @@ public int getSnapshotsCount() { } } /** - * - * *
      * The resulting snapshots.
      * 
@@ -685,15 +631,14 @@ public com.google.pubsub.v1.Snapshot getSnapshots(int index) { } } /** - * - * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - public Builder setSnapshots(int index, com.google.pubsub.v1.Snapshot value) { + public Builder setSnapshots( + int index, com.google.pubsub.v1.Snapshot value) { if (snapshotsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -707,15 +652,14 @@ public Builder setSnapshots(int index, com.google.pubsub.v1.Snapshot value) { return this; } /** - * - * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - public Builder setSnapshots(int index, com.google.pubsub.v1.Snapshot.Builder builderForValue) { + public Builder setSnapshots( + int index, com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); snapshots_.set(index, builderForValue.build()); @@ -726,8 +670,6 @@ public Builder setSnapshots(int index, com.google.pubsub.v1.Snapshot.Builder bui return this; } /** - * - * *
      * The resulting snapshots.
      * 
@@ -748,15 +690,14 @@ public Builder addSnapshots(com.google.pubsub.v1.Snapshot value) { return this; } /** - * - * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - public Builder addSnapshots(int index, com.google.pubsub.v1.Snapshot value) { + public Builder addSnapshots( + int index, com.google.pubsub.v1.Snapshot value) { if (snapshotsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -770,15 +711,14 @@ public Builder addSnapshots(int index, com.google.pubsub.v1.Snapshot value) { return this; } /** - * - * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - public Builder addSnapshots(com.google.pubsub.v1.Snapshot.Builder builderForValue) { + public Builder addSnapshots( + com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); snapshots_.add(builderForValue.build()); @@ -789,15 +729,14 @@ public Builder addSnapshots(com.google.pubsub.v1.Snapshot.Builder builderForValu return this; } /** - * - * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - public Builder addSnapshots(int index, com.google.pubsub.v1.Snapshot.Builder builderForValue) { + public Builder addSnapshots( + int index, com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); snapshots_.add(index, builderForValue.build()); @@ -808,8 +747,6 @@ public Builder addSnapshots(int index, com.google.pubsub.v1.Snapshot.Builder bui return this; } /** - * - * *
      * The resulting snapshots.
      * 
@@ -820,7 +757,8 @@ public Builder addAllSnapshots( java.lang.Iterable values) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, snapshots_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, snapshots_); onChanged(); } else { snapshotsBuilder_.addAllMessages(values); @@ -828,8 +766,6 @@ public Builder addAllSnapshots( return this; } /** - * - * *
      * The resulting snapshots.
      * 
@@ -847,8 +783,6 @@ public Builder clearSnapshots() { return this; } /** - * - * *
      * The resulting snapshots.
      * 
@@ -866,44 +800,39 @@ public Builder removeSnapshots(int index) { return this; } /** - * - * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - public com.google.pubsub.v1.Snapshot.Builder getSnapshotsBuilder(int index) { + public com.google.pubsub.v1.Snapshot.Builder getSnapshotsBuilder( + int index) { return getSnapshotsFieldBuilder().getBuilder(index); } /** - * - * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { + public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder( + int index) { if (snapshotsBuilder_ == null) { - return snapshots_.get(index); - } else { + return snapshots_.get(index); } else { return snapshotsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - public java.util.List - getSnapshotsOrBuilderList() { + public java.util.List + getSnapshotsOrBuilderList() { if (snapshotsBuilder_ != null) { return snapshotsBuilder_.getMessageOrBuilderList(); } else { @@ -911,8 +840,6 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { } } /** - * - * *
      * The resulting snapshots.
      * 
@@ -920,47 +847,42 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder() { - return getSnapshotsFieldBuilder() - .addBuilder(com.google.pubsub.v1.Snapshot.getDefaultInstance()); + return getSnapshotsFieldBuilder().addBuilder( + com.google.pubsub.v1.Snapshot.getDefaultInstance()); } /** - * - * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder(int index) { - return getSnapshotsFieldBuilder() - .addBuilder(index, com.google.pubsub.v1.Snapshot.getDefaultInstance()); + public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder( + int index) { + return getSnapshotsFieldBuilder().addBuilder( + index, com.google.pubsub.v1.Snapshot.getDefaultInstance()); } /** - * - * *
      * The resulting snapshots.
      * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - public java.util.List getSnapshotsBuilderList() { + public java.util.List + getSnapshotsBuilderList() { return getSnapshotsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Snapshot, - com.google.pubsub.v1.Snapshot.Builder, - com.google.pubsub.v1.SnapshotOrBuilder> + com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder> getSnapshotsFieldBuilder() { if (snapshotsBuilder_ == null) { - snapshotsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Snapshot, - com.google.pubsub.v1.Snapshot.Builder, - com.google.pubsub.v1.SnapshotOrBuilder>( - snapshots_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + snapshotsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder>( + snapshots_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); snapshots_ = null; } return snapshotsBuilder_; @@ -968,21 +890,19 @@ public java.util.List getSnapshotsBuilder private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If not empty, indicates that there may be more snapshot that match the
      * request; this value should be passed in a new `ListSnapshotsRequest`.
      * 
* * 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; @@ -991,22 +911,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If not empty, indicates that there may be more snapshot that match the
      * request; this value should be passed in a new `ListSnapshotsRequest`.
      * 
* * 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 { @@ -1014,71 +933,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If not empty, indicates that there may be more snapshot that match the
      * request; this value should be passed in a new `ListSnapshotsRequest`.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * If not empty, indicates that there may be more snapshot that match the
      * request; this value should be passed in a new `ListSnapshotsRequest`.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * If not empty, indicates that there may be more snapshot that match the
      * request; this value should be passed in a new `ListSnapshotsRequest`.
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; 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); } @@ -1088,12 +1000,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSnapshotsResponse) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSnapshotsResponse) private static final com.google.pubsub.v1.ListSnapshotsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ListSnapshotsResponse(); } @@ -1102,16 +1014,16 @@ public static com.google.pubsub.v1.ListSnapshotsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSnapshotsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSnapshotsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSnapshotsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSnapshotsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1126,4 +1038,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ListSnapshotsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java similarity index 63% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java index bbbf2955d..2f9eb5709 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; -public interface ListSnapshotsResponseOrBuilder - extends +public interface ListSnapshotsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSnapshotsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resulting snapshots.
    * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - java.util.List getSnapshotsList(); + java.util.List + getSnapshotsList(); /** - * - * *
    * The resulting snapshots.
    * 
@@ -44,8 +25,6 @@ public interface ListSnapshotsResponseOrBuilder */ com.google.pubsub.v1.Snapshot getSnapshots(int index); /** - * - * *
    * The resulting snapshots.
    * 
@@ -54,50 +33,43 @@ public interface ListSnapshotsResponseOrBuilder */ int getSnapshotsCount(); /** - * - * *
    * The resulting snapshots.
    * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - java.util.List getSnapshotsOrBuilderList(); + java.util.List + getSnapshotsOrBuilderList(); /** - * - * *
    * The resulting snapshots.
    * 
* * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index); + com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder( + int index); /** - * - * *
    * If not empty, indicates that there may be more snapshot that match the
    * request; this value should be passed in a new `ListSnapshotsRequest`.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If not empty, indicates that there may be more snapshot that match the
    * request; this value should be passed in a new `ListSnapshotsRequest`.
    * 
* * 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-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java similarity index 69% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index a1484c696..a7dd14ba1 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Request for the `ListSubscriptions` method.
  * 
* * Protobuf type {@code google.pubsub.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.pubsub.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() { project_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListSubscriptionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSubscriptionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListSubscriptionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,73 +54,64 @@ private ListSubscriptionsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - project_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + project_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSubscriptionsRequest.class, - com.google.pubsub.v1.ListSubscriptionsRequest.Builder.class); + com.google.pubsub.v1.ListSubscriptionsRequest.class, com.google.pubsub.v1.ListSubscriptionsRequest.Builder.class); } public static final int PROJECT_FIELD_NUMBER = 1; private volatile java.lang.Object project_; /** - * - * *
    * Required. The name of the project in which to list subscriptions.
    * Format is `projects/{project-id}`.
    * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ @java.lang.Override @@ -146,32 +120,30 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** - * - * *
    * Required. The name of the project in which to list subscriptions.
    * Format is `projects/{project-id}`.
    * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -182,14 +154,11 @@ public com.google.protobuf.ByteString getProjectBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Maximum number of subscriptions to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -200,8 +169,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListSubscriptionsResponse`; indicates that
    * this is a continuation of a prior `ListSubscriptions` call, and that the
@@ -209,7 +176,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -218,15 +184,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; } } /** - * - * *
    * The value returned by the last `ListSubscriptionsResponse`; indicates that
    * this is a continuation of a prior `ListSubscriptions` call, and that the
@@ -234,15 +199,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 { @@ -251,7 +217,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,14 +228,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -282,13 +248,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getProjectBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); @@ -299,17 +266,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.pubsub.v1.ListSubscriptionsRequest)) { return super.equals(obj); } - com.google.pubsub.v1.ListSubscriptionsRequest other = - (com.google.pubsub.v1.ListSubscriptionsRequest) obj; + com.google.pubsub.v1.ListSubscriptionsRequest other = (com.google.pubsub.v1.ListSubscriptionsRequest) obj; - if (!getProject().equals(other.getProject())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getProject() + .equals(other.getProject())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -332,127 +301,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.ListSubscriptionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.ListSubscriptionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.ListSubscriptionsRequest 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.pubsub.v1.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.pubsub.v1.ListSubscriptionsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ListSubscriptionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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 the `ListSubscriptions` method.
    * 
* * Protobuf type {@code google.pubsub.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.pubsub.v1.ListSubscriptionsRequest) com.google.pubsub.v1.ListSubscriptionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSubscriptionsRequest.class, - com.google.pubsub.v1.ListSubscriptionsRequest.Builder.class); + com.google.pubsub.v1.ListSubscriptionsRequest.class, com.google.pubsub.v1.ListSubscriptionsRequest.Builder.class); } // Construct using com.google.pubsub.v1.ListSubscriptionsRequest.newBuilder() @@ -460,15 +420,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -482,9 +443,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; } @java.lang.Override @@ -503,8 +464,7 @@ public com.google.pubsub.v1.ListSubscriptionsRequest build() { @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsRequest buildPartial() { - com.google.pubsub.v1.ListSubscriptionsRequest result = - new com.google.pubsub.v1.ListSubscriptionsRequest(this); + com.google.pubsub.v1.ListSubscriptionsRequest result = new com.google.pubsub.v1.ListSubscriptionsRequest(this); result.project_ = project_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -516,39 +476,38 @@ public com.google.pubsub.v1.ListSubscriptionsRequest 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.pubsub.v1.ListSubscriptionsRequest) { - return mergeFrom((com.google.pubsub.v1.ListSubscriptionsRequest) other); + return mergeFrom((com.google.pubsub.v1.ListSubscriptionsRequest)other); } else { super.mergeFrom(other); return this; @@ -599,23 +558,19 @@ public Builder mergeFrom( private java.lang.Object project_ = ""; /** - * - * *
      * Required. The name of the project in which to list subscriptions.
      * Format is `projects/{project-id}`.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -624,24 +579,21 @@ public java.lang.String getProject() { } } /** - * - * *
      * Required. The name of the project in which to list subscriptions.
      * Format is `projects/{project-id}`.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -649,85 +601,69 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
      * Required. The name of the project in which to list subscriptions.
      * Format is `projects/{project-id}`.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject(java.lang.String value) { + public Builder setProject( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the project in which to list subscriptions.
      * Format is `projects/{project-id}`.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearProject() { - + project_ = getDefaultInstance().getProject(); onChanged(); return this; } /** - * - * *
      * Required. The name of the project in which to list subscriptions.
      * Format is `projects/{project-id}`.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of subscriptions to return.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -735,36 +671,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of subscriptions to return.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of subscriptions to return.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -772,8 +702,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListSubscriptionsResponse`; indicates that
      * this is a continuation of a prior `ListSubscriptions` call, and that the
@@ -781,13 +709,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 +724,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListSubscriptionsResponse`; indicates that
      * this is a continuation of a prior `ListSubscriptions` call, and that the
@@ -805,14 +731,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -820,8 +747,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListSubscriptionsResponse`; indicates that
      * this is a continuation of a prior `ListSubscriptions` call, and that the
@@ -829,22 +754,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListSubscriptionsResponse`; indicates that
      * this is a continuation of a prior `ListSubscriptions` call, and that the
@@ -852,18 +775,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListSubscriptionsResponse`; indicates that
      * this is a continuation of a prior `ListSubscriptions` call, and that the
@@ -871,23 +791,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; 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); } @@ -897,12 +817,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSubscriptionsRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSubscriptionsRequest) private static final com.google.pubsub.v1.ListSubscriptionsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ListSubscriptionsRequest(); } @@ -911,16 +831,16 @@ public static com.google.pubsub.v1.ListSubscriptionsRequest getDefaultInstance() 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 { - return new ListSubscriptionsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListSubscriptionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -935,4 +855,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ListSubscriptionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index 73b1fac51..18b75f777 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -1,75 +1,45 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; -public interface ListSubscriptionsRequestOrBuilder - extends +public interface ListSubscriptionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSubscriptionsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the project in which to list subscriptions.
    * Format is `projects/{project-id}`.
    * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ java.lang.String getProject(); /** - * - * *
    * Required. The name of the project in which to list subscriptions.
    * Format is `projects/{project-id}`.
    * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - com.google.protobuf.ByteString getProjectBytes(); + com.google.protobuf.ByteString + getProjectBytes(); /** - * - * *
    * Maximum number of subscriptions to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value returned by the last `ListSubscriptionsResponse`; indicates that
    * this is a continuation of a prior `ListSubscriptions` call, and that the
@@ -77,13 +47,10 @@ public interface ListSubscriptionsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListSubscriptionsResponse`; indicates that
    * this is a continuation of a prior `ListSubscriptions` call, and that the
@@ -91,8 +58,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-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java similarity index 75% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index 03b7ba951..9205c700d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Response for the `ListSubscriptions` method.
  * 
* * Protobuf type {@code google.pubsub.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.pubsub.v1.ListSubscriptionsResponse) ListSubscriptionsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSubscriptionsResponse.newBuilder() to construct. private ListSubscriptionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSubscriptionsResponse() { subscriptions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListSubscriptionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSubscriptionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListSubscriptionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,36 +55,35 @@ private ListSubscriptionsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - subscriptions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - subscriptions_.add( - input.readMessage(com.google.pubsub.v1.Subscription.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + subscriptions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + subscriptions_.add( + input.readMessage(com.google.pubsub.v1.Subscription.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { subscriptions_ = java.util.Collections.unmodifiableList(subscriptions_); @@ -110,27 +92,22 @@ private ListSubscriptionsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSubscriptionsResponse.class, - com.google.pubsub.v1.ListSubscriptionsResponse.Builder.class); + com.google.pubsub.v1.ListSubscriptionsResponse.class, com.google.pubsub.v1.ListSubscriptionsResponse.Builder.class); } public static final int SUBSCRIPTIONS_FIELD_NUMBER = 1; private java.util.List subscriptions_; /** - * - * *
    * The subscriptions that match the request.
    * 
@@ -142,8 +119,6 @@ public java.util.List getSubscriptionsList() return subscriptions_; } /** - * - * *
    * The subscriptions that match the request.
    * 
@@ -151,13 +126,11 @@ public java.util.List getSubscriptionsList() * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSubscriptionsOrBuilderList() { return subscriptions_; } /** - * - * *
    * The subscriptions that match the request.
    * 
@@ -169,8 +142,6 @@ public int getSubscriptionsCount() { return subscriptions_.size(); } /** - * - * *
    * The subscriptions that match the request.
    * 
@@ -182,8 +153,6 @@ public com.google.pubsub.v1.Subscription getSubscriptions(int index) { return subscriptions_.get(index); } /** - * - * *
    * The subscriptions that match the request.
    * 
@@ -191,15 +160,14 @@ public com.google.pubsub.v1.Subscription getSubscriptions(int index) { * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ @java.lang.Override - public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int index) { + public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder( + int index) { return subscriptions_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * If not empty, indicates that there may be more subscriptions that match
    * the request; this value should be passed in a new
@@ -207,7 +175,6 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -216,15 +183,14 @@ 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; } } /** - * - * *
    * If not empty, indicates that there may be more subscriptions that match
    * the request; this value should be passed in a new
@@ -232,15 +198,16 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -249,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,11 +227,12 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -278,9 +245,10 @@ 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 (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); @@ -291,16 +259,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.pubsub.v1.ListSubscriptionsResponse)) { return super.equals(obj); } - com.google.pubsub.v1.ListSubscriptionsResponse other = - (com.google.pubsub.v1.ListSubscriptionsResponse) obj; + com.google.pubsub.v1.ListSubscriptionsResponse other = (com.google.pubsub.v1.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -323,127 +292,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.ListSubscriptionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.ListSubscriptionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.ListSubscriptionsResponse 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.pubsub.v1.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.pubsub.v1.ListSubscriptionsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ListSubscriptionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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 the `ListSubscriptions` method.
    * 
* * Protobuf type {@code google.pubsub.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.pubsub.v1.ListSubscriptionsResponse) com.google.pubsub.v1.ListSubscriptionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSubscriptionsResponse.class, - com.google.pubsub.v1.ListSubscriptionsResponse.Builder.class); + com.google.pubsub.v1.ListSubscriptionsResponse.class, com.google.pubsub.v1.ListSubscriptionsResponse.Builder.class); } // Construct using com.google.pubsub.v1.ListSubscriptionsResponse.newBuilder() @@ -451,17 +411,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) { getSubscriptionsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -477,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; } @java.lang.Override @@ -498,8 +458,7 @@ public com.google.pubsub.v1.ListSubscriptionsResponse build() { @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsResponse buildPartial() { - com.google.pubsub.v1.ListSubscriptionsResponse result = - new com.google.pubsub.v1.ListSubscriptionsResponse(this); + com.google.pubsub.v1.ListSubscriptionsResponse result = new com.google.pubsub.v1.ListSubscriptionsResponse(this); int from_bitField0_ = bitField0_; if (subscriptionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -519,39 +478,38 @@ public com.google.pubsub.v1.ListSubscriptionsResponse 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.pubsub.v1.ListSubscriptionsResponse) { - return mergeFrom((com.google.pubsub.v1.ListSubscriptionsResponse) other); + return mergeFrom((com.google.pubsub.v1.ListSubscriptionsResponse)other); } else { super.mergeFrom(other); return this; @@ -578,10 +536,9 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSubscriptionsResponse other) { 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_); } @@ -619,28 +576,21 @@ public Builder mergeFrom( } 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_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Subscription, - com.google.pubsub.v1.Subscription.Builder, - com.google.pubsub.v1.SubscriptionOrBuilder> - subscriptionsBuilder_; + com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder> subscriptionsBuilder_; /** - * - * *
      * The subscriptions that match the request.
      * 
@@ -655,8 +605,6 @@ public java.util.List getSubscriptionsList() } } /** - * - * *
      * The subscriptions that match the request.
      * 
@@ -671,8 +619,6 @@ public int getSubscriptionsCount() { } } /** - * - * *
      * The subscriptions that match the request.
      * 
@@ -687,15 +633,14 @@ public com.google.pubsub.v1.Subscription getSubscriptions(int index) { } } /** - * - * *
      * The subscriptions that match the request.
      * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - public Builder setSubscriptions(int index, com.google.pubsub.v1.Subscription value) { + public Builder setSubscriptions( + int index, com.google.pubsub.v1.Subscription value) { if (subscriptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -709,8 +654,6 @@ public Builder setSubscriptions(int index, com.google.pubsub.v1.Subscription val return this; } /** - * - * *
      * The subscriptions that match the request.
      * 
@@ -729,8 +672,6 @@ public Builder setSubscriptions( return this; } /** - * - * *
      * The subscriptions that match the request.
      * 
@@ -751,15 +692,14 @@ public Builder addSubscriptions(com.google.pubsub.v1.Subscription value) { return this; } /** - * - * *
      * The subscriptions that match the request.
      * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - public Builder addSubscriptions(int index, com.google.pubsub.v1.Subscription value) { + public Builder addSubscriptions( + int index, com.google.pubsub.v1.Subscription value) { if (subscriptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -773,15 +713,14 @@ public Builder addSubscriptions(int index, com.google.pubsub.v1.Subscription val return this; } /** - * - * *
      * The subscriptions that match the request.
      * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - public Builder addSubscriptions(com.google.pubsub.v1.Subscription.Builder builderForValue) { + public Builder addSubscriptions( + com.google.pubsub.v1.Subscription.Builder builderForValue) { if (subscriptionsBuilder_ == null) { ensureSubscriptionsIsMutable(); subscriptions_.add(builderForValue.build()); @@ -792,8 +731,6 @@ public Builder addSubscriptions(com.google.pubsub.v1.Subscription.Builder builde return this; } /** - * - * *
      * The subscriptions that match the request.
      * 
@@ -812,8 +749,6 @@ public Builder addSubscriptions( return this; } /** - * - * *
      * The subscriptions that match the request.
      * 
@@ -824,7 +759,8 @@ public Builder addAllSubscriptions( java.lang.Iterable values) { if (subscriptionsBuilder_ == null) { ensureSubscriptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subscriptions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subscriptions_); onChanged(); } else { subscriptionsBuilder_.addAllMessages(values); @@ -832,8 +768,6 @@ public Builder addAllSubscriptions( return this; } /** - * - * *
      * The subscriptions that match the request.
      * 
@@ -851,8 +785,6 @@ public Builder clearSubscriptions() { return this; } /** - * - * *
      * The subscriptions that match the request.
      * 
@@ -870,44 +802,39 @@ public Builder removeSubscriptions(int index) { return this; } /** - * - * *
      * The subscriptions that match the request.
      * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - public com.google.pubsub.v1.Subscription.Builder getSubscriptionsBuilder(int index) { + public com.google.pubsub.v1.Subscription.Builder getSubscriptionsBuilder( + int index) { return getSubscriptionsFieldBuilder().getBuilder(index); } /** - * - * *
      * The subscriptions that match the request.
      * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int index) { + public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder( + int index) { if (subscriptionsBuilder_ == null) { - return subscriptions_.get(index); - } else { + return subscriptions_.get(index); } else { return subscriptionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The subscriptions that match the request.
      * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - public java.util.List - getSubscriptionsOrBuilderList() { + public java.util.List + getSubscriptionsOrBuilderList() { if (subscriptionsBuilder_ != null) { return subscriptionsBuilder_.getMessageOrBuilderList(); } else { @@ -915,8 +842,6 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int } } /** - * - * *
      * The subscriptions that match the request.
      * 
@@ -924,46 +849,38 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder() { - return getSubscriptionsFieldBuilder() - .addBuilder(com.google.pubsub.v1.Subscription.getDefaultInstance()); + return getSubscriptionsFieldBuilder().addBuilder( + com.google.pubsub.v1.Subscription.getDefaultInstance()); } /** - * - * *
      * The subscriptions that match the request.
      * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder(int index) { - return getSubscriptionsFieldBuilder() - .addBuilder(index, com.google.pubsub.v1.Subscription.getDefaultInstance()); + public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder( + int index) { + return getSubscriptionsFieldBuilder().addBuilder( + index, com.google.pubsub.v1.Subscription.getDefaultInstance()); } /** - * - * *
      * The subscriptions that match the request.
      * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - public java.util.List getSubscriptionsBuilderList() { + public java.util.List + getSubscriptionsBuilderList() { return getSubscriptionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Subscription, - com.google.pubsub.v1.Subscription.Builder, - com.google.pubsub.v1.SubscriptionOrBuilder> + com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder> getSubscriptionsFieldBuilder() { if (subscriptionsBuilder_ == null) { - subscriptionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Subscription, - com.google.pubsub.v1.Subscription.Builder, - com.google.pubsub.v1.SubscriptionOrBuilder>( + subscriptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder>( subscriptions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -975,8 +892,6 @@ public java.util.List getSubscription private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -984,13 +899,13 @@ public java.util.List getSubscription
      * 
* * 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; @@ -999,8 +914,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -1008,14 +921,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1023,8 +937,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -1032,22 +944,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -1055,18 +965,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -1074,23 +981,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1100,12 +1007,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSubscriptionsResponse) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSubscriptionsResponse) private static final com.google.pubsub.v1.ListSubscriptionsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ListSubscriptionsResponse(); } @@ -1114,16 +1021,16 @@ public static com.google.pubsub.v1.ListSubscriptionsResponse getDefaultInstance( 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 { - return new ListSubscriptionsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListSubscriptionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1138,4 +1045,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.pubsub.v1.ListSubscriptionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java index 1dcf23dd0..acc6e8f80 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; -public interface ListSubscriptionsResponseOrBuilder - extends +public interface ListSubscriptionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSubscriptionsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The subscriptions that match the request.
    * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - java.util.List getSubscriptionsList(); + java.util.List + getSubscriptionsList(); /** - * - * *
    * The subscriptions that match the request.
    * 
@@ -44,8 +25,6 @@ public interface ListSubscriptionsResponseOrBuilder */ com.google.pubsub.v1.Subscription getSubscriptions(int index); /** - * - * *
    * The subscriptions that match the request.
    * 
@@ -54,30 +33,25 @@ public interface ListSubscriptionsResponseOrBuilder */ int getSubscriptionsCount(); /** - * - * *
    * The subscriptions that match the request.
    * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - java.util.List + java.util.List getSubscriptionsOrBuilderList(); /** - * - * *
    * The subscriptions that match the request.
    * 
* * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int index); + com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder( + int index); /** - * - * *
    * If not empty, indicates that there may be more subscriptions that match
    * the request; this value should be passed in a new
@@ -85,13 +59,10 @@ public interface ListSubscriptionsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If not empty, indicates that there may be more subscriptions that match
    * the request; this value should be passed in a new
@@ -99,8 +70,8 @@ public interface ListSubscriptionsResponseOrBuilder
    * 
* * 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-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java similarity index 69% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index 2edd5bdc8..be1207fda 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Request for the `ListTopicSnapshots` method.
  * 
* * Protobuf type {@code google.pubsub.v1.ListTopicSnapshotsRequest} */ -public final class ListTopicSnapshotsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListTopicSnapshotsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicSnapshotsRequest) ListTopicSnapshotsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListTopicSnapshotsRequest.newBuilder() to construct. private ListTopicSnapshotsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListTopicSnapshotsRequest() { topic_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListTopicSnapshotsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTopicSnapshotsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListTopicSnapshotsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,73 +54,64 @@ private ListTopicSnapshotsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - topic_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + topic_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicSnapshotsRequest.class, - com.google.pubsub.v1.ListTopicSnapshotsRequest.Builder.class); + com.google.pubsub.v1.ListTopicSnapshotsRequest.class, com.google.pubsub.v1.ListTopicSnapshotsRequest.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; private volatile java.lang.Object topic_; /** - * - * *
    * Required. The name of the topic that snapshots are attached to.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * - * 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 @@ -146,32 +120,30 @@ 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 name of the topic that snapshots are attached to.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * - * 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 { @@ -182,14 +154,11 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Maximum number of snapshot names to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -200,8 +169,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListTopicSnapshotsResponse`; indicates
    * that this is a continuation of a prior `ListTopicSnapshots` call, and
@@ -209,7 +176,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -218,15 +184,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; } } /** - * - * *
    * The value returned by the last `ListTopicSnapshotsResponse`; indicates
    * that this is a continuation of a prior `ListTopicSnapshots` call, and
@@ -234,15 +199,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 { @@ -251,7 +217,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,14 +228,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTopicBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -282,13 +248,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTopicBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); @@ -299,17 +266,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.pubsub.v1.ListTopicSnapshotsRequest)) { return super.equals(obj); } - com.google.pubsub.v1.ListTopicSnapshotsRequest other = - (com.google.pubsub.v1.ListTopicSnapshotsRequest) obj; + com.google.pubsub.v1.ListTopicSnapshotsRequest other = (com.google.pubsub.v1.ListTopicSnapshotsRequest) obj; - if (!getTopic().equals(other.getTopic())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getTopic() + .equals(other.getTopic())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -332,127 +301,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ListTopicSnapshotsRequest 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.pubsub.v1.ListTopicSnapshotsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.ListTopicSnapshotsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 the `ListTopicSnapshots` method.
    * 
* * Protobuf type {@code google.pubsub.v1.ListTopicSnapshotsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListTopicSnapshotsRequest) com.google.pubsub.v1.ListTopicSnapshotsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicSnapshotsRequest.class, - com.google.pubsub.v1.ListTopicSnapshotsRequest.Builder.class); + com.google.pubsub.v1.ListTopicSnapshotsRequest.class, com.google.pubsub.v1.ListTopicSnapshotsRequest.Builder.class); } // Construct using com.google.pubsub.v1.ListTopicSnapshotsRequest.newBuilder() @@ -460,15 +420,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -482,9 +443,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; } @java.lang.Override @@ -503,8 +464,7 @@ public com.google.pubsub.v1.ListTopicSnapshotsRequest build() { @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsRequest buildPartial() { - com.google.pubsub.v1.ListTopicSnapshotsRequest result = - new com.google.pubsub.v1.ListTopicSnapshotsRequest(this); + com.google.pubsub.v1.ListTopicSnapshotsRequest result = new com.google.pubsub.v1.ListTopicSnapshotsRequest(this); result.topic_ = topic_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -516,39 +476,38 @@ public com.google.pubsub.v1.ListTopicSnapshotsRequest 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.pubsub.v1.ListTopicSnapshotsRequest) { - return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsRequest) other); + return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsRequest)other); } else { super.mergeFrom(other); return this; @@ -599,23 +558,19 @@ public Builder mergeFrom( private java.lang.Object topic_ = ""; /** - * - * *
      * Required. The name of the topic that snapshots are attached to.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * - * 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; @@ -624,24 +579,21 @@ public java.lang.String getTopic() { } } /** - * - * *
      * Required. The name of the topic that snapshots are attached to.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * - * 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 { @@ -649,85 +601,69 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
      * Required. The name of the topic that snapshots are attached to.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * - * 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) { + public Builder setTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topic_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the topic that snapshots are attached to.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * - * 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() { - + topic_ = getDefaultInstance().getTopic(); onChanged(); return this; } /** - * - * *
      * Required. The name of the topic that snapshots are attached to.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * - * 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) { + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of snapshot names to return.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -735,36 +671,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of snapshot names to return.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of snapshot names to return.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -772,8 +702,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListTopicSnapshotsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSnapshots` call, and
@@ -781,13 +709,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 +724,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListTopicSnapshotsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSnapshots` call, and
@@ -805,14 +731,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -820,8 +747,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListTopicSnapshotsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSnapshots` call, and
@@ -829,22 +754,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListTopicSnapshotsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSnapshots` call, and
@@ -852,18 +775,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListTopicSnapshotsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSnapshots` call, and
@@ -871,23 +791,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; 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); } @@ -897,12 +817,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicSnapshotsRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSnapshotsRequest) private static final com.google.pubsub.v1.ListTopicSnapshotsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ListTopicSnapshotsRequest(); } @@ -911,16 +831,16 @@ public static com.google.pubsub.v1.ListTopicSnapshotsRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTopicSnapshotsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTopicSnapshotsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTopicSnapshotsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTopicSnapshotsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -935,4 +855,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.pubsub.v1.ListTopicSnapshotsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java index 3e3382705..63e1913b0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java @@ -1,75 +1,45 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; -public interface ListTopicSnapshotsRequestOrBuilder - extends +public interface ListTopicSnapshotsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicSnapshotsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the topic that snapshots are attached to.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * - * 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 name of the topic that snapshots are attached to.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * - * 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(); /** - * - * *
    * Maximum number of snapshot names to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value returned by the last `ListTopicSnapshotsResponse`; indicates
    * that this is a continuation of a prior `ListTopicSnapshots` call, and
@@ -77,13 +47,10 @@ public interface ListTopicSnapshotsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListTopicSnapshotsResponse`; indicates
    * that this is a continuation of a prior `ListTopicSnapshots` call, and
@@ -91,8 +58,8 @@ public interface ListTopicSnapshotsRequestOrBuilder
    * 
* * 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-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java similarity index 72% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index a19c8778d..c7b25c305 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Response for the `ListTopicSnapshots` method.
  * 
* * Protobuf type {@code google.pubsub.v1.ListTopicSnapshotsResponse} */ -public final class ListTopicSnapshotsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListTopicSnapshotsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicSnapshotsResponse) ListTopicSnapshotsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListTopicSnapshotsResponse.newBuilder() to construct. private ListTopicSnapshotsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListTopicSnapshotsResponse() { snapshots_ = com.google.protobuf.LazyStringArrayList.EMPTY; nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListTopicSnapshotsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTopicSnapshotsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListTopicSnapshotsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,36 +55,35 @@ private ListTopicSnapshotsResponse( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - snapshots_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - snapshots_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + snapshots_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + snapshots_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { snapshots_ = snapshots_.getUnmodifiableView(); @@ -110,61 +92,50 @@ private ListTopicSnapshotsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicSnapshotsResponse.class, - com.google.pubsub.v1.ListTopicSnapshotsResponse.Builder.class); + com.google.pubsub.v1.ListTopicSnapshotsResponse.class, com.google.pubsub.v1.ListTopicSnapshotsResponse.Builder.class); } public static final int SNAPSHOTS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList snapshots_; /** - * - * *
    * The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1; - * * @return A list containing the snapshots. */ - public com.google.protobuf.ProtocolStringList getSnapshotsList() { + public com.google.protobuf.ProtocolStringList + getSnapshotsList() { return snapshots_; } /** - * - * *
    * The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1; - * * @return The count of snapshots. */ public int getSnapshotsCount() { return snapshots_.size(); } /** - * - * *
    * The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1; - * * @param index The index of the element to return. * @return The snapshots at the given index. */ @@ -172,26 +143,22 @@ public java.lang.String getSnapshots(int index) { return snapshots_.get(index); } /** - * - * *
    * The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1; - * * @param index The index of the value to return. * @return The bytes of the snapshots at the given index. */ - public com.google.protobuf.ByteString getSnapshotsBytes(int index) { + public com.google.protobuf.ByteString + getSnapshotsBytes(int index) { return snapshots_.getByteString(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * If not empty, indicates that there may be more snapshots that match
    * the request; this value should be passed in a new
@@ -199,7 +166,6 @@ public com.google.protobuf.ByteString getSnapshotsBytes(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -208,15 +174,14 @@ 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; } } /** - * - * *
    * If not empty, indicates that there may be more snapshots that match
    * the request; this value should be passed in a new
@@ -224,15 +189,16 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -241,7 +207,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -253,11 +218,12 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < snapshots_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshots_.getRaw(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -277,7 +243,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getSnapshotsList().size(); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); @@ -288,16 +254,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.pubsub.v1.ListTopicSnapshotsResponse)) { return super.equals(obj); } - com.google.pubsub.v1.ListTopicSnapshotsResponse other = - (com.google.pubsub.v1.ListTopicSnapshotsResponse) obj; + com.google.pubsub.v1.ListTopicSnapshotsResponse other = (com.google.pubsub.v1.ListTopicSnapshotsResponse) obj; - if (!getSnapshotsList().equals(other.getSnapshotsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getSnapshotsList() + .equals(other.getSnapshotsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -320,127 +287,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ListTopicSnapshotsResponse 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.pubsub.v1.ListTopicSnapshotsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.ListTopicSnapshotsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 the `ListTopicSnapshots` method.
    * 
* * Protobuf type {@code google.pubsub.v1.ListTopicSnapshotsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListTopicSnapshotsResponse) com.google.pubsub.v1.ListTopicSnapshotsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicSnapshotsResponse.class, - com.google.pubsub.v1.ListTopicSnapshotsResponse.Builder.class); + com.google.pubsub.v1.ListTopicSnapshotsResponse.class, com.google.pubsub.v1.ListTopicSnapshotsResponse.Builder.class); } // Construct using com.google.pubsub.v1.ListTopicSnapshotsResponse.newBuilder() @@ -448,15 +406,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -468,9 +427,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; } @java.lang.Override @@ -489,8 +448,7 @@ public com.google.pubsub.v1.ListTopicSnapshotsResponse build() { @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsResponse buildPartial() { - com.google.pubsub.v1.ListTopicSnapshotsResponse result = - new com.google.pubsub.v1.ListTopicSnapshotsResponse(this); + com.google.pubsub.v1.ListTopicSnapshotsResponse result = new com.google.pubsub.v1.ListTopicSnapshotsResponse(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { snapshots_ = snapshots_.getUnmodifiableView(); @@ -506,39 +464,38 @@ public com.google.pubsub.v1.ListTopicSnapshotsResponse 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.pubsub.v1.ListTopicSnapshotsResponse) { - return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsResponse) other); + return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsResponse)other); } else { super.mergeFrom(other); return this; @@ -546,8 +503,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.pubsub.v1.ListTopicSnapshotsResponse other) { - if (other == com.google.pubsub.v1.ListTopicSnapshotsResponse.getDefaultInstance()) - return this; + if (other == com.google.pubsub.v1.ListTopicSnapshotsResponse.getDefaultInstance()) return this; if (!other.snapshots_.isEmpty()) { if (snapshots_.isEmpty()) { snapshots_ = other.snapshots_; @@ -590,55 +546,44 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList snapshots_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList snapshots_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSnapshotsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { snapshots_ = new com.google.protobuf.LazyStringArrayList(snapshots_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1; - * * @return A list containing the snapshots. */ - public com.google.protobuf.ProtocolStringList getSnapshotsList() { + public com.google.protobuf.ProtocolStringList + getSnapshotsList() { return snapshots_.getUnmodifiableView(); } /** - * - * *
      * The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1; - * * @return The count of snapshots. */ public int getSnapshotsCount() { return snapshots_.size(); } /** - * - * *
      * The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1; - * * @param index The index of the element to return. * @return The snapshots at the given index. */ @@ -646,90 +591,80 @@ public java.lang.String getSnapshots(int index) { return snapshots_.get(index); } /** - * - * *
      * The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1; - * * @param index The index of the value to return. * @return The bytes of the snapshots at the given index. */ - public com.google.protobuf.ByteString getSnapshotsBytes(int index) { + public com.google.protobuf.ByteString + getSnapshotsBytes(int index) { return snapshots_.getByteString(index); } /** - * - * *
      * The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1; - * * @param index The index to set the value at. * @param value The snapshots to set. * @return This builder for chaining. */ - public Builder setSnapshots(int index, java.lang.String value) { + public Builder setSnapshots( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSnapshotsIsMutable(); + throw new NullPointerException(); + } + ensureSnapshotsIsMutable(); snapshots_.set(index, value); onChanged(); return this; } /** - * - * *
      * The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1; - * * @param value The snapshots to add. * @return This builder for chaining. */ - public Builder addSnapshots(java.lang.String value) { + public Builder addSnapshots( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSnapshotsIsMutable(); + throw new NullPointerException(); + } + ensureSnapshotsIsMutable(); snapshots_.add(value); onChanged(); return this; } /** - * - * *
      * The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1; - * * @param values The snapshots to add. * @return This builder for chaining. */ - public Builder addAllSnapshots(java.lang.Iterable values) { + public Builder addAllSnapshots( + java.lang.Iterable values) { ensureSnapshotsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, snapshots_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, snapshots_); onChanged(); return this; } /** - * - * *
      * The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1; - * * @return This builder for chaining. */ public Builder clearSnapshots() { @@ -739,22 +674,20 @@ public Builder clearSnapshots() { return this; } /** - * - * *
      * The names of the snapshots that match the request.
      * 
* * repeated string snapshots = 1; - * * @param value The bytes of the snapshots to add. * @return This builder for chaining. */ - public Builder addSnapshotsBytes(com.google.protobuf.ByteString value) { + public Builder addSnapshotsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureSnapshotsIsMutable(); snapshots_.add(value); onChanged(); @@ -763,8 +696,6 @@ public Builder addSnapshotsBytes(com.google.protobuf.ByteString value) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If not empty, indicates that there may be more snapshots that match
      * the request; this value should be passed in a new
@@ -772,13 +703,13 @@ public Builder addSnapshotsBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -787,8 +718,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If not empty, indicates that there may be more snapshots that match
      * the request; this value should be passed in a new
@@ -796,14 +725,15 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -811,8 +741,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If not empty, indicates that there may be more snapshots that match
      * the request; this value should be passed in a new
@@ -820,22 +748,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * If not empty, indicates that there may be more snapshots that match
      * the request; this value should be passed in a new
@@ -843,18 +769,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * If not empty, indicates that there may be more snapshots that match
      * the request; this value should be passed in a new
@@ -862,23 +785,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; 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); } @@ -888,12 +811,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicSnapshotsResponse) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSnapshotsResponse) private static final com.google.pubsub.v1.ListTopicSnapshotsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ListTopicSnapshotsResponse(); } @@ -902,16 +825,16 @@ public static com.google.pubsub.v1.ListTopicSnapshotsResponse getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTopicSnapshotsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTopicSnapshotsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTopicSnapshotsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTopicSnapshotsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -926,4 +849,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.pubsub.v1.ListTopicSnapshotsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java similarity index 66% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java index 778a80008..09729ce06 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -1,82 +1,54 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; -public interface ListTopicSnapshotsResponseOrBuilder - extends +public interface ListTopicSnapshotsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicSnapshotsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1; - * * @return A list containing the snapshots. */ - java.util.List getSnapshotsList(); + java.util.List + getSnapshotsList(); /** - * - * *
    * The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1; - * * @return The count of snapshots. */ int getSnapshotsCount(); /** - * - * *
    * The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1; - * * @param index The index of the element to return. * @return The snapshots at the given index. */ java.lang.String getSnapshots(int index); /** - * - * *
    * The names of the snapshots that match the request.
    * 
* * repeated string snapshots = 1; - * * @param index The index of the value to return. * @return The bytes of the snapshots at the given index. */ - com.google.protobuf.ByteString getSnapshotsBytes(int index); + com.google.protobuf.ByteString + getSnapshotsBytes(int index); /** - * - * *
    * If not empty, indicates that there may be more snapshots that match
    * the request; this value should be passed in a new
@@ -84,13 +56,10 @@ public interface ListTopicSnapshotsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If not empty, indicates that there may be more snapshots that match
    * the request; this value should be passed in a new
@@ -98,8 +67,8 @@ public interface ListTopicSnapshotsResponseOrBuilder
    * 
* * 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-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java similarity index 68% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index 2bd00bee6..b70e0ccf2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Request for the `ListTopicSubscriptions` method.
  * 
* * Protobuf type {@code google.pubsub.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.pubsub.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() { topic_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListTopicSubscriptionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTopicSubscriptionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListTopicSubscriptionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,73 +54,64 @@ private ListTopicSubscriptionsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - topic_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + topic_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicSubscriptionsRequest.class, - com.google.pubsub.v1.ListTopicSubscriptionsRequest.Builder.class); + com.google.pubsub.v1.ListTopicSubscriptionsRequest.class, com.google.pubsub.v1.ListTopicSubscriptionsRequest.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; private volatile java.lang.Object topic_; /** - * - * *
    * Required. The name of the topic that subscriptions are attached to.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * - * 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 @@ -146,32 +120,30 @@ 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 name of the topic that subscriptions are attached to.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * - * 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 { @@ -182,14 +154,11 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Maximum number of subscription names to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -200,8 +169,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
    * that this is a continuation of a prior `ListTopicSubscriptions` call, and
@@ -209,7 +176,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -218,15 +184,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; } } /** - * - * *
    * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
    * that this is a continuation of a prior `ListTopicSubscriptions` call, and
@@ -234,15 +199,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 { @@ -251,7 +217,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,14 +228,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTopicBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -282,13 +248,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTopicBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); @@ -299,17 +266,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.pubsub.v1.ListTopicSubscriptionsRequest)) { return super.equals(obj); } - com.google.pubsub.v1.ListTopicSubscriptionsRequest other = - (com.google.pubsub.v1.ListTopicSubscriptionsRequest) obj; + com.google.pubsub.v1.ListTopicSubscriptionsRequest other = (com.google.pubsub.v1.ListTopicSubscriptionsRequest) obj; - if (!getTopic().equals(other.getTopic())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getTopic() + .equals(other.getTopic())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -333,126 +302,117 @@ public int hashCode() { } public static com.google.pubsub.v1.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.pubsub.v1.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.pubsub.v1.ListTopicSubscriptionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.ListTopicSubscriptionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.ListTopicSubscriptionsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.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.pubsub.v1.ListTopicSubscriptionsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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 the `ListTopicSubscriptions` method.
    * 
* * Protobuf type {@code google.pubsub.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.pubsub.v1.ListTopicSubscriptionsRequest) com.google.pubsub.v1.ListTopicSubscriptionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicSubscriptionsRequest.class, - com.google.pubsub.v1.ListTopicSubscriptionsRequest.Builder.class); + com.google.pubsub.v1.ListTopicSubscriptionsRequest.class, com.google.pubsub.v1.ListTopicSubscriptionsRequest.Builder.class); } // Construct using com.google.pubsub.v1.ListTopicSubscriptionsRequest.newBuilder() @@ -460,15 +420,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -482,9 +443,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; } @java.lang.Override @@ -503,8 +464,7 @@ public com.google.pubsub.v1.ListTopicSubscriptionsRequest build() { @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsRequest buildPartial() { - com.google.pubsub.v1.ListTopicSubscriptionsRequest result = - new com.google.pubsub.v1.ListTopicSubscriptionsRequest(this); + com.google.pubsub.v1.ListTopicSubscriptionsRequest result = new com.google.pubsub.v1.ListTopicSubscriptionsRequest(this); result.topic_ = topic_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -516,39 +476,38 @@ public com.google.pubsub.v1.ListTopicSubscriptionsRequest 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.pubsub.v1.ListTopicSubscriptionsRequest) { - return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsRequest) other); + return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsRequest)other); } else { super.mergeFrom(other); return this; @@ -556,8 +515,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.pubsub.v1.ListTopicSubscriptionsRequest other) { - if (other == com.google.pubsub.v1.ListTopicSubscriptionsRequest.getDefaultInstance()) - return this; + if (other == com.google.pubsub.v1.ListTopicSubscriptionsRequest.getDefaultInstance()) return this; if (!other.getTopic().isEmpty()) { topic_ = other.topic_; onChanged(); @@ -588,8 +546,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.pubsub.v1.ListTopicSubscriptionsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.pubsub.v1.ListTopicSubscriptionsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -601,23 +558,19 @@ public Builder mergeFrom( private java.lang.Object topic_ = ""; /** - * - * *
      * Required. The name of the topic that subscriptions are attached to.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * - * 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; @@ -626,24 +579,21 @@ public java.lang.String getTopic() { } } /** - * - * *
      * Required. The name of the topic that subscriptions are attached to.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * - * 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 { @@ -651,85 +601,69 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
      * Required. The name of the topic that subscriptions are attached to.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * - * 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) { + public Builder setTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topic_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the topic that subscriptions are attached to.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * - * 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() { - + topic_ = getDefaultInstance().getTopic(); onChanged(); return this; } /** - * - * *
      * Required. The name of the topic that subscriptions are attached to.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * - * 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) { + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of subscription names to return.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -737,36 +671,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of subscription names to return.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of subscription names to return.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -774,8 +702,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSubscriptions` call, and
@@ -783,13 +709,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -798,8 +724,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSubscriptions` call, and
@@ -807,14 +731,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -822,8 +747,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSubscriptions` call, and
@@ -831,22 +754,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSubscriptions` call, and
@@ -854,18 +775,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
      * that this is a continuation of a prior `ListTopicSubscriptions` call, and
@@ -873,23 +791,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; 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); } @@ -899,12 +817,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicSubscriptionsRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSubscriptionsRequest) private static final com.google.pubsub.v1.ListTopicSubscriptionsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ListTopicSubscriptionsRequest(); } @@ -913,16 +831,16 @@ public static com.google.pubsub.v1.ListTopicSubscriptionsRequest getDefaultInsta 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 { - return new ListTopicSubscriptionsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListTopicSubscriptionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -937,4 +855,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.pubsub.v1.ListTopicSubscriptionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java index 2d09f8895..950ac7b4e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java @@ -1,75 +1,45 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; -public interface ListTopicSubscriptionsRequestOrBuilder - extends +public interface ListTopicSubscriptionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicSubscriptionsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the topic that subscriptions are attached to.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * - * 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 name of the topic that subscriptions are attached to.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * - * 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(); /** - * - * *
    * Maximum number of subscription names to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
    * that this is a continuation of a prior `ListTopicSubscriptions` call, and
@@ -77,13 +47,10 @@ public interface ListTopicSubscriptionsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
    * that this is a continuation of a prior `ListTopicSubscriptions` call, and
@@ -91,8 +58,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-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java similarity index 72% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index 303bd86a4..b825ea7ef 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Response for the `ListTopicSubscriptions` method.
  * 
* * Protobuf type {@code google.pubsub.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.pubsub.v1.ListTopicSubscriptionsResponse) ListTopicSubscriptionsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListTopicSubscriptionsResponse.newBuilder() to construct. - private ListTopicSubscriptionsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListTopicSubscriptionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListTopicSubscriptionsResponse() { subscriptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; nextPageToken_ = ""; @@ -45,15 +26,16 @@ private ListTopicSubscriptionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTopicSubscriptionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListTopicSubscriptionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,36 +55,35 @@ private ListTopicSubscriptionsResponse( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - subscriptions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - subscriptions_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + subscriptions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + subscriptions_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { subscriptions_ = subscriptions_.getUnmodifiableView(); @@ -111,61 +92,50 @@ private ListTopicSubscriptionsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicSubscriptionsResponse.class, - com.google.pubsub.v1.ListTopicSubscriptionsResponse.Builder.class); + com.google.pubsub.v1.ListTopicSubscriptionsResponse.class, com.google.pubsub.v1.ListTopicSubscriptionsResponse.Builder.class); } public static final int SUBSCRIPTIONS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList subscriptions_; /** - * - * *
    * The names of subscriptions attached to the topic specified in the request.
    * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } - * * @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 specified in the request.
    * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of subscriptions. */ public int getSubscriptionsCount() { return subscriptions_.size(); } /** - * - * *
    * The names of subscriptions attached to the topic specified in the request.
    * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The subscriptions at the given index. */ @@ -173,26 +143,22 @@ public java.lang.String getSubscriptions(int index) { return subscriptions_.get(index); } /** - * - * *
    * The names of subscriptions attached to the topic specified in the request.
    * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } - * * @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; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * If not empty, indicates that there may be more subscriptions that match
    * the request; this value should be passed in a new
@@ -200,7 +166,6 @@ public com.google.protobuf.ByteString getSubscriptionsBytes(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -209,15 +174,14 @@ 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; } } /** - * - * *
    * If not empty, indicates that there may be more subscriptions that match
    * the request; this value should be passed in a new
@@ -225,15 +189,16 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -242,7 +207,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -254,11 +218,12 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -278,7 +243,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getSubscriptionsList().size(); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); @@ -289,16 +254,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.pubsub.v1.ListTopicSubscriptionsResponse)) { return super.equals(obj); } - com.google.pubsub.v1.ListTopicSubscriptionsResponse other = - (com.google.pubsub.v1.ListTopicSubscriptionsResponse) obj; + com.google.pubsub.v1.ListTopicSubscriptionsResponse other = (com.google.pubsub.v1.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -322,126 +288,117 @@ public int hashCode() { } public static com.google.pubsub.v1.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.pubsub.v1.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.pubsub.v1.ListTopicSubscriptionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.ListTopicSubscriptionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.ListTopicSubscriptionsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.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.pubsub.v1.ListTopicSubscriptionsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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 the `ListTopicSubscriptions` method.
    * 
* * Protobuf type {@code google.pubsub.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.pubsub.v1.ListTopicSubscriptionsResponse) com.google.pubsub.v1.ListTopicSubscriptionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicSubscriptionsResponse.class, - com.google.pubsub.v1.ListTopicSubscriptionsResponse.Builder.class); + com.google.pubsub.v1.ListTopicSubscriptionsResponse.class, com.google.pubsub.v1.ListTopicSubscriptionsResponse.Builder.class); } // Construct using com.google.pubsub.v1.ListTopicSubscriptionsResponse.newBuilder() @@ -449,15 +406,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -469,9 +427,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; } @java.lang.Override @@ -490,8 +448,7 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse build() { @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsResponse buildPartial() { - com.google.pubsub.v1.ListTopicSubscriptionsResponse result = - new com.google.pubsub.v1.ListTopicSubscriptionsResponse(this); + com.google.pubsub.v1.ListTopicSubscriptionsResponse result = new com.google.pubsub.v1.ListTopicSubscriptionsResponse(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { subscriptions_ = subscriptions_.getUnmodifiableView(); @@ -507,39 +464,38 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse 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.pubsub.v1.ListTopicSubscriptionsResponse) { - return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsResponse) other); + return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsResponse)other); } else { super.mergeFrom(other); return this; @@ -547,8 +503,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.pubsub.v1.ListTopicSubscriptionsResponse other) { - if (other == com.google.pubsub.v1.ListTopicSubscriptionsResponse.getDefaultInstance()) - return this; + if (other == com.google.pubsub.v1.ListTopicSubscriptionsResponse.getDefaultInstance()) return this; if (!other.subscriptions_.isEmpty()) { if (subscriptions_.isEmpty()) { subscriptions_ = other.subscriptions_; @@ -582,8 +537,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.pubsub.v1.ListTopicSubscriptionsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.pubsub.v1.ListTopicSubscriptionsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -592,55 +546,44 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList subscriptions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList subscriptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSubscriptionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { subscriptions_ = new com.google.protobuf.LazyStringArrayList(subscriptions_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * The names of subscriptions attached to the topic specified in the request.
      * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the subscriptions. */ - public com.google.protobuf.ProtocolStringList getSubscriptionsList() { + public com.google.protobuf.ProtocolStringList + getSubscriptionsList() { return subscriptions_.getUnmodifiableView(); } /** - * - * *
      * The names of subscriptions attached to the topic specified in the request.
      * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of subscriptions. */ public int getSubscriptionsCount() { return subscriptions_.size(); } /** - * - * *
      * The names of subscriptions attached to the topic specified in the request.
      * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The subscriptions at the given index. */ @@ -648,90 +591,80 @@ public java.lang.String getSubscriptions(int index) { return subscriptions_.get(index); } /** - * - * *
      * The names of subscriptions attached to the topic specified in the request.
      * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } - * * @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 specified in the request.
      * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } - * * @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) { + public Builder setSubscriptions( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSubscriptionsIsMutable(); + throw new NullPointerException(); + } + ensureSubscriptionsIsMutable(); subscriptions_.set(index, value); onChanged(); return this; } /** - * - * *
      * The names of subscriptions attached to the topic specified in the request.
      * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } - * * @param value The subscriptions to add. * @return This builder for chaining. */ - public Builder addSubscriptions(java.lang.String value) { + public Builder addSubscriptions( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSubscriptionsIsMutable(); + throw new NullPointerException(); + } + ensureSubscriptionsIsMutable(); subscriptions_.add(value); onChanged(); return this; } /** - * - * *
      * The names of subscriptions attached to the topic specified in the request.
      * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } - * * @param values The subscriptions to add. * @return This builder for chaining. */ - public Builder addAllSubscriptions(java.lang.Iterable values) { + public Builder addAllSubscriptions( + java.lang.Iterable values) { ensureSubscriptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subscriptions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subscriptions_); onChanged(); return this; } /** - * - * *
      * The names of subscriptions attached to the topic specified in the request.
      * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearSubscriptions() { @@ -741,22 +674,20 @@ public Builder clearSubscriptions() { return this; } /** - * - * *
      * The names of subscriptions attached to the topic specified in the request.
      * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes of the subscriptions to add. * @return This builder for chaining. */ - public Builder addSubscriptionsBytes(com.google.protobuf.ByteString value) { + public Builder addSubscriptionsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureSubscriptionsIsMutable(); subscriptions_.add(value); onChanged(); @@ -765,8 +696,6 @@ public Builder addSubscriptionsBytes(com.google.protobuf.ByteString value) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -774,13 +703,13 @@ public Builder addSubscriptionsBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -789,8 +718,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -798,14 +725,15 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -813,8 +741,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -822,22 +748,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -845,18 +769,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * If not empty, indicates that there may be more subscriptions that match
      * the request; this value should be passed in a new
@@ -864,23 +785,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; 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); } @@ -890,12 +811,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicSubscriptionsResponse) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSubscriptionsResponse) private static final com.google.pubsub.v1.ListTopicSubscriptionsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ListTopicSubscriptionsResponse(); } @@ -904,16 +825,16 @@ public static com.google.pubsub.v1.ListTopicSubscriptionsResponse getDefaultInst 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 { - return new ListTopicSubscriptionsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListTopicSubscriptionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -928,4 +849,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.pubsub.v1.ListTopicSubscriptionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java similarity index 70% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java index dffc961db..28f5759b8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -1,82 +1,54 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; -public interface ListTopicSubscriptionsResponseOrBuilder - extends +public interface ListTopicSubscriptionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicSubscriptionsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The names of subscriptions attached to the topic specified in the request.
    * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } - * * @return A list containing the subscriptions. */ - java.util.List getSubscriptionsList(); + java.util.List + getSubscriptionsList(); /** - * - * *
    * The names of subscriptions attached to the topic specified in the request.
    * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } - * * @return The count of subscriptions. */ int getSubscriptionsCount(); /** - * - * *
    * The names of subscriptions attached to the topic specified in the request.
    * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } - * * @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 specified in the request.
    * 
* * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } - * * @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); /** - * - * *
    * If not empty, indicates that there may be more subscriptions that match
    * the request; this value should be passed in a new
@@ -84,13 +56,10 @@ public interface ListTopicSubscriptionsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If not empty, indicates that there may be more subscriptions that match
    * the request; this value should be passed in a new
@@ -98,8 +67,8 @@ public interface ListTopicSubscriptionsResponseOrBuilder
    * 
* * 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-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java similarity index 69% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index b6660177d..33714a658 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Request for the `ListTopics` method.
  * 
* * Protobuf type {@code google.pubsub.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.pubsub.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() { project_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListTopicsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTopicsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListTopicsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,73 +54,64 @@ private ListTopicsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - project_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + project_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicsRequest.class, - com.google.pubsub.v1.ListTopicsRequest.Builder.class); + com.google.pubsub.v1.ListTopicsRequest.class, com.google.pubsub.v1.ListTopicsRequest.Builder.class); } public static final int PROJECT_FIELD_NUMBER = 1; private volatile java.lang.Object project_; /** - * - * *
    * Required. The name of the project in which to list topics.
    * Format is `projects/{project-id}`.
    * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ @java.lang.Override @@ -146,32 +120,30 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** - * - * *
    * Required. The name of the project in which to list topics.
    * Format is `projects/{project-id}`.
    * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -182,14 +154,11 @@ public com.google.protobuf.ByteString getProjectBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Maximum number of topics to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -200,8 +169,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListTopicsResponse`; indicates that this is
    * a continuation of a prior `ListTopics` call, and that the system should
@@ -209,7 +176,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -218,15 +184,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; } } /** - * - * *
    * The value returned by the last `ListTopicsResponse`; indicates that this is
    * a continuation of a prior `ListTopics` call, and that the system should
@@ -234,15 +199,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 { @@ -251,7 +217,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,14 +228,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -282,13 +248,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getProjectBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); @@ -299,16 +266,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.pubsub.v1.ListTopicsRequest)) { return super.equals(obj); } com.google.pubsub.v1.ListTopicsRequest other = (com.google.pubsub.v1.ListTopicsRequest) obj; - if (!getProject().equals(other.getProject())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getProject() + .equals(other.getProject())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -331,127 +301,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ListTopicsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ListTopicsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.ListTopicsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.ListTopicsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.ListTopicsRequest 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.pubsub.v1.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.pubsub.v1.ListTopicsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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 the `ListTopics` method.
    * 
* * Protobuf type {@code google.pubsub.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.pubsub.v1.ListTopicsRequest) com.google.pubsub.v1.ListTopicsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicsRequest.class, - com.google.pubsub.v1.ListTopicsRequest.Builder.class); + com.google.pubsub.v1.ListTopicsRequest.class, com.google.pubsub.v1.ListTopicsRequest.Builder.class); } // Construct using com.google.pubsub.v1.ListTopicsRequest.newBuilder() @@ -459,15 +420,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -481,9 +443,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; } @java.lang.Override @@ -502,8 +464,7 @@ public com.google.pubsub.v1.ListTopicsRequest build() { @java.lang.Override public com.google.pubsub.v1.ListTopicsRequest buildPartial() { - com.google.pubsub.v1.ListTopicsRequest result = - new com.google.pubsub.v1.ListTopicsRequest(this); + com.google.pubsub.v1.ListTopicsRequest result = new com.google.pubsub.v1.ListTopicsRequest(this); result.project_ = project_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -515,39 +476,38 @@ public com.google.pubsub.v1.ListTopicsRequest 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.pubsub.v1.ListTopicsRequest) { - return mergeFrom((com.google.pubsub.v1.ListTopicsRequest) other); + return mergeFrom((com.google.pubsub.v1.ListTopicsRequest)other); } else { super.mergeFrom(other); return this; @@ -598,23 +558,19 @@ public Builder mergeFrom( private java.lang.Object project_ = ""; /** - * - * *
      * Required. The name of the project in which to list topics.
      * Format is `projects/{project-id}`.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -623,24 +579,21 @@ public java.lang.String getProject() { } } /** - * - * *
      * Required. The name of the project in which to list topics.
      * Format is `projects/{project-id}`.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -648,85 +601,69 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
      * Required. The name of the project in which to list topics.
      * Format is `projects/{project-id}`.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject(java.lang.String value) { + public Builder setProject( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the project in which to list topics.
      * Format is `projects/{project-id}`.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearProject() { - + project_ = getDefaultInstance().getProject(); onChanged(); return this; } /** - * - * *
      * Required. The name of the project in which to list topics.
      * Format is `projects/{project-id}`.
      * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of topics to return.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -734,36 +671,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of topics to return.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of topics to return.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -771,8 +702,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListTopicsResponse`; indicates that this is
      * a continuation of a prior `ListTopics` call, and that the system should
@@ -780,13 +709,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -795,8 +724,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListTopicsResponse`; indicates that this is
      * a continuation of a prior `ListTopics` call, and that the system should
@@ -804,14 +731,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -819,8 +747,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListTopicsResponse`; indicates that this is
      * a continuation of a prior `ListTopics` call, and that the system should
@@ -828,22 +754,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListTopicsResponse`; indicates that this is
      * a continuation of a prior `ListTopics` call, and that the system should
@@ -851,18 +775,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListTopicsResponse`; indicates that this is
      * a continuation of a prior `ListTopics` call, and that the system should
@@ -870,23 +791,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; 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); } @@ -896,12 +817,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicsRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicsRequest) private static final com.google.pubsub.v1.ListTopicsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ListTopicsRequest(); } @@ -910,16 +831,16 @@ public static com.google.pubsub.v1.ListTopicsRequest getDefaultInstance() { 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 { - return new ListTopicsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListTopicsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -934,4 +855,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ListTopicsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index 8f5219329..d6acb0277 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -1,75 +1,45 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; -public interface ListTopicsRequestOrBuilder - extends +public interface ListTopicsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the project in which to list topics.
    * Format is `projects/{project-id}`.
    * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ java.lang.String getProject(); /** - * - * *
    * Required. The name of the project in which to list topics.
    * Format is `projects/{project-id}`.
    * 
* - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - com.google.protobuf.ByteString getProjectBytes(); + com.google.protobuf.ByteString + getProjectBytes(); /** - * - * *
    * Maximum number of topics to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value returned by the last `ListTopicsResponse`; indicates that this is
    * a continuation of a prior `ListTopics` call, and that the system should
@@ -77,13 +47,10 @@ public interface ListTopicsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListTopicsResponse`; indicates that this is
    * a continuation of a prior `ListTopics` call, and that the system should
@@ -91,8 +58,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-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java similarity index 72% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index 6e42dbb0e..84e925578 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Response for the `ListTopics` method.
  * 
* * Protobuf type {@code google.pubsub.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.pubsub.v1.ListTopicsResponse) ListTopicsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListTopicsResponse.newBuilder() to construct. private ListTopicsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListTopicsResponse() { topics_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListTopicsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListTopicsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListTopicsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,36 +55,35 @@ private ListTopicsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - topics_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - topics_.add( - input.readMessage(com.google.pubsub.v1.Topic.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + topics_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + topics_.add( + input.readMessage(com.google.pubsub.v1.Topic.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { topics_ = java.util.Collections.unmodifiableList(topics_); @@ -110,27 +92,22 @@ private ListTopicsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicsResponse.class, - com.google.pubsub.v1.ListTopicsResponse.Builder.class); + com.google.pubsub.v1.ListTopicsResponse.class, com.google.pubsub.v1.ListTopicsResponse.Builder.class); } public static final int TOPICS_FIELD_NUMBER = 1; private java.util.List topics_; /** - * - * *
    * The resulting topics.
    * 
@@ -142,8 +119,6 @@ public java.util.List getTopicsList() { return topics_; } /** - * - * *
    * The resulting topics.
    * 
@@ -151,12 +126,11 @@ public java.util.List getTopicsList() { * repeated .google.pubsub.v1.Topic topics = 1; */ @java.lang.Override - public java.util.List getTopicsOrBuilderList() { + public java.util.List + getTopicsOrBuilderList() { return topics_; } /** - * - * *
    * The resulting topics.
    * 
@@ -168,8 +142,6 @@ public int getTopicsCount() { return topics_.size(); } /** - * - * *
    * The resulting topics.
    * 
@@ -181,8 +153,6 @@ public com.google.pubsub.v1.Topic getTopics(int index) { return topics_.get(index); } /** - * - * *
    * The resulting topics.
    * 
@@ -190,22 +160,20 @@ public com.google.pubsub.v1.Topic getTopics(int index) { * repeated .google.pubsub.v1.Topic topics = 1; */ @java.lang.Override - public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(int index) { + public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder( + int index) { return topics_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * If not empty, indicates that there may be more topics that match the
    * request; this value should be passed in a new `ListTopicsRequest`.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -214,30 +182,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; } } /** - * - * *
    * If not empty, indicates that there may be more topics that match the
    * request; this value should be passed in a new `ListTopicsRequest`.
    * 
* * 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 { @@ -246,7 +214,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -258,11 +225,12 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -275,9 +243,10 @@ 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 (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); @@ -288,15 +257,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.pubsub.v1.ListTopicsResponse)) { return super.equals(obj); } com.google.pubsub.v1.ListTopicsResponse other = (com.google.pubsub.v1.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -319,127 +290,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ListTopicsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ListTopicsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.ListTopicsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.ListTopicsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.ListTopicsResponse 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.pubsub.v1.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.pubsub.v1.ListTopicsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ListTopicsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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 the `ListTopics` method.
    * 
* * Protobuf type {@code google.pubsub.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.pubsub.v1.ListTopicsResponse) com.google.pubsub.v1.ListTopicsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicsResponse.class, - com.google.pubsub.v1.ListTopicsResponse.Builder.class); + com.google.pubsub.v1.ListTopicsResponse.class, com.google.pubsub.v1.ListTopicsResponse.Builder.class); } // Construct using com.google.pubsub.v1.ListTopicsResponse.newBuilder() @@ -447,17 +409,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) { getTopicsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -473,9 +435,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; } @java.lang.Override @@ -494,8 +456,7 @@ public com.google.pubsub.v1.ListTopicsResponse build() { @java.lang.Override public com.google.pubsub.v1.ListTopicsResponse buildPartial() { - com.google.pubsub.v1.ListTopicsResponse result = - new com.google.pubsub.v1.ListTopicsResponse(this); + com.google.pubsub.v1.ListTopicsResponse result = new com.google.pubsub.v1.ListTopicsResponse(this); int from_bitField0_ = bitField0_; if (topicsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -515,39 +476,38 @@ public com.google.pubsub.v1.ListTopicsResponse 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.pubsub.v1.ListTopicsResponse) { - return mergeFrom((com.google.pubsub.v1.ListTopicsResponse) other); + return mergeFrom((com.google.pubsub.v1.ListTopicsResponse)other); } else { super.mergeFrom(other); return this; @@ -574,10 +534,9 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicsResponse other) { 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_); } @@ -615,27 +574,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List topics_ = java.util.Collections.emptyList(); - + private java.util.List topics_ = + 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.pubsub.v1.Topic, - com.google.pubsub.v1.Topic.Builder, - com.google.pubsub.v1.TopicOrBuilder> - topicsBuilder_; + com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder> topicsBuilder_; /** - * - * *
      * The resulting topics.
      * 
@@ -650,8 +603,6 @@ public java.util.List getTopicsList() { } } /** - * - * *
      * The resulting topics.
      * 
@@ -666,8 +617,6 @@ public int getTopicsCount() { } } /** - * - * *
      * The resulting topics.
      * 
@@ -682,15 +631,14 @@ public com.google.pubsub.v1.Topic getTopics(int index) { } } /** - * - * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - public Builder setTopics(int index, com.google.pubsub.v1.Topic value) { + public Builder setTopics( + int index, com.google.pubsub.v1.Topic value) { if (topicsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -704,15 +652,14 @@ public Builder setTopics(int index, com.google.pubsub.v1.Topic value) { return this; } /** - * - * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - public Builder setTopics(int index, com.google.pubsub.v1.Topic.Builder builderForValue) { + public Builder setTopics( + int index, com.google.pubsub.v1.Topic.Builder builderForValue) { if (topicsBuilder_ == null) { ensureTopicsIsMutable(); topics_.set(index, builderForValue.build()); @@ -723,8 +670,6 @@ public Builder setTopics(int index, com.google.pubsub.v1.Topic.Builder builderFo return this; } /** - * - * *
      * The resulting topics.
      * 
@@ -745,15 +690,14 @@ public Builder addTopics(com.google.pubsub.v1.Topic value) { return this; } /** - * - * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - public Builder addTopics(int index, com.google.pubsub.v1.Topic value) { + public Builder addTopics( + int index, com.google.pubsub.v1.Topic value) { if (topicsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -767,15 +711,14 @@ public Builder addTopics(int index, com.google.pubsub.v1.Topic value) { return this; } /** - * - * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - public Builder addTopics(com.google.pubsub.v1.Topic.Builder builderForValue) { + public Builder addTopics( + com.google.pubsub.v1.Topic.Builder builderForValue) { if (topicsBuilder_ == null) { ensureTopicsIsMutable(); topics_.add(builderForValue.build()); @@ -786,15 +729,14 @@ public Builder addTopics(com.google.pubsub.v1.Topic.Builder builderForValue) { return this; } /** - * - * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - public Builder addTopics(int index, com.google.pubsub.v1.Topic.Builder builderForValue) { + public Builder addTopics( + int index, com.google.pubsub.v1.Topic.Builder builderForValue) { if (topicsBuilder_ == null) { ensureTopicsIsMutable(); topics_.add(index, builderForValue.build()); @@ -805,18 +747,18 @@ public Builder addTopics(int index, com.google.pubsub.v1.Topic.Builder builderFo return this; } /** - * - * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - public Builder addAllTopics(java.lang.Iterable values) { + 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); @@ -824,8 +766,6 @@ public Builder addAllTopics(java.lang.Iterable * The resulting topics. *
@@ -843,8 +783,6 @@ public Builder clearTopics() { return this; } /** - * - * *
      * The resulting topics.
      * 
@@ -862,43 +800,39 @@ public Builder removeTopics(int index) { return this; } /** - * - * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - public com.google.pubsub.v1.Topic.Builder getTopicsBuilder(int index) { + public com.google.pubsub.v1.Topic.Builder getTopicsBuilder( + int index) { return getTopicsFieldBuilder().getBuilder(index); } /** - * - * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(int index) { + public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder( + int index) { if (topicsBuilder_ == null) { - return topics_.get(index); - } else { + return topics_.get(index); } else { return topicsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - public java.util.List getTopicsOrBuilderList() { + public java.util.List + getTopicsOrBuilderList() { if (topicsBuilder_ != null) { return topicsBuilder_.getMessageOrBuilderList(); } else { @@ -906,8 +840,6 @@ public java.util.List getTopicsOr } } /** - * - * *
      * The resulting topics.
      * 
@@ -915,46 +847,42 @@ public java.util.List getTopicsOr * repeated .google.pubsub.v1.Topic topics = 1; */ public com.google.pubsub.v1.Topic.Builder addTopicsBuilder() { - return getTopicsFieldBuilder().addBuilder(com.google.pubsub.v1.Topic.getDefaultInstance()); + return getTopicsFieldBuilder().addBuilder( + com.google.pubsub.v1.Topic.getDefaultInstance()); } /** - * - * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - public com.google.pubsub.v1.Topic.Builder addTopicsBuilder(int index) { - return getTopicsFieldBuilder() - .addBuilder(index, com.google.pubsub.v1.Topic.getDefaultInstance()); + public com.google.pubsub.v1.Topic.Builder addTopicsBuilder( + int index) { + return getTopicsFieldBuilder().addBuilder( + index, com.google.pubsub.v1.Topic.getDefaultInstance()); } /** - * - * *
      * The resulting topics.
      * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - public java.util.List getTopicsBuilderList() { + public java.util.List + getTopicsBuilderList() { return getTopicsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Topic, - com.google.pubsub.v1.Topic.Builder, - com.google.pubsub.v1.TopicOrBuilder> + com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder> getTopicsFieldBuilder() { if (topicsBuilder_ == null) { - topicsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Topic, - com.google.pubsub.v1.Topic.Builder, - com.google.pubsub.v1.TopicOrBuilder>( - topics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + topicsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder>( + topics_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); topics_ = null; } return topicsBuilder_; @@ -962,21 +890,19 @@ public java.util.List getTopicsBuilderList() private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If not empty, indicates that there may be more topics that match the
      * request; this value should be passed in a new `ListTopicsRequest`.
      * 
* * 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; @@ -985,22 +911,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If not empty, indicates that there may be more topics that match the
      * request; this value should be passed in a new `ListTopicsRequest`.
      * 
* * 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 { @@ -1008,71 +933,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If not empty, indicates that there may be more topics that match the
      * request; this value should be passed in a new `ListTopicsRequest`.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * If not empty, indicates that there may be more topics that match the
      * request; this value should be passed in a new `ListTopicsRequest`.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * If not empty, indicates that there may be more topics that match the
      * request; this value should be passed in a new `ListTopicsRequest`.
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; 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); } @@ -1082,12 +1000,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicsResponse) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicsResponse) private static final com.google.pubsub.v1.ListTopicsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ListTopicsResponse(); } @@ -1096,16 +1014,16 @@ public static com.google.pubsub.v1.ListTopicsResponse getDefaultInstance() { 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 { - return new ListTopicsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListTopicsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1120,4 +1038,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ListTopicsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java similarity index 63% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java index c29de3514..3706fd7e5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; -public interface ListTopicsResponseOrBuilder - extends +public interface ListTopicsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resulting topics.
    * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - java.util.List getTopicsList(); + java.util.List + getTopicsList(); /** - * - * *
    * The resulting topics.
    * 
@@ -44,8 +25,6 @@ public interface ListTopicsResponseOrBuilder */ com.google.pubsub.v1.Topic getTopics(int index); /** - * - * *
    * The resulting topics.
    * 
@@ -54,50 +33,43 @@ public interface ListTopicsResponseOrBuilder */ int getTopicsCount(); /** - * - * *
    * The resulting topics.
    * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - java.util.List getTopicsOrBuilderList(); + java.util.List + getTopicsOrBuilderList(); /** - * - * *
    * The resulting topics.
    * 
* * repeated .google.pubsub.v1.Topic topics = 1; */ - com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(int index); + com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder( + int index); /** - * - * *
    * If not empty, indicates that there may be more topics that match the
    * request; this value should be passed in a new `ListTopicsRequest`.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If not empty, indicates that there may be more topics that match the
    * request; this value should be passed in a new `ListTopicsRequest`.
    * 
* * 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-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java similarity index 74% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index b03bda501..7b27b2d63 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * A policy constraining the storage of messages published to the topic.
  * 
* * Protobuf type {@code google.pubsub.v1.MessageStoragePolicy} */ -public final class MessageStoragePolicy extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MessageStoragePolicy extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.MessageStoragePolicy) MessageStoragePolicyOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MessageStoragePolicy.newBuilder() to construct. private MessageStoragePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MessageStoragePolicy() { allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MessageStoragePolicy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private MessageStoragePolicy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,29 +54,29 @@ private MessageStoragePolicy( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - allowedPersistenceRegions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - allowedPersistenceRegions_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + allowedPersistenceRegions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + allowedPersistenceRegions_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { allowedPersistenceRegions_ = allowedPersistenceRegions_.getUnmodifiableView(); @@ -102,27 +85,22 @@ private MessageStoragePolicy( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.MessageStoragePolicy.class, - com.google.pubsub.v1.MessageStoragePolicy.Builder.class); + com.google.pubsub.v1.MessageStoragePolicy.class, com.google.pubsub.v1.MessageStoragePolicy.Builder.class); } public static final int ALLOWED_PERSISTENCE_REGIONS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList allowedPersistenceRegions_; /** - * - * *
    * A list of IDs of GCP regions where messages that are published to the topic
    * may be persisted in storage. Messages published by publishers running in
@@ -132,15 +110,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string allowed_persistence_regions = 1; - * * @return A list containing the allowedPersistenceRegions. */ - public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() { + public com.google.protobuf.ProtocolStringList + getAllowedPersistenceRegionsList() { return allowedPersistenceRegions_; } /** - * - * *
    * A list of IDs of GCP regions where messages that are published to the topic
    * may be persisted in storage. Messages published by publishers running in
@@ -150,15 +126,12 @@ public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList()
    * 
* * repeated string allowed_persistence_regions = 1; - * * @return The count of allowedPersistenceRegions. */ public int getAllowedPersistenceRegionsCount() { return allowedPersistenceRegions_.size(); } /** - * - * *
    * A list of IDs of GCP regions where messages that are published to the topic
    * may be persisted in storage. Messages published by publishers running in
@@ -168,7 +141,6 @@ public int getAllowedPersistenceRegionsCount() {
    * 
* * repeated string allowed_persistence_regions = 1; - * * @param index The index of the element to return. * @return The allowedPersistenceRegions at the given index. */ @@ -176,8 +148,6 @@ public java.lang.String getAllowedPersistenceRegions(int index) { return allowedPersistenceRegions_.get(index); } /** - * - * *
    * A list of IDs of GCP regions where messages that are published to the topic
    * may be persisted in storage. Messages published by publishers running in
@@ -187,16 +157,15 @@ public java.lang.String getAllowedPersistenceRegions(int index) {
    * 
* * repeated string allowed_persistence_regions = 1; - * * @param index The index of the value to return. * @return The bytes of the allowedPersistenceRegions at the given index. */ - public com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int index) { + public com.google.protobuf.ByteString + getAllowedPersistenceRegionsBytes(int index) { return allowedPersistenceRegions_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,10 +177,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 { for (int i = 0; i < allowedPersistenceRegions_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 1, allowedPersistenceRegions_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, allowedPersistenceRegions_.getRaw(i)); } unknownFields.writeTo(output); } @@ -238,16 +207,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.pubsub.v1.MessageStoragePolicy)) { return super.equals(obj); } - com.google.pubsub.v1.MessageStoragePolicy other = - (com.google.pubsub.v1.MessageStoragePolicy) obj; + com.google.pubsub.v1.MessageStoragePolicy other = (com.google.pubsub.v1.MessageStoragePolicy) obj; - if (!getAllowedPersistenceRegionsList().equals(other.getAllowedPersistenceRegionsList())) - return false; + if (!getAllowedPersistenceRegionsList() + .equals(other.getAllowedPersistenceRegionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -268,127 +236,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.MessageStoragePolicy parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.MessageStoragePolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.MessageStoragePolicy 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.pubsub.v1.MessageStoragePolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.pubsub.v1.MessageStoragePolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.MessageStoragePolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.MessageStoragePolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.MessageStoragePolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 policy constraining the storage of messages published to the topic.
    * 
* * Protobuf type {@code google.pubsub.v1.MessageStoragePolicy} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.MessageStoragePolicy) com.google.pubsub.v1.MessageStoragePolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.MessageStoragePolicy.class, - com.google.pubsub.v1.MessageStoragePolicy.Builder.class); + com.google.pubsub.v1.MessageStoragePolicy.class, com.google.pubsub.v1.MessageStoragePolicy.Builder.class); } // Construct using com.google.pubsub.v1.MessageStoragePolicy.newBuilder() @@ -396,15 +355,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -414,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; } @java.lang.Override @@ -435,8 +395,7 @@ public com.google.pubsub.v1.MessageStoragePolicy build() { @java.lang.Override public com.google.pubsub.v1.MessageStoragePolicy buildPartial() { - com.google.pubsub.v1.MessageStoragePolicy result = - new com.google.pubsub.v1.MessageStoragePolicy(this); + com.google.pubsub.v1.MessageStoragePolicy result = new com.google.pubsub.v1.MessageStoragePolicy(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { allowedPersistenceRegions_ = allowedPersistenceRegions_.getUnmodifiableView(); @@ -451,39 +410,38 @@ public com.google.pubsub.v1.MessageStoragePolicy 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.pubsub.v1.MessageStoragePolicy) { - return mergeFrom((com.google.pubsub.v1.MessageStoragePolicy) other); + return mergeFrom((com.google.pubsub.v1.MessageStoragePolicy)other); } else { super.mergeFrom(other); return this; @@ -530,22 +488,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList allowedPersistenceRegions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAllowedPersistenceRegionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - allowedPersistenceRegions_ = - new com.google.protobuf.LazyStringArrayList(allowedPersistenceRegions_); + allowedPersistenceRegions_ = new com.google.protobuf.LazyStringArrayList(allowedPersistenceRegions_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * A list of IDs of GCP regions where messages that are published to the topic
      * may be persisted in storage. Messages published by publishers running in
@@ -555,15 +507,13 @@ private void ensureAllowedPersistenceRegionsIsMutable() {
      * 
* * repeated string allowed_persistence_regions = 1; - * * @return A list containing the allowedPersistenceRegions. */ - public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() { + public com.google.protobuf.ProtocolStringList + getAllowedPersistenceRegionsList() { return allowedPersistenceRegions_.getUnmodifiableView(); } /** - * - * *
      * A list of IDs of GCP regions where messages that are published to the topic
      * may be persisted in storage. Messages published by publishers running in
@@ -573,15 +523,12 @@ public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList()
      * 
* * repeated string allowed_persistence_regions = 1; - * * @return The count of allowedPersistenceRegions. */ public int getAllowedPersistenceRegionsCount() { return allowedPersistenceRegions_.size(); } /** - * - * *
      * A list of IDs of GCP regions where messages that are published to the topic
      * may be persisted in storage. Messages published by publishers running in
@@ -591,7 +538,6 @@ public int getAllowedPersistenceRegionsCount() {
      * 
* * repeated string allowed_persistence_regions = 1; - * * @param index The index of the element to return. * @return The allowedPersistenceRegions at the given index. */ @@ -599,8 +545,6 @@ public java.lang.String getAllowedPersistenceRegions(int index) { return allowedPersistenceRegions_.get(index); } /** - * - * *
      * A list of IDs of GCP regions where messages that are published to the topic
      * may be persisted in storage. Messages published by publishers running in
@@ -610,16 +554,14 @@ public java.lang.String getAllowedPersistenceRegions(int index) {
      * 
* * repeated string allowed_persistence_regions = 1; - * * @param index The index of the value to return. * @return The bytes of the allowedPersistenceRegions at the given index. */ - public com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int index) { + public com.google.protobuf.ByteString + getAllowedPersistenceRegionsBytes(int index) { return allowedPersistenceRegions_.getByteString(index); } /** - * - * *
      * A list of IDs of GCP regions where messages that are published to the topic
      * may be persisted in storage. Messages published by publishers running in
@@ -629,23 +571,21 @@ public com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int inde
      * 
* * repeated string allowed_persistence_regions = 1; - * * @param index The index to set the value at. * @param value The allowedPersistenceRegions to set. * @return This builder for chaining. */ - public Builder setAllowedPersistenceRegions(int index, java.lang.String value) { + public Builder setAllowedPersistenceRegions( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedPersistenceRegionsIsMutable(); + throw new NullPointerException(); + } + ensureAllowedPersistenceRegionsIsMutable(); allowedPersistenceRegions_.set(index, value); onChanged(); return this; } /** - * - * *
      * A list of IDs of GCP regions where messages that are published to the topic
      * may be persisted in storage. Messages published by publishers running in
@@ -655,22 +595,20 @@ public Builder setAllowedPersistenceRegions(int index, java.lang.String value) {
      * 
* * repeated string allowed_persistence_regions = 1; - * * @param value The allowedPersistenceRegions to add. * @return This builder for chaining. */ - public Builder addAllowedPersistenceRegions(java.lang.String value) { + public Builder addAllowedPersistenceRegions( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowedPersistenceRegionsIsMutable(); + throw new NullPointerException(); + } + ensureAllowedPersistenceRegionsIsMutable(); allowedPersistenceRegions_.add(value); onChanged(); return this; } /** - * - * *
      * A list of IDs of GCP regions where messages that are published to the topic
      * may be persisted in storage. Messages published by publishers running in
@@ -680,19 +618,18 @@ public Builder addAllowedPersistenceRegions(java.lang.String value) {
      * 
* * repeated string allowed_persistence_regions = 1; - * * @param values The allowedPersistenceRegions to add. * @return This builder for chaining. */ - public Builder addAllAllowedPersistenceRegions(java.lang.Iterable values) { + public Builder addAllAllowedPersistenceRegions( + java.lang.Iterable values) { ensureAllowedPersistenceRegionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedPersistenceRegions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, allowedPersistenceRegions_); onChanged(); return this; } /** - * - * *
      * A list of IDs of GCP regions where messages that are published to the topic
      * may be persisted in storage. Messages published by publishers running in
@@ -702,7 +639,6 @@ public Builder addAllAllowedPersistenceRegions(java.lang.Iterable
      *
      * repeated string allowed_persistence_regions = 1;
-     *
      * @return This builder for chaining.
      */
     public Builder clearAllowedPersistenceRegions() {
@@ -712,8 +648,6 @@ public Builder clearAllowedPersistenceRegions() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of IDs of GCP regions where messages that are published to the topic
      * may be persisted in storage. Messages published by publishers running in
@@ -723,23 +657,23 @@ public Builder clearAllowedPersistenceRegions() {
      * 
* * repeated string allowed_persistence_regions = 1; - * * @param value The bytes of the allowedPersistenceRegions to add. * @return This builder for chaining. */ - public Builder addAllowedPersistenceRegionsBytes(com.google.protobuf.ByteString value) { + public Builder addAllowedPersistenceRegionsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAllowedPersistenceRegionsIsMutable(); allowedPersistenceRegions_.add(value); 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); } @@ -749,12 +683,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.MessageStoragePolicy) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.MessageStoragePolicy) private static final com.google.pubsub.v1.MessageStoragePolicy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.MessageStoragePolicy(); } @@ -763,16 +697,16 @@ public static com.google.pubsub.v1.MessageStoragePolicy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MessageStoragePolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MessageStoragePolicy(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MessageStoragePolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MessageStoragePolicy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -787,4 +721,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.MessageStoragePolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java similarity index 75% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java index e606797dc..7eec02f6f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; -public interface MessageStoragePolicyOrBuilder - extends +public interface MessageStoragePolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.MessageStoragePolicy) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of IDs of GCP regions where messages that are published to the topic
    * may be persisted in storage. Messages published by publishers running in
@@ -35,13 +17,11 @@ public interface MessageStoragePolicyOrBuilder
    * 
* * repeated string allowed_persistence_regions = 1; - * * @return A list containing the allowedPersistenceRegions. */ - java.util.List getAllowedPersistenceRegionsList(); + java.util.List + getAllowedPersistenceRegionsList(); /** - * - * *
    * A list of IDs of GCP regions where messages that are published to the topic
    * may be persisted in storage. Messages published by publishers running in
@@ -51,13 +31,10 @@ public interface MessageStoragePolicyOrBuilder
    * 
* * repeated string allowed_persistence_regions = 1; - * * @return The count of allowedPersistenceRegions. */ int getAllowedPersistenceRegionsCount(); /** - * - * *
    * A list of IDs of GCP regions where messages that are published to the topic
    * may be persisted in storage. Messages published by publishers running in
@@ -67,14 +44,11 @@ public interface MessageStoragePolicyOrBuilder
    * 
* * repeated string allowed_persistence_regions = 1; - * * @param index The index of the element to return. * @return The allowedPersistenceRegions at the given index. */ java.lang.String getAllowedPersistenceRegions(int index); /** - * - * *
    * A list of IDs of GCP regions where messages that are published to the topic
    * may be persisted in storage. Messages published by publishers running in
@@ -84,9 +58,9 @@ public interface MessageStoragePolicyOrBuilder
    * 
* * repeated string allowed_persistence_regions = 1; - * * @param index The index of the value to return. * @return The bytes of the allowedPersistenceRegions at the given index. */ - com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int index); + com.google.protobuf.ByteString + getAllowedPersistenceRegionsBytes(int index); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java similarity index 72% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index a3e24dce8..50f2c3143 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Request for the ModifyAckDeadline method.
  * 
* * Protobuf type {@code google.pubsub.v1.ModifyAckDeadlineRequest} */ -public final class ModifyAckDeadlineRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ModifyAckDeadlineRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ModifyAckDeadlineRequest) ModifyAckDeadlineRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ModifyAckDeadlineRequest.newBuilder() to construct. private ModifyAckDeadlineRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ModifyAckDeadlineRequest() { subscription_ = ""; ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -44,15 +26,16 @@ private ModifyAckDeadlineRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ModifyAckDeadlineRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ModifyAckDeadlineRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,41 +55,40 @@ private ModifyAckDeadlineRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - case 24: - { - ackDeadlineSeconds_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - ackIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - ackIds_.add(s); - break; + subscription_ = s; + break; + } + case 24: { + + ackDeadlineSeconds_ = input.readInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + ackIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + ackIds_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { ackIds_ = ackIds_.getUnmodifiableView(); @@ -115,36 +97,28 @@ private ModifyAckDeadlineRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ModifyAckDeadlineRequest.class, - com.google.pubsub.v1.ModifyAckDeadlineRequest.Builder.class); + com.google.pubsub.v1.ModifyAckDeadlineRequest.class, com.google.pubsub.v1.ModifyAckDeadlineRequest.Builder.class); } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object subscription_; /** - * - * *
    * Required. The name of the subscription.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The subscription. */ @java.lang.Override @@ -153,32 +127,30 @@ 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; } } /** - * - * *
    * Required. The name of the subscription.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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 { @@ -189,42 +161,34 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public static final int ACK_IDS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList ackIds_; /** - * - * *
    * Required. List of acknowledgment IDs.
    * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList getAckIdsList() { + public com.google.protobuf.ProtocolStringList + getAckIdsList() { return ackIds_; } /** - * - * *
    * Required. List of acknowledgment IDs.
    * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** - * - * *
    * Required. List of acknowledgment IDs.
    * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -232,26 +196,22 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** - * - * *
    * Required. List of acknowledgment IDs.
    * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. */ - public com.google.protobuf.ByteString getAckIdsBytes(int index) { + public com.google.protobuf.ByteString + getAckIdsBytes(int index) { return ackIds_.getByteString(index); } public static final int ACK_DEADLINE_SECONDS_FIELD_NUMBER = 3; private int ackDeadlineSeconds_; /** - * - * *
    * Required. The new ack deadline with respect to the time this request was
    * sent to the Pub/Sub system. For example, if the value is 10, the new ack
@@ -264,7 +224,6 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) {
    * 
* * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The ackDeadlineSeconds. */ @java.lang.Override @@ -273,7 +232,6 @@ public int getAckDeadlineSeconds() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,8 +243,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getSubscriptionBytes().isEmpty()) { + 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_); } if (ackDeadlineSeconds_ != 0) { @@ -304,11 +263,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getSubscriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } if (ackDeadlineSeconds_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, ackDeadlineSeconds_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, ackDeadlineSeconds_); } { int dataSize = 0; @@ -326,17 +286,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.pubsub.v1.ModifyAckDeadlineRequest)) { return super.equals(obj); } - com.google.pubsub.v1.ModifyAckDeadlineRequest other = - (com.google.pubsub.v1.ModifyAckDeadlineRequest) obj; + com.google.pubsub.v1.ModifyAckDeadlineRequest other = (com.google.pubsub.v1.ModifyAckDeadlineRequest) obj; - if (!getSubscription().equals(other.getSubscription())) return false; - if (!getAckIdsList().equals(other.getAckIdsList())) return false; - if (getAckDeadlineSeconds() != other.getAckDeadlineSeconds()) return false; + if (!getSubscription() + .equals(other.getSubscription())) return false; + if (!getAckIdsList() + .equals(other.getAckIdsList())) return false; + if (getAckDeadlineSeconds() + != other.getAckDeadlineSeconds()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -361,127 +323,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ModifyAckDeadlineRequest 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.pubsub.v1.ModifyAckDeadlineRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.ModifyAckDeadlineRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 the ModifyAckDeadline method.
    * 
* * Protobuf type {@code google.pubsub.v1.ModifyAckDeadlineRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ModifyAckDeadlineRequest) com.google.pubsub.v1.ModifyAckDeadlineRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ModifyAckDeadlineRequest.class, - com.google.pubsub.v1.ModifyAckDeadlineRequest.Builder.class); + com.google.pubsub.v1.ModifyAckDeadlineRequest.class, com.google.pubsub.v1.ModifyAckDeadlineRequest.Builder.class); } // Construct using com.google.pubsub.v1.ModifyAckDeadlineRequest.newBuilder() @@ -489,15 +442,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -511,9 +465,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; } @java.lang.Override @@ -532,8 +486,7 @@ public com.google.pubsub.v1.ModifyAckDeadlineRequest build() { @java.lang.Override public com.google.pubsub.v1.ModifyAckDeadlineRequest buildPartial() { - com.google.pubsub.v1.ModifyAckDeadlineRequest result = - new com.google.pubsub.v1.ModifyAckDeadlineRequest(this); + com.google.pubsub.v1.ModifyAckDeadlineRequest result = new com.google.pubsub.v1.ModifyAckDeadlineRequest(this); int from_bitField0_ = bitField0_; result.subscription_ = subscription_; if (((bitField0_ & 0x00000001) != 0)) { @@ -550,39 +503,38 @@ public com.google.pubsub.v1.ModifyAckDeadlineRequest 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.pubsub.v1.ModifyAckDeadlineRequest) { - return mergeFrom((com.google.pubsub.v1.ModifyAckDeadlineRequest) other); + return mergeFrom((com.google.pubsub.v1.ModifyAckDeadlineRequest)other); } else { super.mergeFrom(other); return this; @@ -636,28 +588,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object subscription_ = ""; /** - * - * *
      * Required. The name of the subscription.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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; @@ -666,24 +613,21 @@ public java.lang.String getSubscription() { } } /** - * - * *
      * Required. The name of the subscription.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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 { @@ -691,121 +635,98 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * Required. The name of the subscription.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription(java.lang.String value) { + public Builder setSubscription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the subscription.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearSubscription() { - + subscription_ = getDefaultInstance().getSubscription(); onChanged(); return this; } /** - * - * *
      * Required. The name of the subscription.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList ackIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAckIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Required. List of acknowledgment IDs.
      * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList getAckIdsList() { + public com.google.protobuf.ProtocolStringList + getAckIdsList() { return ackIds_.getUnmodifiableView(); } /** - * - * *
      * Required. List of acknowledgment IDs.
      * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** - * - * *
      * Required. List of acknowledgment IDs.
      * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -813,90 +734,80 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** - * - * *
      * Required. List of acknowledgment IDs.
      * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. */ - public com.google.protobuf.ByteString getAckIdsBytes(int index) { + public com.google.protobuf.ByteString + getAckIdsBytes(int index) { return ackIds_.getByteString(index); } /** - * - * *
      * Required. List of acknowledgment IDs.
      * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The ackIds to set. * @return This builder for chaining. */ - public Builder setAckIds(int index, java.lang.String value) { + public Builder setAckIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. List of acknowledgment IDs.
      * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The ackIds to add. * @return This builder for chaining. */ - public Builder addAckIds(java.lang.String value) { + public Builder addAckIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); return this; } /** - * - * *
      * Required. List of acknowledgment IDs.
      * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The ackIds to add. * @return This builder for chaining. */ - public Builder addAllAckIds(java.lang.Iterable values) { + public Builder addAllAckIds( + java.lang.Iterable values) { ensureAckIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ackIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ackIds_); onChanged(); return this; } /** - * - * *
      * Required. List of acknowledgment IDs.
      * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAckIds() { @@ -906,32 +817,28 @@ public Builder clearAckIds() { return this; } /** - * - * *
      * Required. List of acknowledgment IDs.
      * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the ackIds to add. * @return This builder for chaining. */ - public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { + public Builder addAckIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); return this; } - private int ackDeadlineSeconds_; + private int ackDeadlineSeconds_ ; /** - * - * *
      * Required. The new ack deadline with respect to the time this request was
      * sent to the Pub/Sub system. For example, if the value is 10, the new ack
@@ -944,7 +851,6 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The ackDeadlineSeconds. */ @java.lang.Override @@ -952,8 +858,6 @@ public int getAckDeadlineSeconds() { return ackDeadlineSeconds_; } /** - * - * *
      * Required. The new ack deadline with respect to the time this request was
      * sent to the Pub/Sub system. For example, if the value is 10, the new ack
@@ -966,19 +870,16 @@ public int getAckDeadlineSeconds() {
      * 
* * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The ackDeadlineSeconds to set. * @return This builder for chaining. */ public Builder setAckDeadlineSeconds(int value) { - + ackDeadlineSeconds_ = value; onChanged(); return this; } /** - * - * *
      * Required. The new ack deadline with respect to the time this request was
      * sent to the Pub/Sub system. For example, if the value is 10, the new ack
@@ -991,18 +892,17 @@ public Builder setAckDeadlineSeconds(int value) {
      * 
* * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAckDeadlineSeconds() { - + ackDeadlineSeconds_ = 0; 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); } @@ -1012,12 +912,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ModifyAckDeadlineRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ModifyAckDeadlineRequest) private static final com.google.pubsub.v1.ModifyAckDeadlineRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ModifyAckDeadlineRequest(); } @@ -1026,16 +926,16 @@ public static com.google.pubsub.v1.ModifyAckDeadlineRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModifyAckDeadlineRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ModifyAckDeadlineRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModifyAckDeadlineRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ModifyAckDeadlineRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1050,4 +950,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ModifyAckDeadlineRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java similarity index 67% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java index 663ca36d9..934a38975 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -1,113 +1,76 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; -public interface ModifyAckDeadlineRequestOrBuilder - extends +public interface ModifyAckDeadlineRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ModifyAckDeadlineRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the subscription.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The subscription. */ java.lang.String getSubscription(); /** - * - * *
    * Required. The name of the subscription.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for subscription. */ - com.google.protobuf.ByteString getSubscriptionBytes(); + com.google.protobuf.ByteString + getSubscriptionBytes(); /** - * - * *
    * Required. List of acknowledgment IDs.
    * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the ackIds. */ - java.util.List getAckIdsList(); + java.util.List + getAckIdsList(); /** - * - * *
    * Required. List of acknowledgment IDs.
    * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of ackIds. */ int getAckIdsCount(); /** - * - * *
    * Required. List of acknowledgment IDs.
    * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The ackIds at the given index. */ java.lang.String getAckIds(int index); /** - * - * *
    * Required. List of acknowledgment IDs.
    * 
* * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. */ - com.google.protobuf.ByteString getAckIdsBytes(int index); + com.google.protobuf.ByteString + getAckIdsBytes(int index); /** - * - * *
    * Required. The new ack deadline with respect to the time this request was
    * sent to the Pub/Sub system. For example, if the value is 10, the new ack
@@ -120,7 +83,6 @@ public interface ModifyAckDeadlineRequestOrBuilder
    * 
* * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The ackDeadlineSeconds. */ int getAckDeadlineSeconds(); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java similarity index 69% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index 0ee605fad..58e9a53c2 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Request for the ModifyPushConfig method.
  * 
* * Protobuf type {@code google.pubsub.v1.ModifyPushConfigRequest} */ -public final class ModifyPushConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ModifyPushConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ModifyPushConfigRequest) ModifyPushConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ModifyPushConfigRequest.newBuilder() to construct. private ModifyPushConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ModifyPushConfigRequest() { subscription_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ModifyPushConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ModifyPushConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,76 +53,66 @@ private ModifyPushConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; + subscription_ = s; + break; + } + case 18: { + com.google.pubsub.v1.PushConfig.Builder subBuilder = null; + if (pushConfig_ != null) { + subBuilder = pushConfig_.toBuilder(); } - case 18: - { - com.google.pubsub.v1.PushConfig.Builder subBuilder = null; - if (pushConfig_ != null) { - subBuilder = pushConfig_.toBuilder(); - } - pushConfig_ = - input.readMessage(com.google.pubsub.v1.PushConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pushConfig_); - pushConfig_ = subBuilder.buildPartial(); - } - - break; + pushConfig_ = input.readMessage(com.google.pubsub.v1.PushConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pushConfig_); + pushConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ModifyPushConfigRequest.class, - com.google.pubsub.v1.ModifyPushConfigRequest.Builder.class); + com.google.pubsub.v1.ModifyPushConfigRequest.class, com.google.pubsub.v1.ModifyPushConfigRequest.Builder.class); } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object subscription_; /** - * - * *
    * Required. The name of the subscription.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The subscription. */ @java.lang.Override @@ -148,32 +121,30 @@ 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; } } /** - * - * *
    * Required. The name of the subscription.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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 { @@ -184,8 +155,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public static final int PUSH_CONFIG_FIELD_NUMBER = 2; private com.google.pubsub.v1.PushConfig pushConfig_; /** - * - * *
    * Required. The push configuration for future deliveries.
    * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -194,9 +163,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() {
    * the subscription if `Pull` or `StreamingPull` is not called.
    * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the pushConfig field is set. */ @java.lang.Override @@ -204,8 +171,6 @@ public boolean hasPushConfig() { return pushConfig_ != null; } /** - * - * *
    * Required. The push configuration for future deliveries.
    * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -214,9 +179,7 @@ public boolean hasPushConfig() {
    * the subscription if `Pull` or `StreamingPull` is not called.
    * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The pushConfig. */ @java.lang.Override @@ -224,8 +187,6 @@ public com.google.pubsub.v1.PushConfig getPushConfig() { return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_; } /** - * - * *
    * Required. The push configuration for future deliveries.
    * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -234,8 +195,7 @@ public com.google.pubsub.v1.PushConfig getPushConfig() {
    * the subscription if `Pull` or `StreamingPull` is not called.
    * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { @@ -243,7 +203,6 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,8 +214,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getSubscriptionBytes().isEmpty()) { + 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_); } if (pushConfig_ != null) { @@ -271,11 +231,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getSubscriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } if (pushConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPushConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPushConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -285,18 +246,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.ModifyPushConfigRequest)) { return super.equals(obj); } - com.google.pubsub.v1.ModifyPushConfigRequest other = - (com.google.pubsub.v1.ModifyPushConfigRequest) obj; + com.google.pubsub.v1.ModifyPushConfigRequest other = (com.google.pubsub.v1.ModifyPushConfigRequest) obj; - if (!getSubscription().equals(other.getSubscription())) return false; + if (!getSubscription() + .equals(other.getSubscription())) return false; if (hasPushConfig() != other.hasPushConfig()) return false; if (hasPushConfig()) { - if (!getPushConfig().equals(other.getPushConfig())) return false; + if (!getPushConfig() + .equals(other.getPushConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -320,127 +282,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ModifyPushConfigRequest 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.pubsub.v1.ModifyPushConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.pubsub.v1.ModifyPushConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ModifyPushConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.ModifyPushConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.ModifyPushConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 the ModifyPushConfig method.
    * 
* * Protobuf type {@code google.pubsub.v1.ModifyPushConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ModifyPushConfigRequest) com.google.pubsub.v1.ModifyPushConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ModifyPushConfigRequest.class, - com.google.pubsub.v1.ModifyPushConfigRequest.Builder.class); + com.google.pubsub.v1.ModifyPushConfigRequest.class, com.google.pubsub.v1.ModifyPushConfigRequest.Builder.class); } // Construct using com.google.pubsub.v1.ModifyPushConfigRequest.newBuilder() @@ -448,15 +401,16 @@ 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) { + } } - @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.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; } @java.lang.Override @@ -493,8 +447,7 @@ public com.google.pubsub.v1.ModifyPushConfigRequest build() { @java.lang.Override public com.google.pubsub.v1.ModifyPushConfigRequest buildPartial() { - com.google.pubsub.v1.ModifyPushConfigRequest result = - new com.google.pubsub.v1.ModifyPushConfigRequest(this); + com.google.pubsub.v1.ModifyPushConfigRequest result = new com.google.pubsub.v1.ModifyPushConfigRequest(this); result.subscription_ = subscription_; if (pushConfigBuilder_ == null) { result.pushConfig_ = pushConfig_; @@ -509,39 +462,38 @@ public com.google.pubsub.v1.ModifyPushConfigRequest 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.pubsub.v1.ModifyPushConfigRequest) { - return mergeFrom((com.google.pubsub.v1.ModifyPushConfigRequest) other); + return mergeFrom((com.google.pubsub.v1.ModifyPushConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -588,23 +540,19 @@ public Builder mergeFrom( private java.lang.Object subscription_ = ""; /** - * - * *
      * Required. The name of the subscription.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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; @@ -613,24 +561,21 @@ public java.lang.String getSubscription() { } } /** - * - * *
      * Required. The name of the subscription.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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,70 +583,57 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * Required. The name of the subscription.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription(java.lang.String value) { + public Builder setSubscription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the subscription.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearSubscription() { - + subscription_ = getDefaultInstance().getSubscription(); onChanged(); return this; } /** - * - * *
      * Required. The name of the subscription.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = value; onChanged(); return this; @@ -709,13 +641,8 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { private com.google.pubsub.v1.PushConfig pushConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PushConfig, - com.google.pubsub.v1.PushConfig.Builder, - com.google.pubsub.v1.PushConfigOrBuilder> - pushConfigBuilder_; + com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder> pushConfigBuilder_; /** - * - * *
      * Required. The push configuration for future deliveries.
      * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -724,17 +651,13 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) {
      * the subscription if `Pull` or `StreamingPull` is not called.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the pushConfig field is set. */ public boolean hasPushConfig() { return pushConfigBuilder_ != null || pushConfig_ != null; } /** - * - * *
      * Required. The push configuration for future deliveries.
      * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -743,23 +666,17 @@ public boolean hasPushConfig() {
      * the subscription if `Pull` or `StreamingPull` is not called.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The pushConfig. */ public com.google.pubsub.v1.PushConfig getPushConfig() { if (pushConfigBuilder_ == null) { - return pushConfig_ == null - ? com.google.pubsub.v1.PushConfig.getDefaultInstance() - : pushConfig_; + return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_; } else { return pushConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The push configuration for future deliveries.
      * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -768,8 +685,7 @@ public com.google.pubsub.v1.PushConfig getPushConfig() {
      * the subscription if `Pull` or `StreamingPull` is not called.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) { if (pushConfigBuilder_ == null) { @@ -785,8 +701,6 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) { return this; } /** - * - * *
      * Required. The push configuration for future deliveries.
      * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -795,10 +709,10 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) {
      * the subscription if `Pull` or `StreamingPull` is not called.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForValue) { + public Builder setPushConfig( + com.google.pubsub.v1.PushConfig.Builder builderForValue) { if (pushConfigBuilder_ == null) { pushConfig_ = builderForValue.build(); onChanged(); @@ -809,8 +723,6 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForV return this; } /** - * - * *
      * Required. The push configuration for future deliveries.
      * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -819,16 +731,13 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForV
      * the subscription if `Pull` or `StreamingPull` is not called.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { if (pushConfigBuilder_ == null) { if (pushConfig_ != null) { pushConfig_ = - com.google.pubsub.v1.PushConfig.newBuilder(pushConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.pubsub.v1.PushConfig.newBuilder(pushConfig_).mergeFrom(value).buildPartial(); } else { pushConfig_ = value; } @@ -840,8 +749,6 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { return this; } /** - * - * *
      * Required. The push configuration for future deliveries.
      * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -850,8 +757,7 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) {
      * the subscription if `Pull` or `StreamingPull` is not called.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPushConfig() { if (pushConfigBuilder_ == null) { @@ -865,8 +771,6 @@ public Builder clearPushConfig() { return this; } /** - * - * *
      * Required. The push configuration for future deliveries.
      * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -875,17 +779,14 @@ public Builder clearPushConfig() {
      * the subscription if `Pull` or `StreamingPull` is not called.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() { - + onChanged(); return getPushConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The push configuration for future deliveries.
      * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -894,21 +795,17 @@ public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() {
      * the subscription if `Pull` or `StreamingPull` is not called.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { if (pushConfigBuilder_ != null) { return pushConfigBuilder_.getMessageOrBuilder(); } else { - return pushConfig_ == null - ? com.google.pubsub.v1.PushConfig.getDefaultInstance() - : pushConfig_; + return pushConfig_ == null ? + com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_; } } /** - * - * *
      * Required. The push configuration for future deliveries.
      * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -917,28 +814,24 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() {
      * the subscription if `Pull` or `StreamingPull` is not called.
      * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PushConfig, - com.google.pubsub.v1.PushConfig.Builder, - com.google.pubsub.v1.PushConfigOrBuilder> + com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder> getPushConfigFieldBuilder() { if (pushConfigBuilder_ == null) { - pushConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PushConfig, - com.google.pubsub.v1.PushConfig.Builder, - com.google.pubsub.v1.PushConfigOrBuilder>( - getPushConfig(), getParentForChildren(), isClean()); + pushConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder>( + getPushConfig(), + getParentForChildren(), + isClean()); pushConfig_ = null; } return pushConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -948,12 +841,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ModifyPushConfigRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ModifyPushConfigRequest) private static final com.google.pubsub.v1.ModifyPushConfigRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ModifyPushConfigRequest(); } @@ -962,16 +855,16 @@ public static com.google.pubsub.v1.ModifyPushConfigRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModifyPushConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ModifyPushConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModifyPushConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ModifyPushConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -986,4 +879,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ModifyPushConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java similarity index 64% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java index 10a208c31..3b80a1389 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; -public interface ModifyPushConfigRequestOrBuilder - extends +public interface ModifyPushConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ModifyPushConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the subscription.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The subscription. */ java.lang.String getSubscription(); /** - * - * *
    * Required. The name of the subscription.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for subscription. */ - com.google.protobuf.ByteString getSubscriptionBytes(); + com.google.protobuf.ByteString + getSubscriptionBytes(); /** - * - * *
    * Required. The push configuration for future deliveries.
    * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -65,15 +38,11 @@ public interface ModifyPushConfigRequestOrBuilder
    * the subscription if `Pull` or `StreamingPull` is not called.
    * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the pushConfig field is set. */ boolean hasPushConfig(); /** - * - * *
    * Required. The push configuration for future deliveries.
    * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -82,15 +51,11 @@ public interface ModifyPushConfigRequestOrBuilder
    * the subscription if `Pull` or `StreamingPull` is not called.
    * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The pushConfig. */ com.google.pubsub.v1.PushConfig getPushConfig(); /** - * - * *
    * Required. The push configuration for future deliveries.
    * An empty `pushConfig` indicates that the Pub/Sub system should
@@ -99,8 +64,7 @@ public interface ModifyPushConfigRequestOrBuilder
    * the subscription if `Pull` or `StreamingPull` is not called.
    * 
* - * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java similarity index 100% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java similarity index 64% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index f255ee55b..758b3c9f4 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Request for the Publish method.
  * 
* * Protobuf type {@code google.pubsub.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.pubsub.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() { topic_ = ""; messages_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private PublishRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PublishRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PublishRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,37 +55,35 @@ private PublishRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - topic_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - messages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - messages_.add( - input.readMessage( - com.google.pubsub.v1.PubsubMessage.parser(), extensionRegistry)); - break; + topic_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + messages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + messages_.add( + input.readMessage(com.google.pubsub.v1.PubsubMessage.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { messages_ = java.util.Collections.unmodifiableList(messages_); @@ -111,36 +92,28 @@ private PublishRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_PublishRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.PublishRequest.class, - com.google.pubsub.v1.PublishRequest.Builder.class); + com.google.pubsub.v1.PublishRequest.class, com.google.pubsub.v1.PublishRequest.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; private volatile java.lang.Object topic_; /** - * - * *
    * Required. The messages in the request will be published on this topic.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * - * 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 @@ -149,32 +122,30 @@ 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 messages in the request will be published on this topic.
    * Format is `projects/{project}/topics/{topic}`.
    * 
* - * - * 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 { @@ -185,84 +156,64 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int MESSAGES_FIELD_NUMBER = 2; private java.util.List messages_; /** - * - * *
    * Required. The messages to publish.
    * 
* - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getMessagesList() { return messages_; } /** - * - * *
    * Required. The messages to publish.
    * 
* - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getMessagesOrBuilderList() { return messages_; } /** - * - * *
    * Required. The messages to publish.
    * 
* - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getMessagesCount() { return messages_.size(); } /** - * - * *
    * Required. The messages to publish.
    * 
* - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.pubsub.v1.PubsubMessage getMessages(int index) { return messages_.get(index); } /** - * - * *
    * Required. The messages to publish.
    * 
* - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder(int index) { + public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder( + int index) { return messages_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,8 +225,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTopicBytes().isEmpty()) { + 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_); } for (int i = 0; i < messages_.size(); i++) { @@ -290,11 +242,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTopicBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); } for (int i = 0; i < messages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, messages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, messages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -304,15 +257,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.pubsub.v1.PublishRequest)) { return super.equals(obj); } com.google.pubsub.v1.PublishRequest other = (com.google.pubsub.v1.PublishRequest) obj; - if (!getTopic().equals(other.getTopic())) return false; - if (!getMessagesList().equals(other.getMessagesList())) return false; + if (!getTopic() + .equals(other.getTopic())) return false; + if (!getMessagesList() + .equals(other.getMessagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -335,126 +290,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.PublishRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.PublishRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.PublishRequest parseFrom(com.google.protobuf.ByteString data) + public static com.google.pubsub.v1.PublishRequest parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.PublishRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.PublishRequest 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.pubsub.v1.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.pubsub.v1.PublishRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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 for the Publish method.
    * 
* * Protobuf type {@code google.pubsub.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.pubsub.v1.PublishRequest) com.google.pubsub.v1.PublishRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_PublishRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.PublishRequest.class, - com.google.pubsub.v1.PublishRequest.Builder.class); + com.google.pubsub.v1.PublishRequest.class, com.google.pubsub.v1.PublishRequest.Builder.class); } // Construct using com.google.pubsub.v1.PublishRequest.newBuilder() @@ -462,17 +409,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) { getMessagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -488,9 +435,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_PublishRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_descriptor; } @java.lang.Override @@ -529,39 +476,38 @@ public com.google.pubsub.v1.PublishRequest 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.pubsub.v1.PublishRequest) { - return mergeFrom((com.google.pubsub.v1.PublishRequest) other); + return mergeFrom((com.google.pubsub.v1.PublishRequest)other); } else { super.mergeFrom(other); return this; @@ -592,10 +538,9 @@ public Builder mergeFrom(com.google.pubsub.v1.PublishRequest 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_); } @@ -629,28 +574,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object topic_ = ""; /** - * - * *
      * Required. The messages in the request will be published on this topic.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * - * 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; @@ -659,24 +599,21 @@ public java.lang.String getTopic() { } } /** - * - * *
      * Required. The messages in the request will be published on this topic.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * - * 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 { @@ -684,101 +621,80 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
      * Required. The messages in the request will be published on this topic.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * - * 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) { + public Builder setTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topic_ = value; onChanged(); return this; } /** - * - * *
      * Required. The messages in the request will be published on this topic.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * - * 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() { - + topic_ = getDefaultInstance().getTopic(); onChanged(); return this; } /** - * - * *
      * Required. The messages in the request will be published on this topic.
      * Format is `projects/{project}/topics/{topic}`.
      * 
* - * - * 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) { + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; onChanged(); return this; } 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_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.PubsubMessage, - com.google.pubsub.v1.PubsubMessage.Builder, - com.google.pubsub.v1.PubsubMessageOrBuilder> - messagesBuilder_; + com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder> messagesBuilder_; /** - * - * *
      * Required. The messages to publish.
      * 
* - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getMessagesList() { if (messagesBuilder_ == null) { @@ -788,15 +704,11 @@ public java.util.List getMessagesList() { } } /** - * - * *
      * Required. The messages to publish.
      * 
* - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; */ public int getMessagesCount() { if (messagesBuilder_ == null) { @@ -806,15 +718,11 @@ public int getMessagesCount() { } } /** - * - * *
      * Required. The messages to publish.
      * 
* - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.pubsub.v1.PubsubMessage getMessages(int index) { if (messagesBuilder_ == null) { @@ -824,17 +732,14 @@ public com.google.pubsub.v1.PubsubMessage getMessages(int index) { } } /** - * - * *
      * Required. The messages to publish.
      * 
* - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setMessages(int index, com.google.pubsub.v1.PubsubMessage value) { + public Builder setMessages( + int index, com.google.pubsub.v1.PubsubMessage value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -848,15 +753,11 @@ public Builder setMessages(int index, com.google.pubsub.v1.PubsubMessage value) return this; } /** - * - * *
      * Required. The messages to publish.
      * 
* - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setMessages( int index, com.google.pubsub.v1.PubsubMessage.Builder builderForValue) { @@ -870,15 +771,11 @@ public Builder setMessages( return this; } /** - * - * *
      * Required. The messages to publish.
      * 
* - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addMessages(com.google.pubsub.v1.PubsubMessage value) { if (messagesBuilder_ == null) { @@ -894,17 +791,14 @@ public Builder addMessages(com.google.pubsub.v1.PubsubMessage value) { return this; } /** - * - * *
      * Required. The messages to publish.
      * 
* - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addMessages(int index, com.google.pubsub.v1.PubsubMessage value) { + public Builder addMessages( + int index, com.google.pubsub.v1.PubsubMessage value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -918,17 +812,14 @@ public Builder addMessages(int index, com.google.pubsub.v1.PubsubMessage value) return this; } /** - * - * *
      * Required. The messages to publish.
      * 
* - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addMessages(com.google.pubsub.v1.PubsubMessage.Builder builderForValue) { + public Builder addMessages( + com.google.pubsub.v1.PubsubMessage.Builder builderForValue) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); messages_.add(builderForValue.build()); @@ -939,15 +830,11 @@ public Builder addMessages(com.google.pubsub.v1.PubsubMessage.Builder builderFor return this; } /** - * - * *
      * Required. The messages to publish.
      * 
* - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addMessages( int index, com.google.pubsub.v1.PubsubMessage.Builder builderForValue) { @@ -961,21 +848,18 @@ public Builder addMessages( return this; } /** - * - * *
      * Required. The messages to publish.
      * 
* - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; */ 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); @@ -983,15 +867,11 @@ public Builder addAllMessages( return this; } /** - * - * *
      * Required. The messages to publish.
      * 
* - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearMessages() { if (messagesBuilder_ == null) { @@ -1004,15 +884,11 @@ public Builder clearMessages() { return this; } /** - * - * *
      * Required. The messages to publish.
      * 
* - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeMessages(int index) { if (messagesBuilder_ == null) { @@ -1025,50 +901,39 @@ public Builder removeMessages(int index) { return this; } /** - * - * *
      * Required. The messages to publish.
      * 
* - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.pubsub.v1.PubsubMessage.Builder getMessagesBuilder(int index) { + public com.google.pubsub.v1.PubsubMessage.Builder getMessagesBuilder( + int index) { return getMessagesFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. The messages to publish.
      * 
* - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder(int index) { + public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder( + int index) { if (messagesBuilder_ == null) { - return messages_.get(index); - } else { + return messages_.get(index); } else { return messagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. The messages to publish.
      * 
* - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getMessagesOrBuilderList() { + public java.util.List + getMessagesOrBuilderList() { if (messagesBuilder_ != null) { return messagesBuilder_.getMessageOrBuilderList(); } else { @@ -1076,69 +941,56 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder(int inde } } /** - * - * *
      * Required. The messages to publish.
      * 
* - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.pubsub.v1.PubsubMessage.Builder addMessagesBuilder() { - return getMessagesFieldBuilder() - .addBuilder(com.google.pubsub.v1.PubsubMessage.getDefaultInstance()); + return getMessagesFieldBuilder().addBuilder( + com.google.pubsub.v1.PubsubMessage.getDefaultInstance()); } /** - * - * *
      * Required. The messages to publish.
      * 
* - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.pubsub.v1.PubsubMessage.Builder addMessagesBuilder(int index) { - return getMessagesFieldBuilder() - .addBuilder(index, com.google.pubsub.v1.PubsubMessage.getDefaultInstance()); + public com.google.pubsub.v1.PubsubMessage.Builder addMessagesBuilder( + int index) { + return getMessagesFieldBuilder().addBuilder( + index, com.google.pubsub.v1.PubsubMessage.getDefaultInstance()); } /** - * - * *
      * Required. The messages to publish.
      * 
* - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List getMessagesBuilderList() { + public java.util.List + getMessagesBuilderList() { return getMessagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.PubsubMessage, - com.google.pubsub.v1.PubsubMessage.Builder, - com.google.pubsub.v1.PubsubMessageOrBuilder> + com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder> getMessagesFieldBuilder() { if (messagesBuilder_ == null) { - messagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.PubsubMessage, - com.google.pubsub.v1.PubsubMessage.Builder, - com.google.pubsub.v1.PubsubMessageOrBuilder>( - messages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + messagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder>( + 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); } @@ -1148,12 +1000,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PublishRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.PublishRequest) private static final com.google.pubsub.v1.PublishRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.PublishRequest(); } @@ -1162,16 +1014,16 @@ public static com.google.pubsub.v1.PublishRequest getDefaultInstance() { 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 { - return new PublishRequest(input, extensionRegistry); - } - }; + 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 { + return new PublishRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1186,4 +1038,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.PublishRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java new file mode 100644 index 000000000..96eba7dc9 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface PublishRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PublishRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The messages in the request will be published on this topic.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The topic. + */ + java.lang.String getTopic(); + /** + *
+   * Required. The messages in the request will be published on this topic.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for topic. + */ + com.google.protobuf.ByteString + getTopicBytes(); + + /** + *
+   * Required. The messages to publish.
+   * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getMessagesList(); + /** + *
+   * Required. The messages to publish.
+   * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.pubsub.v1.PubsubMessage getMessages(int index); + /** + *
+   * Required. The messages to publish.
+   * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + int getMessagesCount(); + /** + *
+   * Required. The messages to publish.
+   * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + java.util.List + getMessagesOrBuilderList(); + /** + *
+   * Required. The messages to publish.
+   * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder( + int index); +} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java similarity index 72% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index 750a74022..eb19a3396 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Response for the `Publish` method.
  * 
* * Protobuf type {@code google.pubsub.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.pubsub.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() { messageIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PublishResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PublishResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,29 +54,29 @@ private PublishResponse( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - messageIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - messageIds_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + messageIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + messageIds_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { messageIds_ = messageIds_.getUnmodifiableView(); @@ -102,27 +85,22 @@ private PublishResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_PublishResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.PublishResponse.class, - com.google.pubsub.v1.PublishResponse.Builder.class); + com.google.pubsub.v1.PublishResponse.class, com.google.pubsub.v1.PublishResponse.Builder.class); } public static final int MESSAGE_IDS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList messageIds_; /** - * - * *
    * The server-assigned ID of each published message, in the same order as
    * the messages in the request. IDs are guaranteed to be unique within
@@ -130,15 +108,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string message_ids = 1; - * * @return A list containing the messageIds. */ - public com.google.protobuf.ProtocolStringList getMessageIdsList() { + public com.google.protobuf.ProtocolStringList + getMessageIdsList() { return messageIds_; } /** - * - * *
    * The server-assigned ID of each published message, in the same order as
    * the messages in the request. IDs are guaranteed to be unique within
@@ -146,15 +122,12 @@ public com.google.protobuf.ProtocolStringList getMessageIdsList() {
    * 
* * repeated string message_ids = 1; - * * @return The count of messageIds. */ public int getMessageIdsCount() { return messageIds_.size(); } /** - * - * *
    * The server-assigned ID of each published message, in the same order as
    * the messages in the request. IDs are guaranteed to be unique within
@@ -162,7 +135,6 @@ public int getMessageIdsCount() {
    * 
* * repeated string message_ids = 1; - * * @param index The index of the element to return. * @return The messageIds at the given index. */ @@ -170,8 +142,6 @@ public java.lang.String getMessageIds(int index) { return messageIds_.get(index); } /** - * - * *
    * The server-assigned ID of each published message, in the same order as
    * the messages in the request. IDs are guaranteed to be unique within
@@ -179,16 +149,15 @@ public java.lang.String getMessageIds(int index) {
    * 
* * repeated string message_ids = 1; - * * @param index The index of the value to return. * @return The bytes of the messageIds at the given index. */ - public com.google.protobuf.ByteString getMessageIdsBytes(int index) { + public com.google.protobuf.ByteString + getMessageIdsBytes(int index) { return messageIds_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,7 +169,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 < messageIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, messageIds_.getRaw(i)); } @@ -229,14 +199,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.pubsub.v1.PublishResponse)) { return super.equals(obj); } com.google.pubsub.v1.PublishResponse other = (com.google.pubsub.v1.PublishResponse) obj; - if (!getMessageIdsList().equals(other.getMessageIdsList())) return false; + if (!getMessageIdsList() + .equals(other.getMessageIdsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -257,126 +228,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.PublishResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.PublishResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.PublishResponse parseFrom(com.google.protobuf.ByteString data) + public static com.google.pubsub.v1.PublishResponse parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.PublishResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.PublishResponse 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.pubsub.v1.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.pubsub.v1.PublishResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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 for the `Publish` method.
    * 
* * Protobuf type {@code google.pubsub.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.pubsub.v1.PublishResponse) com.google.pubsub.v1.PublishResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_PublishResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.PublishResponse.class, - com.google.pubsub.v1.PublishResponse.Builder.class); + com.google.pubsub.v1.PublishResponse.class, com.google.pubsub.v1.PublishResponse.Builder.class); } // Construct using com.google.pubsub.v1.PublishResponse.newBuilder() @@ -384,15 +347,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -402,9 +366,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_PublishResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_descriptor; } @java.lang.Override @@ -438,39 +402,38 @@ public com.google.pubsub.v1.PublishResponse 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.pubsub.v1.PublishResponse) { - return mergeFrom((com.google.pubsub.v1.PublishResponse) other); + return mergeFrom((com.google.pubsub.v1.PublishResponse)other); } else { super.mergeFrom(other); return this; @@ -517,21 +480,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList messageIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList messageIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMessageIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { messageIds_ = new com.google.protobuf.LazyStringArrayList(messageIds_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * The server-assigned ID of each published message, in the same order as
      * the messages in the request. IDs are guaranteed to be unique within
@@ -539,15 +497,13 @@ private void ensureMessageIdsIsMutable() {
      * 
* * repeated string message_ids = 1; - * * @return A list containing the messageIds. */ - public com.google.protobuf.ProtocolStringList getMessageIdsList() { + public com.google.protobuf.ProtocolStringList + getMessageIdsList() { return messageIds_.getUnmodifiableView(); } /** - * - * *
      * The server-assigned ID of each published message, in the same order as
      * the messages in the request. IDs are guaranteed to be unique within
@@ -555,15 +511,12 @@ public com.google.protobuf.ProtocolStringList getMessageIdsList() {
      * 
* * repeated string message_ids = 1; - * * @return The count of messageIds. */ public int getMessageIdsCount() { return messageIds_.size(); } /** - * - * *
      * The server-assigned ID of each published message, in the same order as
      * the messages in the request. IDs are guaranteed to be unique within
@@ -571,7 +524,6 @@ public int getMessageIdsCount() {
      * 
* * repeated string message_ids = 1; - * * @param index The index of the element to return. * @return The messageIds at the given index. */ @@ -579,8 +531,6 @@ public java.lang.String getMessageIds(int index) { return messageIds_.get(index); } /** - * - * *
      * The server-assigned ID of each published message, in the same order as
      * the messages in the request. IDs are guaranteed to be unique within
@@ -588,16 +538,14 @@ public java.lang.String getMessageIds(int index) {
      * 
* * repeated string message_ids = 1; - * * @param index The index of the value to return. * @return The bytes of the messageIds at the given index. */ - public com.google.protobuf.ByteString getMessageIdsBytes(int index) { + public com.google.protobuf.ByteString + getMessageIdsBytes(int index) { return messageIds_.getByteString(index); } /** - * - * *
      * The server-assigned ID of each published message, in the same order as
      * the messages in the request. IDs are guaranteed to be unique within
@@ -605,23 +553,21 @@ public com.google.protobuf.ByteString getMessageIdsBytes(int index) {
      * 
* * repeated string message_ids = 1; - * * @param index The index to set the value at. * @param value The messageIds to set. * @return This builder for chaining. */ - public Builder setMessageIds(int index, java.lang.String value) { + public Builder setMessageIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMessageIdsIsMutable(); + throw new NullPointerException(); + } + ensureMessageIdsIsMutable(); messageIds_.set(index, value); onChanged(); return this; } /** - * - * *
      * The server-assigned ID of each published message, in the same order as
      * the messages in the request. IDs are guaranteed to be unique within
@@ -629,22 +575,20 @@ public Builder setMessageIds(int index, java.lang.String value) {
      * 
* * repeated string message_ids = 1; - * * @param value The messageIds to add. * @return This builder for chaining. */ - public Builder addMessageIds(java.lang.String value) { + public Builder addMessageIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureMessageIdsIsMutable(); + throw new NullPointerException(); + } + ensureMessageIdsIsMutable(); messageIds_.add(value); onChanged(); return this; } /** - * - * *
      * The server-assigned ID of each published message, in the same order as
      * the messages in the request. IDs are guaranteed to be unique within
@@ -652,19 +596,18 @@ public Builder addMessageIds(java.lang.String value) {
      * 
* * repeated string message_ids = 1; - * * @param values The messageIds to add. * @return This builder for chaining. */ - public Builder addAllMessageIds(java.lang.Iterable values) { + public Builder addAllMessageIds( + java.lang.Iterable values) { ensureMessageIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messageIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, messageIds_); onChanged(); return this; } /** - * - * *
      * The server-assigned ID of each published message, in the same order as
      * the messages in the request. IDs are guaranteed to be unique within
@@ -672,7 +615,6 @@ public Builder addAllMessageIds(java.lang.Iterable values) {
      * 
* * repeated string message_ids = 1; - * * @return This builder for chaining. */ public Builder clearMessageIds() { @@ -682,8 +624,6 @@ public Builder clearMessageIds() { return this; } /** - * - * *
      * The server-assigned ID of each published message, in the same order as
      * the messages in the request. IDs are guaranteed to be unique within
@@ -691,23 +631,23 @@ public Builder clearMessageIds() {
      * 
* * repeated string message_ids = 1; - * * @param value The bytes of the messageIds to add. * @return This builder for chaining. */ - public Builder addMessageIdsBytes(com.google.protobuf.ByteString value) { + public Builder addMessageIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureMessageIdsIsMutable(); messageIds_.add(value); 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); } @@ -717,12 +657,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PublishResponse) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.PublishResponse) private static final com.google.pubsub.v1.PublishResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.PublishResponse(); } @@ -731,16 +671,16 @@ public static com.google.pubsub.v1.PublishResponse getDefaultInstance() { 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 { - return new PublishResponse(input, extensionRegistry); - } - }; + 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 { + return new PublishResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -755,4 +695,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.PublishResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java similarity index 66% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java index 27dbe63f8..a7b56d66f 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; -public interface PublishResponseOrBuilder - extends +public interface PublishResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PublishResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The server-assigned ID of each published message, in the same order as
    * the messages in the request. IDs are guaranteed to be unique within
@@ -33,13 +15,11 @@ public interface PublishResponseOrBuilder
    * 
* * repeated string message_ids = 1; - * * @return A list containing the messageIds. */ - java.util.List getMessageIdsList(); + java.util.List + getMessageIdsList(); /** - * - * *
    * The server-assigned ID of each published message, in the same order as
    * the messages in the request. IDs are guaranteed to be unique within
@@ -47,13 +27,10 @@ public interface PublishResponseOrBuilder
    * 
* * repeated string message_ids = 1; - * * @return The count of messageIds. */ int getMessageIdsCount(); /** - * - * *
    * The server-assigned ID of each published message, in the same order as
    * the messages in the request. IDs are guaranteed to be unique within
@@ -61,14 +38,11 @@ public interface PublishResponseOrBuilder
    * 
* * repeated string message_ids = 1; - * * @param index The index of the element to return. * @return The messageIds at the given index. */ java.lang.String getMessageIds(int index); /** - * - * *
    * The server-assigned ID of each published message, in the same order as
    * the messages in the request. IDs are guaranteed to be unique within
@@ -76,9 +50,9 @@ public interface PublishResponseOrBuilder
    * 
* * repeated string message_ids = 1; - * * @param index The index of the value to return. * @return The bytes of the messageIds at the given index. */ - com.google.protobuf.ByteString getMessageIdsBytes(int index); + com.google.protobuf.ByteString + getMessageIdsBytes(int index); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java similarity index 71% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index 297538098..62aafb847 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * A message that is published by publishers and consumed by subscribers. The
  * message must contain either a non-empty data field or at least one attribute.
@@ -34,16 +17,15 @@
  *
  * Protobuf type {@code google.pubsub.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.pubsub.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() {
     data_ = com.google.protobuf.ByteString.EMPTY;
     messageId_ = "";
@@ -52,15 +34,16 @@ private PubsubMessage() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new PubsubMessage();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private PubsubMessage(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -80,112 +63,102 @@ private PubsubMessage(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              data_ = input.readBytes();
-              break;
-            }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                attributes_ =
-                    com.google.protobuf.MapField.newMapField(
-                        AttributesDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry attributes__ =
-                  input.readMessage(
-                      AttributesDefaultEntryHolder.defaultEntry.getParserForType(),
-                      extensionRegistry);
-              attributes_.getMutableMap().put(attributes__.getKey(), attributes__.getValue());
-              break;
+          case 10: {
+
+            data_ = input.readBytes();
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              attributes_ = com.google.protobuf.MapField.newMapField(
+                  AttributesDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            com.google.protobuf.MapEntry
+            attributes__ = input.readMessage(
+                AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            attributes_.getMutableMap().put(
+                attributes__.getKey(), attributes__.getValue());
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              messageId_ = s;
-              break;
+            messageId_ = s;
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (publishTime_ != null) {
+              subBuilder = publishTime_.toBuilder();
             }
-          case 34:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (publishTime_ != null) {
-                subBuilder = publishTime_.toBuilder();
-              }
-              publishTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(publishTime_);
-                publishTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            publishTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(publishTime_);
+              publishTime_ = subBuilder.buildPartial();
             }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              orderingKey_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            orderingKey_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.pubsub.v1.PubsubProto
-        .internal_static_google_pubsub_v1_PubsubMessage_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 2:
         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.pubsub.v1.PubsubProto
-        .internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable
+    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.pubsub.v1.PubsubMessage.class,
-            com.google.pubsub.v1.PubsubMessage.Builder.class);
+            com.google.pubsub.v1.PubsubMessage.class, com.google.pubsub.v1.PubsubMessage.Builder.class);
   }
 
   public static final int DATA_FIELD_NUMBER = 1;
   private com.google.protobuf.ByteString data_;
   /**
-   *
-   *
    * 
    * The message data field. If this field is empty, the message must contain
    * at least one attribute.
    * 
* * bytes data = 1; - * * @return The data. */ @java.lang.Override @@ -194,23 +167,24 @@ public com.google.protobuf.ByteString getData() { } public static final int ATTRIBUTES_FIELD_NUMBER = 2; - private static final class AttributesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField attributes_; - - private com.google.protobuf.MapField internalGetAttributes() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> 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_; } @@ -219,8 +193,6 @@ public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** - * - * *
    * Attributes for this message. If this field is empty, the message must
    * contain non-empty data. This can be used to filter messages on the
@@ -229,22 +201,22 @@ public int getAttributesCount() {
    *
    * map<string, string> attributes = 2;
    */
+
   @java.lang.Override
-  public boolean containsAttributes(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsAttributes(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetAttributes().getMap().containsKey(key);
   }
-  /** Use {@link #getAttributesMap()} instead. */
+  /**
+   * Use {@link #getAttributesMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getAttributes() {
     return getAttributesMap();
   }
   /**
-   *
-   *
    * 
    * Attributes for this message. If this field is empty, the message must
    * contain non-empty data. This can be used to filter messages on the
@@ -254,12 +226,11 @@ public java.util.Map getAttributes() {
    * map<string, string> attributes = 2;
    */
   @java.lang.Override
+
   public java.util.Map getAttributesMap() {
     return internalGetAttributes().getMap();
   }
   /**
-   *
-   *
    * 
    * Attributes for this message. If this field is empty, the message must
    * contain non-empty data. This can be used to filter messages on the
@@ -269,17 +240,16 @@ public java.util.Map getAttributesMap() {
    * map<string, string> attributes = 2;
    */
   @java.lang.Override
+
   public java.lang.String getAttributesOrDefault(
-      java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetAttributes().getMap();
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetAttributes().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Attributes for this message. If this field is empty, the message must
    * contain non-empty data. This can be used to filter messages on the
@@ -289,11 +259,12 @@ public java.lang.String getAttributesOrDefault(
    * map<string, string> attributes = 2;
    */
   @java.lang.Override
-  public java.lang.String getAttributesOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetAttributes().getMap();
+
+  public java.lang.String getAttributesOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetAttributes().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -303,8 +274,6 @@ public java.lang.String getAttributesOrThrow(java.lang.String key) {
   public static final int MESSAGE_ID_FIELD_NUMBER = 3;
   private volatile java.lang.Object messageId_;
   /**
-   *
-   *
    * 
    * ID of this message, assigned by the server when the message is published.
    * Guaranteed to be unique within the topic. This value may be read by a
@@ -313,7 +282,6 @@ public java.lang.String getAttributesOrThrow(java.lang.String key) {
    * 
* * string message_id = 3; - * * @return The messageId. */ @java.lang.Override @@ -322,15 +290,14 @@ public java.lang.String getMessageId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); messageId_ = s; return s; } } /** - * - * *
    * ID of this message, assigned by the server when the message is published.
    * Guaranteed to be unique within the topic. This value may be read by a
@@ -339,15 +306,16 @@ public java.lang.String getMessageId() {
    * 
* * string message_id = 3; - * * @return The bytes for messageId. */ @java.lang.Override - public com.google.protobuf.ByteString getMessageIdBytes() { + public com.google.protobuf.ByteString + getMessageIdBytes() { java.lang.Object ref = messageId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); messageId_ = b; return b; } else { @@ -358,8 +326,6 @@ public com.google.protobuf.ByteString getMessageIdBytes() { public static final int PUBLISH_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp publishTime_; /** - * - * *
    * The time at which the message was published, populated by the server when
    * it receives the `Publish` call. It must not be populated by the
@@ -367,7 +333,6 @@ public com.google.protobuf.ByteString getMessageIdBytes() {
    * 
* * .google.protobuf.Timestamp publish_time = 4; - * * @return Whether the publishTime field is set. */ @java.lang.Override @@ -375,8 +340,6 @@ public boolean hasPublishTime() { return publishTime_ != null; } /** - * - * *
    * The time at which the message was published, populated by the server when
    * it receives the `Publish` call. It must not be populated by the
@@ -384,7 +347,6 @@ public boolean hasPublishTime() {
    * 
* * .google.protobuf.Timestamp publish_time = 4; - * * @return The publishTime. */ @java.lang.Override @@ -392,8 +354,6 @@ public com.google.protobuf.Timestamp getPublishTime() { return publishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : publishTime_; } /** - * - * *
    * The time at which the message was published, populated by the server when
    * it receives the `Publish` call. It must not be populated by the
@@ -410,8 +370,6 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
   public static final int ORDERING_KEY_FIELD_NUMBER = 5;
   private volatile java.lang.Object orderingKey_;
   /**
-   *
-   *
    * 
    * If non-empty, identifies related messages for which publish order should be
    * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
@@ -422,7 +380,6 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
    * 
* * string ordering_key = 5; - * * @return The orderingKey. */ @java.lang.Override @@ -431,15 +388,14 @@ public java.lang.String getOrderingKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderingKey_ = s; return s; } } /** - * - * *
    * If non-empty, identifies related messages for which publish order should be
    * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
@@ -450,15 +406,16 @@ public java.lang.String getOrderingKey() {
    * 
* * string ordering_key = 5; - * * @return The bytes for orderingKey. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderingKeyBytes() { + public com.google.protobuf.ByteString + getOrderingKeyBytes() { java.lang.Object ref = orderingKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderingKey_ = b; return b; } else { @@ -467,7 +424,6 @@ public com.google.protobuf.ByteString getOrderingKeyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -479,19 +435,24 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!data_.isEmpty()) { output.writeBytes(1, data_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 2); - if (!getMessageIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAttributes(), + AttributesDefaultEntryHolder.defaultEntry, + 2); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(messageId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, messageId_); } if (publishTime_ != null) { output.writeMessage(4, getPublishTime()); } - if (!getOrderingKeyBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderingKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderingKey_); } unknownFields.writeTo(output); @@ -504,25 +465,27 @@ public int getSerializedSize() { size = 0; if (!data_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, 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(2, attributes__); - } - if (!getMessageIdBytes().isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, 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(2, attributes__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(messageId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, messageId_); } if (publishTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPublishTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getPublishTime()); } - if (!getOrderingKeyBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderingKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderingKey_); } size += unknownFields.getSerializedSize(); @@ -533,21 +496,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.pubsub.v1.PubsubMessage)) { return super.equals(obj); } com.google.pubsub.v1.PubsubMessage other = (com.google.pubsub.v1.PubsubMessage) obj; - if (!getData().equals(other.getData())) return false; - if (!internalGetAttributes().equals(other.internalGetAttributes())) return false; - if (!getMessageId().equals(other.getMessageId())) return false; + if (!getData() + .equals(other.getData())) return false; + if (!internalGetAttributes().equals( + other.internalGetAttributes())) return false; + if (!getMessageId() + .equals(other.getMessageId())) 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 (!getOrderingKey().equals(other.getOrderingKey())) return false; + if (!getOrderingKey() + .equals(other.getOrderingKey())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -578,103 +546,97 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.PubsubMessage parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.PubsubMessage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.PubsubMessage parseFrom(com.google.protobuf.ByteString data) + public static com.google.pubsub.v1.PubsubMessage parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.PubsubMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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.pubsub.v1.PubsubMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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 consumed by subscribers. The
    * message must contain either a non-empty data field or at least one attribute.
@@ -688,43 +650,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.pubsub.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.pubsub.v1.PubsubMessage)
       com.google.pubsub.v1.PubsubMessageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.pubsub.v1.PubsubProto
-          .internal_static_google_pubsub_v1_PubsubMessage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 2:
           return internalGetAttributes();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 2:
           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.pubsub.v1.PubsubProto
-          .internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable
+      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.pubsub.v1.PubsubMessage.class,
-              com.google.pubsub.v1.PubsubMessage.Builder.class);
+              com.google.pubsub.v1.PubsubMessage.class, com.google.pubsub.v1.PubsubMessage.Builder.class);
     }
 
     // Construct using com.google.pubsub.v1.PubsubMessage.newBuilder()
@@ -732,15 +694,16 @@ 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) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -761,9 +724,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.pubsub.v1.PubsubProto
-          .internal_static_google_pubsub_v1_PubsubMessage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_descriptor;
     }
 
     @java.lang.Override
@@ -802,39 +765,38 @@ public com.google.pubsub.v1.PubsubMessage 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.pubsub.v1.PubsubMessage) {
-        return mergeFrom((com.google.pubsub.v1.PubsubMessage) other);
+        return mergeFrom((com.google.pubsub.v1.PubsubMessage)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -846,7 +808,8 @@ public Builder mergeFrom(com.google.pubsub.v1.PubsubMessage other) {
       if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
         setData(other.getData());
       }
-      internalGetMutableAttributes().mergeFrom(other.internalGetAttributes());
+      internalGetMutableAttributes().mergeFrom(
+          other.internalGetAttributes());
       if (!other.getMessageId().isEmpty()) {
         messageId_ = other.messageId_;
         onChanged();
@@ -886,20 +849,16 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
     /**
-     *
-     *
      * 
      * The message data field. If this field is empty, the message must contain
      * at least one attribute.
      * 
* * bytes data = 1; - * * @return The data. */ @java.lang.Override @@ -907,64 +866,56 @@ public com.google.protobuf.ByteString getData() { return data_; } /** - * - * *
      * The message data field. If this field is empty, the message must contain
      * at least one attribute.
      * 
* * bytes data = 1; - * * @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(); - } - + throw new NullPointerException(); + } + data_ = value; onChanged(); return this; } /** - * - * *
      * The message data field. If this field is empty, the message must contain
      * at least one attribute.
      * 
* * bytes data = 1; - * * @return This builder for chaining. */ public Builder clearData() { - + data_ = getDefaultInstance().getData(); onChanged(); return this; } - private com.google.protobuf.MapField attributes_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> attributes_; private com.google.protobuf.MapField - internalGetAttributes() { + internalGetAttributes() { if (attributes_ == null) { return com.google.protobuf.MapField.emptyMapField( AttributesDefaultEntryHolder.defaultEntry); } return attributes_; } - private com.google.protobuf.MapField - internalGetMutableAttributes() { - onChanged(); - ; + internalGetMutableAttributes() { + onChanged();; if (attributes_ == null) { - attributes_ = - com.google.protobuf.MapField.newMapField(AttributesDefaultEntryHolder.defaultEntry); + attributes_ = com.google.protobuf.MapField.newMapField( + AttributesDefaultEntryHolder.defaultEntry); } if (!attributes_.isMutable()) { attributes_ = attributes_.copy(); @@ -976,8 +927,6 @@ public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** - * - * *
      * Attributes for this message. If this field is empty, the message must
      * contain non-empty data. This can be used to filter messages on the
@@ -986,22 +935,22 @@ public int getAttributesCount() {
      *
      * map<string, string> attributes = 2;
      */
+
     @java.lang.Override
-    public boolean containsAttributes(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsAttributes(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetAttributes().getMap().containsKey(key);
     }
-    /** Use {@link #getAttributesMap()} instead. */
+    /**
+     * Use {@link #getAttributesMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getAttributes() {
       return getAttributesMap();
     }
     /**
-     *
-     *
      * 
      * Attributes for this message. If this field is empty, the message must
      * contain non-empty data. This can be used to filter messages on the
@@ -1011,12 +960,11 @@ public java.util.Map getAttributes() {
      * map<string, string> attributes = 2;
      */
     @java.lang.Override
+
     public java.util.Map getAttributesMap() {
       return internalGetAttributes().getMap();
     }
     /**
-     *
-     *
      * 
      * Attributes for this message. If this field is empty, the message must
      * contain non-empty data. This can be used to filter messages on the
@@ -1026,17 +974,16 @@ public java.util.Map getAttributesMap() {
      * map<string, string> attributes = 2;
      */
     @java.lang.Override
+
     public java.lang.String getAttributesOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetAttributes().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetAttributes().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Attributes for this message. If this field is empty, the message must
      * contain non-empty data. This can be used to filter messages on the
@@ -1046,11 +993,12 @@ public java.lang.String getAttributesOrDefault(
      * map<string, string> attributes = 2;
      */
     @java.lang.Override
-    public java.lang.String getAttributesOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetAttributes().getMap();
+
+    public java.lang.String getAttributesOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetAttributes().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1058,12 +1006,11 @@ public java.lang.String getAttributesOrThrow(java.lang.String key) {
     }
 
     public Builder clearAttributes() {
-      internalGetMutableAttributes().getMutableMap().clear();
+      internalGetMutableAttributes().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Attributes for this message. If this field is empty, the message must
      * contain non-empty data. This can be used to filter messages on the
@@ -1072,21 +1019,23 @@ public Builder clearAttributes() {
      *
      * map<string, string> attributes = 2;
      */
-    public Builder removeAttributes(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableAttributes().getMutableMap().remove(key);
+
+    public Builder removeAttributes(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableAttributes().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableAttributes() {
+    public java.util.Map
+    getMutableAttributes() {
       return internalGetMutableAttributes().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Attributes for this message. If this field is empty, the message must
      * contain non-empty data. This can be used to filter messages on the
@@ -1095,19 +1044,16 @@ public java.util.Map getMutableAttributes()
      *
      * map<string, string> attributes = 2;
      */
-    public Builder putAttributes(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableAttributes().getMutableMap().put(key, value);
+    public Builder putAttributes(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableAttributes().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Attributes for this message. If this field is empty, the message must
      * contain non-empty data. This can be used to filter messages on the
@@ -1116,15 +1062,16 @@ public Builder putAttributes(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> attributes = 2;
      */
-    public Builder putAllAttributes(java.util.Map values) {
-      internalGetMutableAttributes().getMutableMap().putAll(values);
+
+    public Builder putAllAttributes(
+        java.util.Map values) {
+      internalGetMutableAttributes().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private java.lang.Object messageId_ = "";
     /**
-     *
-     *
      * 
      * ID of this message, assigned by the server when the message is published.
      * Guaranteed to be unique within the topic. This value may be read by a
@@ -1133,13 +1080,13 @@ public Builder putAllAttributes(java.util.Map
      *
      * string message_id = 3;
-     *
      * @return The messageId.
      */
     public java.lang.String getMessageId() {
       java.lang.Object ref = messageId_;
       if (!(ref instanceof java.lang.String)) {
-        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+        com.google.protobuf.ByteString bs =
+            (com.google.protobuf.ByteString) ref;
         java.lang.String s = bs.toStringUtf8();
         messageId_ = s;
         return s;
@@ -1148,8 +1095,6 @@ public java.lang.String getMessageId() {
       }
     }
     /**
-     *
-     *
      * 
      * ID of this message, assigned by the server when the message is published.
      * Guaranteed to be unique within the topic. This value may be read by a
@@ -1158,14 +1103,15 @@ public java.lang.String getMessageId() {
      * 
* * string message_id = 3; - * * @return The bytes for messageId. */ - public com.google.protobuf.ByteString getMessageIdBytes() { + public com.google.protobuf.ByteString + getMessageIdBytes() { java.lang.Object ref = messageId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); messageId_ = b; return b; } else { @@ -1173,8 +1119,6 @@ public com.google.protobuf.ByteString getMessageIdBytes() { } } /** - * - * *
      * ID of this message, assigned by the server when the message is published.
      * Guaranteed to be unique within the topic. This value may be read by a
@@ -1183,22 +1127,20 @@ public com.google.protobuf.ByteString getMessageIdBytes() {
      * 
* * string message_id = 3; - * * @param value The messageId to set. * @return This builder for chaining. */ - public Builder setMessageId(java.lang.String value) { + public Builder setMessageId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + messageId_ = value; onChanged(); return this; } /** - * - * *
      * ID of this message, assigned by the server when the message is published.
      * Guaranteed to be unique within the topic. This value may be read by a
@@ -1207,18 +1149,15 @@ public Builder setMessageId(java.lang.String value) {
      * 
* * string message_id = 3; - * * @return This builder for chaining. */ public Builder clearMessageId() { - + messageId_ = getDefaultInstance().getMessageId(); onChanged(); return this; } /** - * - * *
      * ID of this message, assigned by the server when the message is published.
      * Guaranteed to be unique within the topic. This value may be read by a
@@ -1227,16 +1166,16 @@ public Builder clearMessageId() {
      * 
* * string message_id = 3; - * * @param value The bytes for messageId to set. * @return This builder for chaining. */ - public Builder setMessageIdBytes(com.google.protobuf.ByteString value) { + public Builder setMessageIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + messageId_ = value; onChanged(); return this; @@ -1244,13 +1183,8 @@ public Builder setMessageIdBytes(com.google.protobuf.ByteString value) { 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 at which the message was published, populated by the server when
      * it receives the `Publish` call. It must not be populated by the
@@ -1258,15 +1192,12 @@ public Builder setMessageIdBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Timestamp publish_time = 4; - * * @return Whether the publishTime field is set. */ public boolean hasPublishTime() { return publishTimeBuilder_ != null || publishTime_ != null; } /** - * - * *
      * The time at which the message was published, populated by the server when
      * it receives the `Publish` call. It must not be populated by the
@@ -1274,21 +1205,16 @@ public boolean hasPublishTime() {
      * 
* * .google.protobuf.Timestamp publish_time = 4; - * * @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 at which the message was published, populated by the server when
      * it receives the `Publish` call. It must not be populated by the
@@ -1311,8 +1237,6 @@ public Builder setPublishTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the message was published, populated by the server when
      * it receives the `Publish` call. It must not be populated by the
@@ -1321,7 +1245,8 @@ public Builder setPublishTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp publish_time = 4;
      */
-    public Builder setPublishTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setPublishTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (publishTimeBuilder_ == null) {
         publishTime_ = builderForValue.build();
         onChanged();
@@ -1332,8 +1257,6 @@ public Builder setPublishTime(com.google.protobuf.Timestamp.Builder builderForVa
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the message was published, populated by the server when
      * it receives the `Publish` call. It must not be populated by the
@@ -1346,9 +1269,7 @@ public Builder mergePublishTime(com.google.protobuf.Timestamp value) {
       if (publishTimeBuilder_ == null) {
         if (publishTime_ != null) {
           publishTime_ =
-              com.google.protobuf.Timestamp.newBuilder(publishTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(publishTime_).mergeFrom(value).buildPartial();
         } else {
           publishTime_ = value;
         }
@@ -1360,8 +1281,6 @@ public Builder mergePublishTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the message was published, populated by the server when
      * it receives the `Publish` call. It must not be populated by the
@@ -1382,8 +1301,6 @@ public Builder clearPublishTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the message was published, populated by the server when
      * it receives the `Publish` call. It must not be populated by the
@@ -1393,13 +1310,11 @@ public Builder clearPublishTime() {
      * .google.protobuf.Timestamp publish_time = 4;
      */
     public com.google.protobuf.Timestamp.Builder getPublishTimeBuilder() {
-
+      
       onChanged();
       return getPublishTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time at which the message was published, populated by the server when
      * it receives the `Publish` call. It must not be populated by the
@@ -1412,14 +1327,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 at which the message was published, populated by the server when
      * it receives the `Publish` call. It must not be populated by the
@@ -1429,17 +1341,14 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
      * .google.protobuf.Timestamp publish_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> 
         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_;
@@ -1447,8 +1356,6 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
 
     private java.lang.Object orderingKey_ = "";
     /**
-     *
-     *
      * 
      * If non-empty, identifies related messages for which publish order should be
      * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
@@ -1459,13 +1366,13 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
      * 
* * string ordering_key = 5; - * * @return The orderingKey. */ public java.lang.String getOrderingKey() { java.lang.Object ref = orderingKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderingKey_ = s; return s; @@ -1474,8 +1381,6 @@ public java.lang.String getOrderingKey() { } } /** - * - * *
      * If non-empty, identifies related messages for which publish order should be
      * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
@@ -1486,14 +1391,15 @@ public java.lang.String getOrderingKey() {
      * 
* * string ordering_key = 5; - * * @return The bytes for orderingKey. */ - public com.google.protobuf.ByteString getOrderingKeyBytes() { + public com.google.protobuf.ByteString + getOrderingKeyBytes() { java.lang.Object ref = orderingKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderingKey_ = b; return b; } else { @@ -1501,8 +1407,6 @@ public com.google.protobuf.ByteString getOrderingKeyBytes() { } } /** - * - * *
      * If non-empty, identifies related messages for which publish order should be
      * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
@@ -1513,22 +1417,20 @@ public com.google.protobuf.ByteString getOrderingKeyBytes() {
      * 
* * string ordering_key = 5; - * * @param value The orderingKey to set. * @return This builder for chaining. */ - public Builder setOrderingKey(java.lang.String value) { + public Builder setOrderingKey( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderingKey_ = value; onChanged(); return this; } /** - * - * *
      * If non-empty, identifies related messages for which publish order should be
      * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
@@ -1539,18 +1441,15 @@ public Builder setOrderingKey(java.lang.String value) {
      * 
* * string ordering_key = 5; - * * @return This builder for chaining. */ public Builder clearOrderingKey() { - + orderingKey_ = getDefaultInstance().getOrderingKey(); onChanged(); return this; } /** - * - * *
      * If non-empty, identifies related messages for which publish order should be
      * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
@@ -1561,23 +1460,23 @@ public Builder clearOrderingKey() {
      * 
* * string ordering_key = 5; - * * @param value The bytes for orderingKey to set. * @return This builder for chaining. */ - public Builder setOrderingKeyBytes(com.google.protobuf.ByteString value) { + public Builder setOrderingKeyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderingKey_ = value; 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); } @@ -1587,12 +1486,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PubsubMessage) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.PubsubMessage) private static final com.google.pubsub.v1.PubsubMessage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.PubsubMessage(); } @@ -1601,16 +1500,16 @@ public static com.google.pubsub.v1.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 { - return new PubsubMessage(input, extensionRegistry); - } - }; + 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 { + return new PubsubMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1625,4 +1524,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.PubsubMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java similarity index 79% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index a81cdd8e2..23c70e348 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -1,45 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; -public interface PubsubMessageOrBuilder - extends +public interface PubsubMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PubsubMessage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The message data field. If this field is empty, the message must contain
    * at least one attribute.
    * 
* * bytes data = 1; - * * @return The data. */ com.google.protobuf.ByteString getData(); /** - * - * *
    * Attributes for this message. If this field is empty, the message must
    * contain non-empty data. This can be used to filter messages on the
@@ -50,8 +29,6 @@ public interface PubsubMessageOrBuilder
    */
   int getAttributesCount();
   /**
-   *
-   *
    * 
    * Attributes for this message. If this field is empty, the message must
    * contain non-empty data. This can be used to filter messages on the
@@ -60,13 +37,15 @@ public interface PubsubMessageOrBuilder
    *
    * map<string, string> attributes = 2;
    */
-  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();
+  java.util.Map
+  getAttributes();
   /**
-   *
-   *
    * 
    * Attributes for this message. If this field is empty, the message must
    * contain non-empty data. This can be used to filter messages on the
@@ -75,10 +54,9 @@ public interface PubsubMessageOrBuilder
    *
    * map<string, string> attributes = 2;
    */
-  java.util.Map getAttributesMap();
+  java.util.Map
+  getAttributesMap();
   /**
-   *
-   *
    * 
    * Attributes for this message. If this field is empty, the message must
    * contain non-empty data. This can be used to filter messages on the
@@ -87,10 +65,11 @@ public interface PubsubMessageOrBuilder
    *
    * map<string, string> attributes = 2;
    */
-  java.lang.String getAttributesOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getAttributesOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Attributes for this message. If this field is empty, the message must
    * contain non-empty data. This can be used to filter messages on the
@@ -99,11 +78,11 @@ public interface PubsubMessageOrBuilder
    *
    * map<string, string> attributes = 2;
    */
-  java.lang.String getAttributesOrThrow(java.lang.String key);
+
+  java.lang.String getAttributesOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * ID of this message, assigned by the server when the message is published.
    * Guaranteed to be unique within the topic. This value may be read by a
@@ -112,13 +91,10 @@ public interface PubsubMessageOrBuilder
    * 
* * string message_id = 3; - * * @return The messageId. */ java.lang.String getMessageId(); /** - * - * *
    * ID of this message, assigned by the server when the message is published.
    * Guaranteed to be unique within the topic. This value may be read by a
@@ -127,14 +103,12 @@ public interface PubsubMessageOrBuilder
    * 
* * string message_id = 3; - * * @return The bytes for messageId. */ - com.google.protobuf.ByteString getMessageIdBytes(); + com.google.protobuf.ByteString + getMessageIdBytes(); /** - * - * *
    * The time at which the message was published, populated by the server when
    * it receives the `Publish` call. It must not be populated by the
@@ -142,13 +116,10 @@ public interface PubsubMessageOrBuilder
    * 
* * .google.protobuf.Timestamp publish_time = 4; - * * @return Whether the publishTime field is set. */ boolean hasPublishTime(); /** - * - * *
    * The time at which the message was published, populated by the server when
    * it receives the `Publish` call. It must not be populated by the
@@ -156,13 +127,10 @@ public interface PubsubMessageOrBuilder
    * 
* * .google.protobuf.Timestamp publish_time = 4; - * * @return The publishTime. */ com.google.protobuf.Timestamp getPublishTime(); /** - * - * *
    * The time at which the message was published, populated by the server when
    * it receives the `Publish` call. It must not be populated by the
@@ -174,8 +142,6 @@ public interface PubsubMessageOrBuilder
   com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * If non-empty, identifies related messages for which publish order should be
    * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
@@ -186,13 +152,10 @@ public interface PubsubMessageOrBuilder
    * 
* * string ordering_key = 5; - * * @return The orderingKey. */ java.lang.String getOrderingKey(); /** - * - * *
    * If non-empty, identifies related messages for which publish order should be
    * respected. If a `Subscription` has `enable_message_ordering` set to `true`,
@@ -203,8 +166,8 @@ public interface PubsubMessageOrBuilder
    * 
* * string ordering_key = 5; - * * @return The bytes for orderingKey. */ - com.google.protobuf.ByteString getOrderingKeyBytes(); + com.google.protobuf.ByteString + getOrderingKeyBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java new file mode 100644 index 000000000..4c168909e --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -0,0 +1,918 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public final class PubsubProto { + private PubsubProto() {} + 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_pubsub_v1_MessageStoragePolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_SchemaSettings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_SchemaSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_Topic_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_Topic_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_Topic_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PubsubMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_GetTopicRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PublishRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PublishResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_Subscription_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_Subscription_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_Subscription_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_RetryPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ExpirationPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PushConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PushConfig_AttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ReceivedMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PullRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PullResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_StreamingPullRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_StreamingPullResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_Snapshot_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_Snapshot_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_SeekRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_SeekResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_SeekResponse_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\035google/pubsub/v1/pubsub.proto\022\020google." + + "pubsub.v1\032\034google/api/annotations.proto\032" + + "\027google/api/client.proto\032\037google/api/fie" + + "ld_behavior.proto\032\031google/api/resource.p" + + "roto\032\036google/protobuf/duration.proto\032\033go" + + "ogle/protobuf/empty.proto\032 google/protob" + + "uf/field_mask.proto\032\037google/protobuf/tim" + + "estamp.proto\032\035google/pubsub/v1/schema.pr" + + "oto\";\n\024MessageStoragePolicy\022#\n\033allowed_p" + + "ersistence_regions\030\001 \003(\t\"t\n\016SchemaSettin" + + "gs\0224\n\006schema\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub.googl" + + "eapis.com/Schema\022,\n\010encoding\030\002 \001(\0162\032.goo" + + "gle.pubsub.v1.Encoding\"\303\003\n\005Topic\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\002\0223\n\006labels\030\002 \003(\0132#.google.pub" + + "sub.v1.Topic.LabelsEntry\022F\n\026message_stor" + + "age_policy\030\003 \001(\0132&.google.pubsub.v1.Mess" + + "ageStoragePolicy\022\024\n\014kms_key_name\030\005 \001(\t\0229" + + "\n\017schema_settings\030\006 \001(\0132 .google.pubsub." + + "v1.SchemaSettings\022\025\n\rsatisfies_pzs\030\007 \001(\010" + + "\022=\n\032message_retention_duration\030\010 \001(\0132\031.g" + + "oogle.protobuf.Duration\032-\n\013LabelsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:T\352AQ\n\033pub" + + "sub.googleapis.com/Topic\022!projects/{proj" + + "ect}/topics/{topic}\022\017_deleted-topic_\"\361\001\n" + + "\rPubsubMessage\022\014\n\004data\030\001 \001(\014\022C\n\nattribut" + + "es\030\002 \003(\0132/.google.pubsub.v1.PubsubMessag" + + "e.AttributesEntry\022\022\n\nmessage_id\030\003 \001(\t\0220\n" + + "\014publish_time\030\004 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022\024\n\014ordering_key\030\005 \001(\t\0321\n\017Attribu" + + "tesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\"E\n\017GetTopicRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372" + + "A\035\n\033pubsub.googleapis.com/Topic\"w\n\022Updat" + + "eTopicRequest\022+\n\005topic\030\001 \001(\0132\027.google.pu" + + "bsub.v1.TopicB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMaskB\003\340A\002\"|\n\016Publ" + + "ishRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsu" + + "b.googleapis.com/Topic\0226\n\010messages\030\002 \003(\013" + + "2\037.google.pubsub.v1.PubsubMessageB\003\340A\002\"&" + + "\n\017PublishResponse\022\023\n\013message_ids\030\001 \003(\t\"\200" + + "\001\n\021ListTopicsRequest\022D\n\007project\030\001 \001(\tB3\340" + + "A\002\372A-\n+cloudresourcemanager.googleapis.c" + + "om/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + + "ken\030\003 \001(\t\"V\n\022ListTopicsResponse\022\'\n\006topic" + + "s\030\001 \003(\0132\027.google.pubsub.v1.Topic\022\027\n\017next" + + "_page_token\030\002 \001(\t\"z\n\035ListTopicSubscripti" + + "onsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsu" + + "b.googleapis.com/Topic\022\021\n\tpage_size\030\002 \001(" + + "\005\022\022\n\npage_token\030\003 \001(\t\"y\n\036ListTopicSubscr" + + "iptionsResponse\022>\n\rsubscriptions\030\001 \003(\tB\'" + + "\372A$\n\"pubsub.googleapis.com/Subscription\022" + + "\027\n\017next_page_token\030\002 \001(\t\"v\n\031ListTopicSna" + + "pshotsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pu" + + "bsub.googleapis.com/Topic\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"H\n\032ListTopicSna" + + "pshotsResponse\022\021\n\tsnapshots\030\001 \003(\t\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\"H\n\022DeleteTopicRequest" + + "\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleap" + + "is.com/Topic\"]\n\031DetachSubscriptionReques" + + "t\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub." + + "googleapis.com/Subscription\"\034\n\032DetachSub" + + "scriptionResponse\"\212\006\n\014Subscription\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(\tB#\340A\002\372A\035\n\033pu" + + "bsub.googleapis.com/Topic\0221\n\013push_config" + + "\030\004 \001(\0132\034.google.pubsub.v1.PushConfig\022\034\n\024" + + "ack_deadline_seconds\030\005 \001(\005\022\035\n\025retain_ack" + + "ed_messages\030\007 \001(\010\022=\n\032message_retention_d" + + "uration\030\010 \001(\0132\031.google.protobuf.Duration" + + "\022:\n\006labels\030\t \003(\0132*.google.pubsub.v1.Subs" + + "cription.LabelsEntry\022\037\n\027enable_message_o" + + "rdering\030\n \001(\010\022=\n\021expiration_policy\030\013 \001(\013" + + "2\".google.pubsub.v1.ExpirationPolicy\022\016\n\006" + + "filter\030\014 \001(\t\022>\n\022dead_letter_policy\030\r \001(\013" + + "2\".google.pubsub.v1.DeadLetterPolicy\0223\n\014" + + "retry_policy\030\016 \001(\0132\035.google.pubsub.v1.Re" + + "tryPolicy\022\020\n\010detached\030\017 \001(\010\022H\n topic_mes" + + "sage_retention_duration\030\021 \001(\0132\031.google.p" + + "rotobuf.DurationB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:X\352AU\n\"pubsu" + + "b.googleapis.com/Subscription\022/projects/" + + "{project}/subscriptions/{subscription}\"u" + + "\n\013RetryPolicy\0222\n\017minimum_backoff\030\001 \001(\0132\031" + + ".google.protobuf.Duration\0222\n\017maximum_bac" + + "koff\030\002 \001(\0132\031.google.protobuf.Duration\"L\n" + + "\020DeadLetterPolicy\022\031\n\021dead_letter_topic\030\001" + + " \001(\t\022\035\n\025max_delivery_attempts\030\002 \001(\005\":\n\020E" + + "xpirationPolicy\022&\n\003ttl\030\001 \001(\0132\031.google.pr" + + "otobuf.Duration\"\255\002\n\nPushConfig\022\025\n\rpush_e" + + "ndpoint\030\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.goog" + + "le.pubsub.v1.PushConfig.AttributesEntry\022" + + "<\n\noidc_token\030\003 \001(\0132&.google.pubsub.v1.P" + + "ushConfig.OidcTokenH\000\032<\n\tOidcToken\022\035\n\025se" + + "rvice_account_email\030\001 \001(\t\022\020\n\010audience\030\002 " + + "\001(\t\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001B\027\n\025authentication_method\"" + + "m\n\017ReceivedMessage\022\016\n\006ack_id\030\001 \001(\t\0220\n\007me" + + "ssage\030\002 \001(\0132\037.google.pubsub.v1.PubsubMes" + + "sage\022\030\n\020delivery_attempt\030\003 \001(\005\"Z\n\026GetSub" + + "scriptionRequest\022@\n\014subscription\030\001 \001(\tB*" + + "\340A\002\372A$\n\"pubsub.googleapis.com/Subscripti" + + "on\"\214\001\n\031UpdateSubscriptionRequest\0229\n\014subs" + + "cription\030\001 \001(\0132\036.google.pubsub.v1.Subscr" + + "iptionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.googl" + + "e.protobuf.FieldMaskB\003\340A\002\"\207\001\n\030ListSubscr" + + "iptionsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n" + + "+cloudresourcemanager.googleapis.com/Pro" + + "ject\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\"k\n\031ListSubscriptionsResponse\0225\n\rsubs" + + "criptions\030\001 \003(\0132\036.google.pubsub.v1.Subsc" + + "ription\022\027\n\017next_page_token\030\002 \001(\t\"]\n\031Dele" + + "teSubscriptionRequest\022@\n\014subscription\030\001 " + + "\001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subsc" + + "ription\"\223\001\n\027ModifyPushConfigRequest\022@\n\014s" + + "ubscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.google" + + "apis.com/Subscription\0226\n\013push_config\030\002 \001" + + "(\0132\034.google.pubsub.v1.PushConfigB\003\340A\002\"\215\001" + + "\n\013PullRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002" + + "\372A$\n\"pubsub.googleapis.com/Subscription\022" + + "!\n\022return_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014ma" + + "x_messages\030\003 \001(\005B\003\340A\002\"L\n\014PullResponse\022<\n" + + "\021received_messages\030\001 \003(\0132!.google.pubsub" + + ".v1.ReceivedMessage\"\225\001\n\030ModifyAckDeadlin" + + "eRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"" + + "pubsub.googleapis.com/Subscription\022\024\n\007ac" + + "k_ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_deadline_seconds" + + "\030\003 \001(\005B\003\340A\002\"l\n\022AcknowledgeRequest\022@\n\014sub" + + "scription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleap" + + "is.com/Subscription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A" + + "\002\"\251\002\n\024StreamingPullRequest\022@\n\014subscripti" + + "on\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/" + + "Subscription\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027modify_" + + "deadline_seconds\030\003 \003(\005\022\037\n\027modify_deadlin" + + "e_ack_ids\030\004 \003(\t\022(\n\033stream_ack_deadline_s" + + "econds\030\005 \001(\005B\003\340A\002\022\021\n\tclient_id\030\006 \001(\t\022 \n\030" + + "max_outstanding_messages\030\007 \001(\003\022\035\n\025max_ou" + + "tstanding_bytes\030\010 \001(\003\"\362\001\n\025StreamingPullR" + + "esponse\022<\n\021received_messages\030\001 \003(\0132!.goo" + + "gle.pubsub.v1.ReceivedMessage\022_\n\027subscri" + + "ption_properties\030\004 \001(\0132>.google.pubsub.v" + + "1.StreamingPullResponse.SubscriptionProp" + + "erties\032:\n\026SubscriptionProperties\022 \n\030mess" + + "age_ordering_enabled\030\002 \001(\010\"\203\002\n\025CreateSna" + + "pshotRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036pubs" + + "ub.googleapis.com/Snapshot\022@\n\014subscripti" + + "on\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/" + + "Subscription\022C\n\006labels\030\003 \003(\01323.google.pu" + + "bsub.v1.CreateSnapshotRequest.LabelsEntr" + + "y\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\"\200\001\n\025UpdateSnapshotRequest\0221\n\010sn" + + "apshot\030\001 \001(\0132\032.google.pubsub.v1.Snapshot" + + "B\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.prot" + + "obuf.FieldMaskB\003\340A\002\"\257\002\n\010Snapshot\022\014\n\004name" + + "\030\001 \001(\t\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pubsub.googl" + + "eapis.com/Topic\022/\n\013expire_time\030\003 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\0226\n\006labels\030\004 \003(\013" + + "2&.google.pubsub.v1.Snapshot.LabelsEntry" + + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001:L\352AI\n\036pubsub.googleapis.com/Snap" + + "shot\022\'projects/{project}/snapshots/{snap" + + "shot}\"N\n\022GetSnapshotRequest\0228\n\010snapshot\030" + + "\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Sna" + + "pshot\"\203\001\n\024ListSnapshotsRequest\022D\n\007projec" + + "t\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.go" + + "ogleapis.com/Project\022\021\n\tpage_size\030\002 \001(\005\022" + + "\022\n\npage_token\030\003 \001(\t\"_\n\025ListSnapshotsResp" + + "onse\022-\n\tsnapshots\030\001 \003(\0132\032.google.pubsub." + + "v1.Snapshot\022\027\n\017next_page_token\030\002 \001(\t\"Q\n\025" + + "DeleteSnapshotRequest\0228\n\010snapshot\030\001 \001(\tB" + + "&\340A\002\372A \n\036pubsub.googleapis.com/Snapshot\"" + + "\276\001\n\013SeekRequest\022@\n\014subscription\030\001 \001(\tB*\340" + + "A\002\372A$\n\"pubsub.googleapis.com/Subscriptio" + + "n\022*\n\004time\030\002 \001(\0132\032.google.protobuf.Timest" + + "ampH\000\0227\n\010snapshot\030\003 \001(\tB#\372A \n\036pubsub.goo" + + "gleapis.com/SnapshotH\000B\010\n\006target\"\016\n\014Seek" + + "Response2\243\013\n\tPublisher\022q\n\013CreateTopic\022\027." + + "google.pubsub.v1.Topic\032\027.google.pubsub.v" + + "1.Topic\"0\202\323\344\223\002#\032\036/v1/{name=projects/*/to" + + "pics/*}:\001*\332A\004name\022}\n\013UpdateTopic\022$.googl" + + "e.pubsub.v1.UpdateTopicRequest\032\027.google." + + "pubsub.v1.Topic\"/\202\323\344\223\002)2$/v1/{topic.name" + + "=projects/*/topics/*}:\001*\022\223\001\n\007Publish\022 .g" + + "oogle.pubsub.v1.PublishRequest\032!.google." + + "pubsub.v1.PublishResponse\"C\202\323\344\223\002,\"\'/v1/{" + + "topic=projects/*/topics/*}:publish:\001*\332A\016" + + "topic,messages\022w\n\010GetTopic\022!.google.pubs" + + "ub.v1.GetTopicRequest\032\027.google.pubsub.v1" + + ".Topic\"/\202\323\344\223\002!\022\037/v1/{topic=projects/*/to" + + "pics/*}\332A\005topic\022\212\001\n\nListTopics\022#.google." + + "pubsub.v1.ListTopicsRequest\032$.google.pub" + + "sub.v1.ListTopicsResponse\"1\202\323\344\223\002!\022\037/v1/{" + + "project=projects/*}/topics\332A\007project\022\272\001\n" + + "\026ListTopicSubscriptions\022/.google.pubsub." + + "v1.ListTopicSubscriptionsRequest\0320.googl" + + "e.pubsub.v1.ListTopicSubscriptionsRespon" + + "se\"=\202\323\344\223\002/\022-/v1/{topic=projects/*/topics" + + "/*}/subscriptions\332A\005topic\022\252\001\n\022ListTopicS" + + "napshots\022+.google.pubsub.v1.ListTopicSna" + + "pshotsRequest\032,.google.pubsub.v1.ListTop" + + "icSnapshotsResponse\"9\202\323\344\223\002+\022)/v1/{topic=" + + "projects/*/topics/*}/snapshots\332A\005topic\022|" + + "\n\013DeleteTopic\022$.google.pubsub.v1.DeleteT" + + "opicRequest\032\026.google.protobuf.Empty\"/\202\323\344" + + "\223\002!*\037/v1/{topic=projects/*/topics/*}\332A\005t" + + "opic\022\255\001\n\022DetachSubscription\022+.google.pub" + + "sub.v1.DetachSubscriptionRequest\032,.googl" + + "e.pubsub.v1.DetachSubscriptionResponse\"<" + + "\202\323\344\223\0026\"4/v1/{subscription=projects/*/sub" + + "scriptions/*}:detach\032p\312A\025pubsub.googleap" + + "is.com\322AUhttps://www.googleapis.com/auth" + + "/cloud-platform,https://www.googleapis.c" + + "om/auth/pubsub2\240\025\n\nSubscriber\022\264\001\n\022Create" + + "Subscription\022\036.google.pubsub.v1.Subscrip" + + "tion\032\036.google.pubsub.v1.Subscription\"^\202\323" + + "\344\223\002*\032%/v1/{name=projects/*/subscriptions" + + "/*}:\001*\332A+name,topic,push_config,ack_dead" + + "line_seconds\022\241\001\n\017GetSubscription\022(.googl" + + "e.pubsub.v1.GetSubscriptionRequest\032\036.goo" + + "gle.pubsub.v1.Subscription\"D\202\323\344\223\002/\022-/v1/" + + "{subscription=projects/*/subscriptions/*" + + "}\332A\014subscription\022\240\001\n\022UpdateSubscription\022" + + "+.google.pubsub.v1.UpdateSubscriptionReq" + + "uest\032\036.google.pubsub.v1.Subscription\"=\202\323" + + "\344\223\002722/v1/{subscription.name=projects/*/" + + "subscriptions/*}:\001*\022\246\001\n\021ListSubscription" + + "s\022*.google.pubsub.v1.ListSubscriptionsRe" + + "quest\032+.google.pubsub.v1.ListSubscriptio" + + "nsResponse\"8\202\323\344\223\002(\022&/v1/{project=project" + + "s/*}/subscriptions\332A\007project\022\237\001\n\022DeleteS" + + "ubscription\022+.google.pubsub.v1.DeleteSub" + + "scriptionRequest\032\026.google.protobuf.Empty" + + "\"D\202\323\344\223\002/*-/v1/{subscription=projects/*/s" + + "ubscriptions/*}\332A\014subscription\022\317\001\n\021Modif" + + "yAckDeadline\022*.google.pubsub.v1.ModifyAc" + + "kDeadlineRequest\032\026.google.protobuf.Empty" + + "\"v\202\323\344\223\002D\"?/v1/{subscription=projects/*/s" + + "ubscriptions/*}:modifyAckDeadline:\001*\332A)s" + + "ubscription,ack_ids,ack_deadline_seconds" + + "\022\250\001\n\013Acknowledge\022$.google.pubsub.v1.Ackn" + + "owledgeRequest\032\026.google.protobuf.Empty\"[" + + "\202\323\344\223\002>\"9/v1/{subscription=projects/*/sub" + + "scriptions/*}:acknowledge:\001*\332A\024subscript" + + "ion,ack_ids\022\320\001\n\004Pull\022\035.google.pubsub.v1." + + "PullRequest\032\036.google.pubsub.v1.PullRespo" + + "nse\"\210\001\202\323\344\223\0027\"2/v1/{subscription=projects" + + "/*/subscriptions/*}:pull:\001*\332A,subscripti" + + "on,return_immediately,max_messages\332A\031sub" + + "scription,max_messages\022f\n\rStreamingPull\022" + + "&.google.pubsub.v1.StreamingPullRequest\032" + + "\'.google.pubsub.v1.StreamingPullResponse" + + "\"\000(\0010\001\022\273\001\n\020ModifyPushConfig\022).google.pub" + + "sub.v1.ModifyPushConfigRequest\032\026.google." + + "protobuf.Empty\"d\202\323\344\223\002C\">/v1/{subscriptio" + + "n=projects/*/subscriptions/*}:modifyPush" + + "Config:\001*\332A\030subscription,push_config\022\211\001\n" + + "\013GetSnapshot\022$.google.pubsub.v1.GetSnaps" + + "hotRequest\032\032.google.pubsub.v1.Snapshot\"8" + + "\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snapsho" + + "ts/*}\332A\010snapshot\022\226\001\n\rListSnapshots\022&.goo" + + "gle.pubsub.v1.ListSnapshotsRequest\032\'.goo" + + "gle.pubsub.v1.ListSnapshotsResponse\"4\202\323\344" + + "\223\002$\022\"/v1/{project=projects/*}/snapshots\332" + + "A\007project\022\227\001\n\016CreateSnapshot\022\'.google.pu" + + "bsub.v1.CreateSnapshotRequest\032\032.google.p" + + "ubsub.v1.Snapshot\"@\202\323\344\223\002&\032!/v1/{name=pro" + + "jects/*/snapshots/*}:\001*\332A\021name,subscript" + + "ion\022\214\001\n\016UpdateSnapshot\022\'.google.pubsub.v" + + "1.UpdateSnapshotRequest\032\032.google.pubsub." + + "v1.Snapshot\"5\202\323\344\223\002/2*/v1/{snapshot.name=" + + "projects/*/snapshots/*}:\001*\022\213\001\n\016DeleteSna" + + "pshot\022\'.google.pubsub.v1.DeleteSnapshotR" + + "equest\032\026.google.protobuf.Empty\"8\202\323\344\223\002\'*%" + + "/v1/{snapshot=projects/*/snapshots/*}\332A\010" + + "snapshot\022\204\001\n\004Seek\022\035.google.pubsub.v1.See" + + "kRequest\032\036.google.pubsub.v1.SeekResponse" + + "\"=\202\323\344\223\0027\"2/v1/{subscription=projects/*/s" + + "ubscriptions/*}:seek:\001*\032p\312A\025pubsub.googl" + + "eapis.com\322AUhttps://www.googleapis.com/a" + + "uth/cloud-platform,https://www.googleapi" + + "s.com/auth/pubsubB\256\001\n\024com.google.pubsub." + + "v1B\013PubsubProtoP\001Z6google.golang.org/gen" + + "proto/googleapis/pubsub/v1;pubsub\370\001\001\252\002\026G" + + "oogle.Cloud.PubSub.V1\312\002\026Google\\Cloud\\Pub" + + "Sub\\V1\352\002\031Google::Cloud::PubSub::V1b\006prot" + + "o3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.pubsub.v1.SchemaProto.getDescriptor(), + }); + internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor, + new java.lang.String[] { "AllowedPersistenceRegions", }); + internal_static_google_pubsub_v1_SchemaSettings_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_pubsub_v1_SchemaSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_SchemaSettings_descriptor, + new java.lang.String[] { "Schema", "Encoding", }); + internal_static_google_pubsub_v1_Topic_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_pubsub_v1_Topic_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_Topic_descriptor, + new java.lang.String[] { "Name", "Labels", "MessageStoragePolicy", "KmsKeyName", "SchemaSettings", "SatisfiesPzs", "MessageRetentionDuration", }); + internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor = + internal_static_google_pubsub_v1_Topic_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_Topic_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_pubsub_v1_PubsubMessage_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PubsubMessage_descriptor, + new java.lang.String[] { "Data", "Attributes", "MessageId", "PublishTime", "OrderingKey", }); + internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor = + internal_static_google_pubsub_v1_PubsubMessage_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_pubsub_v1_GetTopicRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_GetTopicRequest_descriptor, + new java.lang.String[] { "Topic", }); + internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor, + new java.lang.String[] { "Topic", "UpdateMask", }); + internal_static_google_pubsub_v1_PublishRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PublishRequest_descriptor, + new java.lang.String[] { "Topic", "Messages", }); + internal_static_google_pubsub_v1_PublishResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PublishResponse_descriptor, + new java.lang.String[] { "MessageIds", }); + internal_static_google_pubsub_v1_ListTopicsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListTopicsRequest_descriptor, + new java.lang.String[] { "Project", "PageSize", "PageToken", }); + internal_static_google_pubsub_v1_ListTopicsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListTopicsResponse_descriptor, + new java.lang.String[] { "Topics", "NextPageToken", }); + internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor, + new java.lang.String[] { "Topic", "PageSize", "PageToken", }); + internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor, + new java.lang.String[] { "Subscriptions", "NextPageToken", }); + internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor, + new java.lang.String[] { "Topic", "PageSize", "PageToken", }); + internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor, + new java.lang.String[] { "Snapshots", "NextPageToken", }); + internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor, + new java.lang.String[] { "Topic", }); + internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor, + new java.lang.String[] { "Subscription", }); + internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor, + new java.lang.String[] { }); + internal_static_google_pubsub_v1_Subscription_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_pubsub_v1_Subscription_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_Subscription_descriptor, + new java.lang.String[] { "Name", "Topic", "PushConfig", "AckDeadlineSeconds", "RetainAckedMessages", "MessageRetentionDuration", "Labels", "EnableMessageOrdering", "ExpirationPolicy", "Filter", "DeadLetterPolicy", "RetryPolicy", "Detached", "TopicMessageRetentionDuration", }); + internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor = + internal_static_google_pubsub_v1_Subscription_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_Subscription_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_pubsub_v1_RetryPolicy_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_RetryPolicy_descriptor, + new java.lang.String[] { "MinimumBackoff", "MaximumBackoff", }); + internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor, + new java.lang.String[] { "DeadLetterTopic", "MaxDeliveryAttempts", }); + internal_static_google_pubsub_v1_ExpirationPolicy_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ExpirationPolicy_descriptor, + new java.lang.String[] { "Ttl", }); + internal_static_google_pubsub_v1_PushConfig_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PushConfig_descriptor, + new java.lang.String[] { "PushEndpoint", "Attributes", "OidcToken", "AuthenticationMethod", }); + internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor = + internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor, + new java.lang.String[] { "ServiceAccountEmail", "Audience", }); + internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor = + internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(1); + internal_static_google_pubsub_v1_PushConfig_AttributesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_pubsub_v1_ReceivedMessage_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ReceivedMessage_descriptor, + new java.lang.String[] { "AckId", "Message", "DeliveryAttempt", }); + internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor, + new java.lang.String[] { "Subscription", }); + internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor, + new java.lang.String[] { "Subscription", "UpdateMask", }); + internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor, + new java.lang.String[] { "Project", "PageSize", "PageToken", }); + internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor, + new java.lang.String[] { "Subscriptions", "NextPageToken", }); + internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor, + new java.lang.String[] { "Subscription", }); + internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor, + new java.lang.String[] { "Subscription", "PushConfig", }); + internal_static_google_pubsub_v1_PullRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PullRequest_descriptor, + new java.lang.String[] { "Subscription", "ReturnImmediately", "MaxMessages", }); + internal_static_google_pubsub_v1_PullResponse_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PullResponse_descriptor, + new java.lang.String[] { "ReceivedMessages", }); + internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor, + new java.lang.String[] { "Subscription", "AckIds", "AckDeadlineSeconds", }); + internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor, + new java.lang.String[] { "Subscription", "AckIds", }); + internal_static_google_pubsub_v1_StreamingPullRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_StreamingPullRequest_descriptor, + new java.lang.String[] { "Subscription", "AckIds", "ModifyDeadlineSeconds", "ModifyDeadlineAckIds", "StreamAckDeadlineSeconds", "ClientId", "MaxOutstandingMessages", "MaxOutstandingBytes", }); + internal_static_google_pubsub_v1_StreamingPullResponse_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_StreamingPullResponse_descriptor, + new java.lang.String[] { "ReceivedMessages", "SubscriptionProperties", }); + internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor = + internal_static_google_pubsub_v1_StreamingPullResponse_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor, + new java.lang.String[] { "MessageOrderingEnabled", }); + internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor, + new java.lang.String[] { "Name", "Subscription", "Labels", }); + internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor = + internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor, + new java.lang.String[] { "Snapshot", "UpdateMask", }); + internal_static_google_pubsub_v1_Snapshot_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_Snapshot_descriptor, + new java.lang.String[] { "Name", "Topic", "ExpireTime", "Labels", }); + internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor = + internal_static_google_pubsub_v1_Snapshot_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_Snapshot_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor, + new java.lang.String[] { "Snapshot", }); + internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor, + new java.lang.String[] { "Project", "PageSize", "PageToken", }); + internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor, + new java.lang.String[] { "Snapshots", "NextPageToken", }); + internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor, + new java.lang.String[] { "Snapshot", }); + internal_static_google_pubsub_v1_SeekRequest_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_SeekRequest_descriptor, + new java.lang.String[] { "Subscription", "Time", "Snapshot", "Target", }); + internal_static_google_pubsub_v1_SeekResponse_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_SeekResponse_descriptor, + new java.lang.String[] { }); + 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.resource); + 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.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.pubsub.v1.SchemaProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java similarity index 69% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 4c59e15a5..56885f03c 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Request for the `Pull` method.
  * 
* * Protobuf type {@code google.pubsub.v1.PullRequest} */ -public final class PullRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PullRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.PullRequest) PullRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PullRequest.newBuilder() to construct. private PullRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PullRequest() { subscription_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PullRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PullRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,51 +53,50 @@ private PullRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - case 16: - { - returnImmediately_ = input.readBool(); - break; - } - case 24: - { - maxMessages_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + subscription_ = s; + break; + } + case 16: { + + returnImmediately_ = input.readBool(); + break; + } + case 24: { + + maxMessages_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.pubsub.v1.PullRequest.class, com.google.pubsub.v1.PullRequest.Builder.class); } @@ -122,17 +104,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int SUBSCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object subscription_; /** - * - * *
    * Required. The subscription from which messages should be pulled.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The subscription. */ @java.lang.Override @@ -141,32 +118,30 @@ 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; } } /** - * - * *
    * Required. The subscription from which messages should be pulled.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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 { @@ -177,8 +152,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public static final int RETURN_IMMEDIATELY_FIELD_NUMBER = 2; private boolean returnImmediately_; /** - * - * *
    * Optional. If this field set to true, the system will respond immediately
    * even if it there are no messages available to return in the `Pull`
@@ -189,22 +162,17 @@ public com.google.protobuf.ByteString getSubscriptionBytes() {
    * not set this field.
    * 
* - * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * + * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @return The returnImmediately. */ @java.lang.Override - @java.lang.Deprecated - public boolean getReturnImmediately() { + @java.lang.Deprecated public boolean getReturnImmediately() { return returnImmediately_; } public static final int MAX_MESSAGES_FIELD_NUMBER = 3; private int maxMessages_; /** - * - * *
    * Required. The maximum number of messages to return for this request. Must
    * be a positive integer. The Pub/Sub system may return fewer than the number
@@ -212,7 +180,6 @@ public boolean getReturnImmediately() {
    * 
* * int32 max_messages = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The maxMessages. */ @java.lang.Override @@ -221,7 +188,6 @@ public int getMaxMessages() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,8 +199,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getSubscriptionBytes().isEmpty()) { + 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_); } if (returnImmediately_ != false) { @@ -252,14 +219,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getSubscriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } if (returnImmediately_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, returnImmediately_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, returnImmediately_); } if (maxMessages_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxMessages_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, maxMessages_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -269,16 +238,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.pubsub.v1.PullRequest)) { return super.equals(obj); } com.google.pubsub.v1.PullRequest other = (com.google.pubsub.v1.PullRequest) obj; - if (!getSubscription().equals(other.getSubscription())) return false; - if (getReturnImmediately() != other.getReturnImmediately()) return false; - if (getMaxMessages() != other.getMaxMessages()) return false; + if (!getSubscription() + .equals(other.getSubscription())) return false; + if (getReturnImmediately() + != other.getReturnImmediately()) return false; + if (getMaxMessages() + != other.getMaxMessages()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,7 +265,8 @@ public int hashCode() { hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getSubscription().hashCode(); hash = (37 * hash) + RETURN_IMMEDIATELY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnImmediately()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReturnImmediately()); hash = (37 * hash) + MAX_MESSAGES_FIELD_NUMBER; hash = (53 * hash) + getMaxMessages(); hash = (29 * hash) + unknownFields.hashCode(); @@ -301,126 +274,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.PullRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.PullRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.PullRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.pubsub.v1.PullRequest parseFrom(com.google.protobuf.ByteString data) + public static com.google.pubsub.v1.PullRequest parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.PullRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.PullRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.PullRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.PullRequest 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.pubsub.v1.PullRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.PullRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.PullRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.PullRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.PullRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.PullRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 the `Pull` method.
    * 
* * Protobuf type {@code google.pubsub.v1.PullRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PullRequest) com.google.pubsub.v1.PullRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_PullRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.PullRequest.class, - com.google.pubsub.v1.PullRequest.Builder.class); + com.google.pubsub.v1.PullRequest.class, com.google.pubsub.v1.PullRequest.Builder.class); } // Construct using com.google.pubsub.v1.PullRequest.newBuilder() @@ -428,15 +393,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -450,9 +416,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_PullRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_descriptor; } @java.lang.Override @@ -483,39 +449,38 @@ public com.google.pubsub.v1.PullRequest 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.pubsub.v1.PullRequest) { - return mergeFrom((com.google.pubsub.v1.PullRequest) other); + return mergeFrom((com.google.pubsub.v1.PullRequest)other); } else { super.mergeFrom(other); return this; @@ -565,23 +530,19 @@ public Builder mergeFrom( private java.lang.Object subscription_ = ""; /** - * - * *
      * Required. The subscription from which messages should be pulled.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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; @@ -590,24 +551,21 @@ public java.lang.String getSubscription() { } } /** - * - * *
      * Required. The subscription from which messages should be pulled.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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 { @@ -615,79 +573,64 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * Required. The subscription from which messages should be pulled.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription(java.lang.String value) { + public Builder setSubscription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; onChanged(); return this; } /** - * - * *
      * Required. The subscription from which messages should be pulled.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearSubscription() { - + subscription_ = getDefaultInstance().getSubscription(); onChanged(); return this; } /** - * - * *
      * Required. The subscription from which messages should be pulled.
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = value; onChanged(); return this; } - private boolean returnImmediately_; + private boolean returnImmediately_ ; /** - * - * *
      * Optional. If this field set to true, the system will respond immediately
      * even if it there are no messages available to return in the `Pull`
@@ -698,20 +641,14 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) {
      * not set this field.
      * 
* - * - * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * + * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @return The returnImmediately. */ @java.lang.Override - @java.lang.Deprecated - public boolean getReturnImmediately() { + @java.lang.Deprecated public boolean getReturnImmediately() { return returnImmediately_; } /** - * - * *
      * Optional. If this field set to true, the system will respond immediately
      * even if it there are no messages available to return in the `Pull`
@@ -722,23 +659,17 @@ public boolean getReturnImmediately() {
      * not set this field.
      * 
* - * - * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * + * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @param value The returnImmediately to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setReturnImmediately(boolean value) { - + @java.lang.Deprecated public Builder setReturnImmediately(boolean value) { + returnImmediately_ = value; onChanged(); return this; } /** - * - * *
      * Optional. If this field set to true, the system will respond immediately
      * even if it there are no messages available to return in the `Pull`
@@ -749,24 +680,18 @@ public Builder setReturnImmediately(boolean value) {
      * not set this field.
      * 
* - * - * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * + * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearReturnImmediately() { - + @java.lang.Deprecated public Builder clearReturnImmediately() { + returnImmediately_ = false; onChanged(); return this; } - private int maxMessages_; + private int maxMessages_ ; /** - * - * *
      * Required. The maximum number of messages to return for this request. Must
      * be a positive integer. The Pub/Sub system may return fewer than the number
@@ -774,7 +699,6 @@ public Builder clearReturnImmediately() {
      * 
* * int32 max_messages = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The maxMessages. */ @java.lang.Override @@ -782,8 +706,6 @@ public int getMaxMessages() { return maxMessages_; } /** - * - * *
      * Required. The maximum number of messages to return for this request. Must
      * be a positive integer. The Pub/Sub system may return fewer than the number
@@ -791,19 +713,16 @@ public int getMaxMessages() {
      * 
* * int32 max_messages = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The maxMessages to set. * @return This builder for chaining. */ public Builder setMaxMessages(int value) { - + maxMessages_ = value; onChanged(); return this; } /** - * - * *
      * Required. The maximum number of messages to return for this request. Must
      * be a positive integer. The Pub/Sub system may return fewer than the number
@@ -811,18 +730,17 @@ public Builder setMaxMessages(int value) {
      * 
* * int32 max_messages = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearMaxMessages() { - + maxMessages_ = 0; 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); } @@ -832,12 +750,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PullRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.PullRequest) private static final com.google.pubsub.v1.PullRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.PullRequest(); } @@ -846,16 +764,16 @@ public static com.google.pubsub.v1.PullRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PullRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PullRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PullRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PullRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -870,4 +788,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.PullRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index eb88907a9..e2eebc4b7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; -public interface PullRequestOrBuilder - extends +public interface PullRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PullRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The subscription from which messages should be pulled.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The subscription. */ java.lang.String getSubscription(); /** - * - * *
    * Required. The subscription from which messages should be pulled.
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for subscription. */ - com.google.protobuf.ByteString getSubscriptionBytes(); + com.google.protobuf.ByteString + getSubscriptionBytes(); /** - * - * *
    * Optional. If this field set to true, the system will respond immediately
    * even if it there are no messages available to return in the `Pull`
@@ -67,17 +40,12 @@ public interface PullRequestOrBuilder
    * not set this field.
    * 
* - * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * + * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * @return The returnImmediately. */ - @java.lang.Deprecated - boolean getReturnImmediately(); + @java.lang.Deprecated boolean getReturnImmediately(); /** - * - * *
    * Required. The maximum number of messages to return for this request. Must
    * be a positive integer. The Pub/Sub system may return fewer than the number
@@ -85,7 +53,6 @@ public interface PullRequestOrBuilder
    * 
* * int32 max_messages = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The maxMessages. */ int getMaxMessages(); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java similarity index 78% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index bca433c65..9590ebb13 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Response for the `Pull` method.
  * 
* * Protobuf type {@code google.pubsub.v1.PullResponse} */ -public final class PullResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PullResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.PullResponse) PullResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PullResponse.newBuilder() to construct. private PullResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PullResponse() { receivedMessages_ = 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 PullResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PullResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,30 +54,29 @@ private PullResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - receivedMessages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - receivedMessages_.add( - input.readMessage( - com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + receivedMessages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + receivedMessages_.add( + input.readMessage(com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { receivedMessages_ = java.util.Collections.unmodifiableList(receivedMessages_); @@ -103,27 +85,22 @@ private PullResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_PullResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.PullResponse.class, - com.google.pubsub.v1.PullResponse.Builder.class); + com.google.pubsub.v1.PullResponse.class, com.google.pubsub.v1.PullResponse.Builder.class); } public static final int RECEIVED_MESSAGES_FIELD_NUMBER = 1; private java.util.List receivedMessages_; /** - * - * *
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -138,8 +115,6 @@ public java.util.List getReceivedMessagesL
     return receivedMessages_;
   }
   /**
-   *
-   *
    * 
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -150,13 +125,11 @@ public java.util.List getReceivedMessagesL
    * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getReceivedMessagesOrBuilderList() {
     return receivedMessages_;
   }
   /**
-   *
-   *
    * 
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -171,8 +144,6 @@ public int getReceivedMessagesCount() {
     return receivedMessages_.size();
   }
   /**
-   *
-   *
    * 
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -187,8 +158,6 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) {
     return receivedMessages_.get(index);
   }
   /**
-   *
-   *
    * 
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -199,12 +168,12 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) {
    * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
    */
   @java.lang.Override
-  public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index) {
+  public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(
+      int index) {
     return receivedMessages_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -216,7 +185,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 < receivedMessages_.size(); i++) {
       output.writeMessage(1, receivedMessages_.get(i));
     }
@@ -230,7 +200,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < receivedMessages_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, receivedMessages_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, receivedMessages_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -240,14 +211,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.pubsub.v1.PullResponse)) {
       return super.equals(obj);
     }
     com.google.pubsub.v1.PullResponse other = (com.google.pubsub.v1.PullResponse) obj;
 
-    if (!getReceivedMessagesList().equals(other.getReceivedMessagesList())) return false;
+    if (!getReceivedMessagesList()
+        .equals(other.getReceivedMessagesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -268,126 +240,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.pubsub.v1.PullResponse parseFrom(java.nio.ByteBuffer data)
+  public static com.google.pubsub.v1.PullResponse parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.PullResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.pubsub.v1.PullResponse parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.pubsub.v1.PullResponse parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.PullResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.PullResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.PullResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.PullResponse 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.pubsub.v1.PullResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.PullResponse parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.pubsub.v1.PullResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.PullResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.pubsub.v1.PullResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.pubsub.v1.PullResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 the `Pull` method.
    * 
* * Protobuf type {@code google.pubsub.v1.PullResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PullResponse) com.google.pubsub.v1.PullResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_PullResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.PullResponse.class, - com.google.pubsub.v1.PullResponse.Builder.class); + com.google.pubsub.v1.PullResponse.class, com.google.pubsub.v1.PullResponse.Builder.class); } // Construct using com.google.pubsub.v1.PullResponse.newBuilder() @@ -395,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) { getReceivedMessagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -419,9 +383,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_PullResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_descriptor; } @java.lang.Override @@ -459,39 +423,38 @@ public com.google.pubsub.v1.PullResponse 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.pubsub.v1.PullResponse) { - return mergeFrom((com.google.pubsub.v1.PullResponse) other); + return mergeFrom((com.google.pubsub.v1.PullResponse)other); } else { super.mergeFrom(other); return this; @@ -518,10 +481,9 @@ public Builder mergeFrom(com.google.pubsub.v1.PullResponse other) { receivedMessagesBuilder_ = null; receivedMessages_ = other.receivedMessages_; bitField0_ = (bitField0_ & ~0x00000001); - receivedMessagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getReceivedMessagesFieldBuilder() - : null; + receivedMessagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getReceivedMessagesFieldBuilder() : null; } else { receivedMessagesBuilder_.addAllMessages(other.receivedMessages_); } @@ -555,29 +517,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List receivedMessages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureReceivedMessagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - receivedMessages_ = - new java.util.ArrayList(receivedMessages_); + receivedMessages_ = new java.util.ArrayList(receivedMessages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.ReceivedMessage, - com.google.pubsub.v1.ReceivedMessage.Builder, - com.google.pubsub.v1.ReceivedMessageOrBuilder> - receivedMessagesBuilder_; + com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder> receivedMessagesBuilder_; /** - * - * *
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -595,8 +549,6 @@ public java.util.List getReceivedMessagesL
       }
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -614,8 +566,6 @@ public int getReceivedMessagesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -633,8 +583,6 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -644,7 +592,8 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) {
      *
      * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
      */
-    public Builder setReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessage value) {
+    public Builder setReceivedMessages(
+        int index, com.google.pubsub.v1.ReceivedMessage value) {
       if (receivedMessagesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -658,8 +607,6 @@ public Builder setReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa
       return this;
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -681,8 +628,6 @@ public Builder setReceivedMessages(
       return this;
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -706,8 +651,6 @@ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -717,7 +660,8 @@ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) {
      *
      * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
      */
-    public Builder addReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessage value) {
+    public Builder addReceivedMessages(
+        int index, com.google.pubsub.v1.ReceivedMessage value) {
       if (receivedMessagesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -731,8 +675,6 @@ public Builder addReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa
       return this;
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -754,8 +696,6 @@ public Builder addReceivedMessages(
       return this;
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -777,8 +717,6 @@ public Builder addReceivedMessages(
       return this;
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -792,7 +730,8 @@ public Builder addAllReceivedMessages(
         java.lang.Iterable values) {
       if (receivedMessagesBuilder_ == null) {
         ensureReceivedMessagesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, receivedMessages_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, receivedMessages_);
         onChanged();
       } else {
         receivedMessagesBuilder_.addAllMessages(values);
@@ -800,8 +739,6 @@ public Builder addAllReceivedMessages(
       return this;
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -822,8 +759,6 @@ public Builder clearReceivedMessages() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -844,8 +779,6 @@ public Builder removeReceivedMessages(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -855,12 +788,11 @@ public Builder removeReceivedMessages(int index) {
      *
      * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
      */
-    public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(int index) {
+    public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(
+        int index) {
       return getReceivedMessagesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -870,16 +802,14 @@ public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(i
      *
      * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
      */
-    public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index) {
+    public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(
+        int index) {
       if (receivedMessagesBuilder_ == null) {
-        return receivedMessages_.get(index);
-      } else {
+        return receivedMessages_.get(index);  } else {
         return receivedMessagesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -889,8 +819,8 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde
      *
      * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
      */
-    public java.util.List
-        getReceivedMessagesOrBuilderList() {
+    public java.util.List 
+         getReceivedMessagesOrBuilderList() {
       if (receivedMessagesBuilder_ != null) {
         return receivedMessagesBuilder_.getMessageOrBuilderList();
       } else {
@@ -898,8 +828,6 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde
       }
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -910,12 +838,10 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde
      * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
      */
     public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() {
-      return getReceivedMessagesFieldBuilder()
-          .addBuilder(com.google.pubsub.v1.ReceivedMessage.getDefaultInstance());
+      return getReceivedMessagesFieldBuilder().addBuilder(
+          com.google.pubsub.v1.ReceivedMessage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -925,13 +851,12 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder()
      *
      * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
      */
-    public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(int index) {
-      return getReceivedMessagesFieldBuilder()
-          .addBuilder(index, com.google.pubsub.v1.ReceivedMessage.getDefaultInstance());
+    public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(
+        int index) {
+      return getReceivedMessagesFieldBuilder().addBuilder(
+          index, com.google.pubsub.v1.ReceivedMessage.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. The list will be empty if there are no more
      * messages available in the backlog. For JSON, the response can be entirely
@@ -941,22 +866,16 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i
      *
      * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
      */
-    public java.util.List
-        getReceivedMessagesBuilderList() {
+    public java.util.List 
+         getReceivedMessagesBuilderList() {
       return getReceivedMessagesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.pubsub.v1.ReceivedMessage,
-            com.google.pubsub.v1.ReceivedMessage.Builder,
-            com.google.pubsub.v1.ReceivedMessageOrBuilder>
+        com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder> 
         getReceivedMessagesFieldBuilder() {
       if (receivedMessagesBuilder_ == null) {
-        receivedMessagesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.pubsub.v1.ReceivedMessage,
-                com.google.pubsub.v1.ReceivedMessage.Builder,
-                com.google.pubsub.v1.ReceivedMessageOrBuilder>(
+        receivedMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder>(
                 receivedMessages_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -965,9 +884,9 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i
       }
       return receivedMessagesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -977,12 +896,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PullResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.pubsub.v1.PullResponse)
   private static final com.google.pubsub.v1.PullResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.pubsub.v1.PullResponse();
   }
@@ -991,16 +910,16 @@ public static com.google.pubsub.v1.PullResponse getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public PullResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new PullResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public PullResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new PullResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1015,4 +934,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.pubsub.v1.PullResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java
similarity index 76%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java
index f7843870e..b03221915 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/pubsub/v1/pubsub.proto
 
 package com.google.pubsub.v1;
 
-public interface PullResponseOrBuilder
-    extends
+public interface PullResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PullResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -35,10 +17,9 @@ public interface PullResponseOrBuilder
    *
    * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
    */
-  java.util.List getReceivedMessagesList();
+  java.util.List 
+      getReceivedMessagesList();
   /**
-   *
-   *
    * 
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -50,8 +31,6 @@ public interface PullResponseOrBuilder
    */
   com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index);
   /**
-   *
-   *
    * 
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -63,8 +42,6 @@ public interface PullResponseOrBuilder
    */
   int getReceivedMessagesCount();
   /**
-   *
-   *
    * 
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -74,11 +51,9 @@ public interface PullResponseOrBuilder
    *
    * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
    */
-  java.util.List
+  java.util.List 
       getReceivedMessagesOrBuilderList();
   /**
-   *
-   *
    * 
    * Received Pub/Sub messages. The list will be empty if there are no more
    * messages available in the backlog. For JSON, the response can be entirely
@@ -88,5 +63,6 @@ public interface PullResponseOrBuilder
    *
    * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
    */
-  com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index);
+  com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java
similarity index 76%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java
index 12614a75b..d10474a6a 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/pubsub/v1/pubsub.proto
 
 package com.google.pubsub.v1;
 
 /**
- *
- *
  * 
  * Configuration for a push delivery endpoint.
  * 
* * Protobuf type {@code google.pubsub.v1.PushConfig} */ -public final class PushConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PushConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.PushConfig) PushConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PushConfig.newBuilder() to construct. private PushConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PushConfig() { pushEndpoint_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PushConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PushConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,97 +54,88 @@ private PushConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - pushEndpoint_ = s; - break; + pushEndpoint_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + attributes_ = com.google.protobuf.MapField.newMapField( + AttributesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - attributes_ = - com.google.protobuf.MapField.newMapField( - AttributesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry attributes__ = - input.readMessage( - AttributesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - attributes_.getMutableMap().put(attributes__.getKey(), attributes__.getValue()); - break; + com.google.protobuf.MapEntry + attributes__ = input.readMessage( + AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + attributes_.getMutableMap().put( + attributes__.getKey(), attributes__.getValue()); + break; + } + case 26: { + com.google.pubsub.v1.PushConfig.OidcToken.Builder subBuilder = null; + if (authenticationMethodCase_ == 3) { + subBuilder = ((com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_).toBuilder(); } - case 26: - { - com.google.pubsub.v1.PushConfig.OidcToken.Builder subBuilder = null; - if (authenticationMethodCase_ == 3) { - subBuilder = - ((com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_).toBuilder(); - } - authenticationMethod_ = - input.readMessage( - com.google.pubsub.v1.PushConfig.OidcToken.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_); - authenticationMethod_ = subBuilder.buildPartial(); - } - authenticationMethodCase_ = 3; - break; + authenticationMethod_ = + input.readMessage(com.google.pubsub.v1.PushConfig.OidcToken.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_); + authenticationMethod_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + authenticationMethodCase_ = 3; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: 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.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.pubsub.v1.PushConfig.class, com.google.pubsub.v1.PushConfig.Builder.class); } - public interface OidcTokenOrBuilder - extends + public interface OidcTokenOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PushConfig.OidcToken) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * [Service account
      * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -171,13 +145,10 @@ public interface OidcTokenOrBuilder
      * 
* * string service_account_email = 1; - * * @return The serviceAccountEmail. */ java.lang.String getServiceAccountEmail(); /** - * - * *
      * [Service account
      * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -187,14 +158,12 @@ public interface OidcTokenOrBuilder
      * 
* * string service_account_email = 1; - * * @return The bytes for serviceAccountEmail. */ - com.google.protobuf.ByteString getServiceAccountEmailBytes(); + com.google.protobuf.ByteString + getServiceAccountEmailBytes(); /** - * - * *
      * Audience to be used when generating OIDC token. The audience claim
      * identifies the recipients that the JWT is intended for. The audience
@@ -205,13 +174,10 @@ public interface OidcTokenOrBuilder
      * 
* * string audience = 2; - * * @return The audience. */ java.lang.String getAudience(); /** - * - * *
      * Audience to be used when generating OIDC token. The audience claim
      * identifies the recipients that the JWT is intended for. The audience
@@ -222,14 +188,12 @@ public interface OidcTokenOrBuilder
      * 
* * string audience = 2; - * * @return The bytes for audience. */ - com.google.protobuf.ByteString getAudienceBytes(); + com.google.protobuf.ByteString + getAudienceBytes(); } /** - * - * *
    * Contains information needed for generating an
    * [OpenID Connect
@@ -238,16 +202,15 @@ public interface OidcTokenOrBuilder
    *
    * Protobuf type {@code google.pubsub.v1.PushConfig.OidcToken}
    */
-  public static final class OidcToken extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class OidcToken extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.pubsub.v1.PushConfig.OidcToken)
       OidcTokenOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use OidcToken.newBuilder() to construct.
     private OidcToken(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private OidcToken() {
       serviceAccountEmail_ = "";
       audience_ = "";
@@ -255,15 +218,16 @@ private OidcToken() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new OidcToken();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private OidcToken(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -282,59 +246,53 @@ private OidcToken(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                serviceAccountEmail_ = s;
-                break;
-              }
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              serviceAccountEmail_ = s;
+              break;
+            }
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                audience_ = s;
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              audience_ = s;
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.pubsub.v1.PubsubProto
-          .internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.pubsub.v1.PubsubProto
-          .internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable
+      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.pubsub.v1.PushConfig.OidcToken.class,
-              com.google.pubsub.v1.PushConfig.OidcToken.Builder.class);
+              com.google.pubsub.v1.PushConfig.OidcToken.class, com.google.pubsub.v1.PushConfig.OidcToken.Builder.class);
     }
 
     public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 1;
     private volatile java.lang.Object serviceAccountEmail_;
     /**
-     *
-     *
      * 
      * [Service account
      * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -344,7 +302,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string service_account_email = 1; - * * @return The serviceAccountEmail. */ @java.lang.Override @@ -353,15 +310,14 @@ public java.lang.String getServiceAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; } } /** - * - * *
      * [Service account
      * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -371,15 +327,16 @@ public java.lang.String getServiceAccountEmail() {
      * 
* * string service_account_email = 1; - * * @return The bytes for serviceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -390,8 +347,6 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { public static final int AUDIENCE_FIELD_NUMBER = 2; private volatile java.lang.Object audience_; /** - * - * *
      * Audience to be used when generating OIDC token. The audience claim
      * identifies the recipients that the JWT is intended for. The audience
@@ -402,7 +357,6 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() {
      * 
* * string audience = 2; - * * @return The audience. */ @java.lang.Override @@ -411,15 +365,14 @@ public java.lang.String getAudience() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); audience_ = s; return s; } } /** - * - * *
      * Audience to be used when generating OIDC token. The audience claim
      * identifies the recipients that the JWT is intended for. The audience
@@ -430,15 +383,16 @@ public java.lang.String getAudience() {
      * 
* * string audience = 2; - * * @return The bytes for audience. */ @java.lang.Override - public com.google.protobuf.ByteString getAudienceBytes() { + public com.google.protobuf.ByteString + getAudienceBytes() { java.lang.Object ref = audience_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); audience_ = b; return b; } else { @@ -447,7 +401,6 @@ public com.google.protobuf.ByteString getAudienceBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -459,11 +412,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getServiceAccountEmailBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAccountEmail_); } - if (!getAudienceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audience_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, audience_); } unknownFields.writeTo(output); @@ -475,10 +429,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getServiceAccountEmailBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAccountEmail_); } - if (!getAudienceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audience_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, audience_); } size += unknownFields.getSerializedSize(); @@ -489,16 +443,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.pubsub.v1.PushConfig.OidcToken)) { return super.equals(obj); } - com.google.pubsub.v1.PushConfig.OidcToken other = - (com.google.pubsub.v1.PushConfig.OidcToken) obj; + com.google.pubsub.v1.PushConfig.OidcToken other = (com.google.pubsub.v1.PushConfig.OidcToken) obj; - if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; - if (!getAudience().equals(other.getAudience())) return false; + if (!getServiceAccountEmail() + .equals(other.getServiceAccountEmail())) return false; + if (!getAudience() + .equals(other.getAudience())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -519,94 +474,88 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.PushConfig.OidcToken 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.pubsub.v1.PushConfig.OidcToken parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.pubsub.v1.PushConfig.OidcToken parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.PushConfig.OidcToken parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.PushConfig.OidcToken parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.PushConfig.OidcToken prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -616,8 +565,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Contains information needed for generating an
      * [OpenID Connect
@@ -626,24 +573,21 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.pubsub.v1.PushConfig.OidcToken}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PushConfig.OidcToken)
         com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.pubsub.v1.PubsubProto
-            .internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.pubsub.v1.PubsubProto
-            .internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable
+        return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.pubsub.v1.PushConfig.OidcToken.class,
-                com.google.pubsub.v1.PushConfig.OidcToken.Builder.class);
+                com.google.pubsub.v1.PushConfig.OidcToken.class, com.google.pubsub.v1.PushConfig.OidcToken.Builder.class);
       }
 
       // Construct using com.google.pubsub.v1.PushConfig.OidcToken.newBuilder()
@@ -651,15 +595,16 @@ 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) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -671,9 +616,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.pubsub.v1.PubsubProto
-            .internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor;
       }
 
       @java.lang.Override
@@ -692,8 +637,7 @@ public com.google.pubsub.v1.PushConfig.OidcToken build() {
 
       @java.lang.Override
       public com.google.pubsub.v1.PushConfig.OidcToken buildPartial() {
-        com.google.pubsub.v1.PushConfig.OidcToken result =
-            new com.google.pubsub.v1.PushConfig.OidcToken(this);
+        com.google.pubsub.v1.PushConfig.OidcToken result = new com.google.pubsub.v1.PushConfig.OidcToken(this);
         result.serviceAccountEmail_ = serviceAccountEmail_;
         result.audience_ = audience_;
         onBuilt();
@@ -704,41 +648,38 @@ public com.google.pubsub.v1.PushConfig.OidcToken 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) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.pubsub.v1.PushConfig.OidcToken) {
-          return mergeFrom((com.google.pubsub.v1.PushConfig.OidcToken) other);
+          return mergeFrom((com.google.pubsub.v1.PushConfig.OidcToken)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -786,8 +727,6 @@ public Builder mergeFrom(
 
       private java.lang.Object serviceAccountEmail_ = "";
       /**
-       *
-       *
        * 
        * [Service account
        * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -797,13 +736,13 @@ public Builder mergeFrom(
        * 
* * string service_account_email = 1; - * * @return The serviceAccountEmail. */ public java.lang.String getServiceAccountEmail() { java.lang.Object ref = serviceAccountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; @@ -812,8 +751,6 @@ public java.lang.String getServiceAccountEmail() { } } /** - * - * *
        * [Service account
        * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -823,14 +760,15 @@ public java.lang.String getServiceAccountEmail() {
        * 
* * string service_account_email = 1; - * * @return The bytes for serviceAccountEmail. */ - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -838,8 +776,6 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { } } /** - * - * *
        * [Service account
        * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -849,22 +785,20 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() {
        * 
* * string service_account_email = 1; - * * @param value The serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmail(java.lang.String value) { + public Builder setServiceAccountEmail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccountEmail_ = value; onChanged(); return this; } /** - * - * *
        * [Service account
        * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -874,18 +808,15 @@ public Builder setServiceAccountEmail(java.lang.String value) {
        * 
* * string service_account_email = 1; - * * @return This builder for chaining. */ public Builder clearServiceAccountEmail() { - + serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); onChanged(); return this; } /** - * - * *
        * [Service account
        * email](https://cloud.google.com/iam/docs/service-accounts)
@@ -895,16 +826,16 @@ public Builder clearServiceAccountEmail() {
        * 
* * string service_account_email = 1; - * * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { + public Builder setServiceAccountEmailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountEmail_ = value; onChanged(); return this; @@ -912,8 +843,6 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) private java.lang.Object audience_ = ""; /** - * - * *
        * Audience to be used when generating OIDC token. The audience claim
        * identifies the recipients that the JWT is intended for. The audience
@@ -924,13 +853,13 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value)
        * 
* * string audience = 2; - * * @return The audience. */ public java.lang.String getAudience() { java.lang.Object ref = audience_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); audience_ = s; return s; @@ -939,8 +868,6 @@ public java.lang.String getAudience() { } } /** - * - * *
        * Audience to be used when generating OIDC token. The audience claim
        * identifies the recipients that the JWT is intended for. The audience
@@ -951,14 +878,15 @@ public java.lang.String getAudience() {
        * 
* * string audience = 2; - * * @return The bytes for audience. */ - public com.google.protobuf.ByteString getAudienceBytes() { + public com.google.protobuf.ByteString + getAudienceBytes() { java.lang.Object ref = audience_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); audience_ = b; return b; } else { @@ -966,8 +894,6 @@ public com.google.protobuf.ByteString getAudienceBytes() { } } /** - * - * *
        * Audience to be used when generating OIDC token. The audience claim
        * identifies the recipients that the JWT is intended for. The audience
@@ -978,22 +904,20 @@ public com.google.protobuf.ByteString getAudienceBytes() {
        * 
* * string audience = 2; - * * @param value The audience to set. * @return This builder for chaining. */ - public Builder setAudience(java.lang.String value) { + public Builder setAudience( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + audience_ = value; onChanged(); return this; } /** - * - * *
        * Audience to be used when generating OIDC token. The audience claim
        * identifies the recipients that the JWT is intended for. The audience
@@ -1004,18 +928,15 @@ public Builder setAudience(java.lang.String value) {
        * 
* * string audience = 2; - * * @return This builder for chaining. */ public Builder clearAudience() { - + audience_ = getDefaultInstance().getAudience(); onChanged(); return this; } /** - * - * *
        * Audience to be used when generating OIDC token. The audience claim
        * identifies the recipients that the JWT is intended for. The audience
@@ -1026,21 +947,20 @@ public Builder clearAudience() {
        * 
* * string audience = 2; - * * @param value The bytes for audience to set. * @return This builder for chaining. */ - public Builder setAudienceBytes(com.google.protobuf.ByteString value) { + public Builder setAudienceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + audience_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1053,12 +973,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PushConfig.OidcToken) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.PushConfig.OidcToken) private static final com.google.pubsub.v1.PushConfig.OidcToken DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.PushConfig.OidcToken(); } @@ -1067,16 +987,16 @@ public static com.google.pubsub.v1.PushConfig.OidcToken getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OidcToken parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OidcToken(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OidcToken parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OidcToken(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1091,19 +1011,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.PushConfig.OidcToken getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int authenticationMethodCase_ = 0; private java.lang.Object authenticationMethod_; - public enum AuthenticationMethodCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { OIDC_TOKEN(3), AUTHENTICATIONMETHOD_NOT_SET(0); private final int value; - private AuthenticationMethodCase(int value) { this.value = value; } @@ -1119,36 +1037,31 @@ public static AuthenticationMethodCase valueOf(int value) { public static AuthenticationMethodCase forNumber(int value) { switch (value) { - case 3: - return OIDC_TOKEN; - case 0: - return AUTHENTICATIONMETHOD_NOT_SET; - default: - return null; + case 3: return OIDC_TOKEN; + case 0: return AUTHENTICATIONMETHOD_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public AuthenticationMethodCase getAuthenticationMethodCase() { - return AuthenticationMethodCase.forNumber(authenticationMethodCase_); + public AuthenticationMethodCase + getAuthenticationMethodCase() { + return AuthenticationMethodCase.forNumber( + authenticationMethodCase_); } public static final int PUSH_ENDPOINT_FIELD_NUMBER = 1; private volatile java.lang.Object pushEndpoint_; /** - * - * *
    * A URL locating the endpoint to which messages should be pushed.
    * For example, a Webhook endpoint might use `https://example.com/push`.
    * 
* * string push_endpoint = 1; - * * @return The pushEndpoint. */ @java.lang.Override @@ -1157,30 +1070,30 @@ public java.lang.String getPushEndpoint() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pushEndpoint_ = s; return s; } } /** - * - * *
    * A URL locating the endpoint to which messages should be pushed.
    * For example, a Webhook endpoint might use `https://example.com/push`.
    * 
* * string push_endpoint = 1; - * * @return The bytes for pushEndpoint. */ @java.lang.Override - public com.google.protobuf.ByteString getPushEndpointBytes() { + public com.google.protobuf.ByteString + getPushEndpointBytes() { java.lang.Object ref = pushEndpoint_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pushEndpoint_ = b; return b; } else { @@ -1189,23 +1102,24 @@ public com.google.protobuf.ByteString getPushEndpointBytes() { } public static final int ATTRIBUTES_FIELD_NUMBER = 2; - private static final class AttributesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField attributes_; - - private com.google.protobuf.MapField internalGetAttributes() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> 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_; } @@ -1214,8 +1128,6 @@ public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** - * - * *
    * Endpoint configuration attributes that can be used to control different
    * aspects of the message delivery.
@@ -1237,22 +1149,22 @@ public int getAttributesCount() {
    *
    * map<string, string> attributes = 2;
    */
+
   @java.lang.Override
-  public boolean containsAttributes(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsAttributes(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetAttributes().getMap().containsKey(key);
   }
-  /** Use {@link #getAttributesMap()} instead. */
+  /**
+   * Use {@link #getAttributesMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getAttributes() {
     return getAttributesMap();
   }
   /**
-   *
-   *
    * 
    * Endpoint configuration attributes that can be used to control different
    * aspects of the message delivery.
@@ -1275,12 +1187,11 @@ public java.util.Map getAttributes() {
    * map<string, string> attributes = 2;
    */
   @java.lang.Override
+
   public java.util.Map getAttributesMap() {
     return internalGetAttributes().getMap();
   }
   /**
-   *
-   *
    * 
    * Endpoint configuration attributes that can be used to control different
    * aspects of the message delivery.
@@ -1303,17 +1214,16 @@ public java.util.Map getAttributesMap() {
    * map<string, string> attributes = 2;
    */
   @java.lang.Override
+
   public java.lang.String getAttributesOrDefault(
-      java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetAttributes().getMap();
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetAttributes().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Endpoint configuration attributes that can be used to control different
    * aspects of the message delivery.
@@ -1336,11 +1246,12 @@ public java.lang.String getAttributesOrDefault(
    * map<string, string> attributes = 2;
    */
   @java.lang.Override
-  public java.lang.String getAttributesOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetAttributes().getMap();
+
+  public java.lang.String getAttributesOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetAttributes().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1349,15 +1260,12 @@ public java.lang.String getAttributesOrThrow(java.lang.String key) {
 
   public static final int OIDC_TOKEN_FIELD_NUMBER = 3;
   /**
-   *
-   *
    * 
    * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    * `Authorization` header in the HTTP request for every pushed message.
    * 
* * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; - * * @return Whether the oidcToken field is set. */ @java.lang.Override @@ -1365,27 +1273,22 @@ public boolean hasOidcToken() { return authenticationMethodCase_ == 3; } /** - * - * *
    * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    * `Authorization` header in the HTTP request for every pushed message.
    * 
* * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; - * * @return The oidcToken. */ @java.lang.Override public com.google.pubsub.v1.PushConfig.OidcToken getOidcToken() { if (authenticationMethodCase_ == 3) { - return (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_; + return (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_; } return com.google.pubsub.v1.PushConfig.OidcToken.getDefaultInstance(); } /** - * - * *
    * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    * `Authorization` header in the HTTP request for every pushed message.
@@ -1396,13 +1299,12 @@ public com.google.pubsub.v1.PushConfig.OidcToken getOidcToken() {
   @java.lang.Override
   public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder() {
     if (authenticationMethodCase_ == 3) {
-      return (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_;
+       return (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_;
     }
     return com.google.pubsub.v1.PushConfig.OidcToken.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1414,12 +1316,17 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (!getPushEndpointBytes().isEmpty()) {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pushEndpoint_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pushEndpoint_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 2);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetAttributes(),
+        AttributesDefaultEntryHolder.defaultEntry,
+        2);
     if (authenticationMethodCase_ == 3) {
       output.writeMessage(3, (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_);
     }
@@ -1432,23 +1339,22 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getPushEndpointBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pushEndpoint_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pushEndpoint_);
     }
-    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(2, attributes__);
+    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(2, attributes__);
     }
     if (authenticationMethodCase_ == 3) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              3, (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1458,19 +1364,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.pubsub.v1.PushConfig)) {
       return super.equals(obj);
     }
     com.google.pubsub.v1.PushConfig other = (com.google.pubsub.v1.PushConfig) obj;
 
-    if (!getPushEndpoint().equals(other.getPushEndpoint())) return false;
-    if (!internalGetAttributes().equals(other.internalGetAttributes())) return false;
+    if (!getPushEndpoint()
+        .equals(other.getPushEndpoint())) return false;
+    if (!internalGetAttributes().equals(
+        other.internalGetAttributes())) return false;
     if (!getAuthenticationMethodCase().equals(other.getAuthenticationMethodCase())) return false;
     switch (authenticationMethodCase_) {
       case 3:
-        if (!getOidcToken().equals(other.getOidcToken())) return false;
+        if (!getOidcToken()
+            .equals(other.getOidcToken())) return false;
         break;
       case 0:
       default:
@@ -1505,143 +1414,138 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.pubsub.v1.PushConfig parseFrom(java.nio.ByteBuffer data)
+  public static com.google.pubsub.v1.PushConfig parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.PushConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.pubsub.v1.PushConfig parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.pubsub.v1.PushConfig parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.PushConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.PushConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.PushConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.PushConfig 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.pubsub.v1.PushConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.PushConfig parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.pubsub.v1.PushConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.PushConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.pubsub.v1.PushConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.pubsub.v1.PushConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 push delivery endpoint.
    * 
* * Protobuf type {@code google.pubsub.v1.PushConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PushConfig) com.google.pubsub.v1.PushConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_PushConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetAttributes(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 2: 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.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.pubsub.v1.PushConfig.class, com.google.pubsub.v1.PushConfig.Builder.class); } @@ -1651,15 +1555,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1672,9 +1577,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_PushConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_descriptor; } @java.lang.Override @@ -1714,39 +1619,38 @@ public com.google.pubsub.v1.PushConfig 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.pubsub.v1.PushConfig) { - return mergeFrom((com.google.pubsub.v1.PushConfig) other); + return mergeFrom((com.google.pubsub.v1.PushConfig)other); } else { super.mergeFrom(other); return this; @@ -1759,17 +1663,16 @@ public Builder mergeFrom(com.google.pubsub.v1.PushConfig other) { pushEndpoint_ = other.pushEndpoint_; onChanged(); } - internalGetMutableAttributes().mergeFrom(other.internalGetAttributes()); + internalGetMutableAttributes().mergeFrom( + other.internalGetAttributes()); switch (other.getAuthenticationMethodCase()) { - case OIDC_TOKEN: - { - mergeOidcToken(other.getOidcToken()); - break; - } - case AUTHENTICATIONMETHOD_NOT_SET: - { - break; - } + case OIDC_TOKEN: { + mergeOidcToken(other.getOidcToken()); + break; + } + case AUTHENTICATIONMETHOD_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1799,12 +1702,12 @@ public Builder mergeFrom( } return this; } - private int authenticationMethodCase_ = 0; private java.lang.Object authenticationMethod_; - - public AuthenticationMethodCase getAuthenticationMethodCase() { - return AuthenticationMethodCase.forNumber(authenticationMethodCase_); + public AuthenticationMethodCase + getAuthenticationMethodCase() { + return AuthenticationMethodCase.forNumber( + authenticationMethodCase_); } public Builder clearAuthenticationMethod() { @@ -1818,21 +1721,19 @@ public Builder clearAuthenticationMethod() { private java.lang.Object pushEndpoint_ = ""; /** - * - * *
      * A URL locating the endpoint to which messages should be pushed.
      * For example, a Webhook endpoint might use `https://example.com/push`.
      * 
* * string push_endpoint = 1; - * * @return The pushEndpoint. */ public java.lang.String getPushEndpoint() { java.lang.Object ref = pushEndpoint_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pushEndpoint_ = s; return s; @@ -1841,22 +1742,21 @@ public java.lang.String getPushEndpoint() { } } /** - * - * *
      * A URL locating the endpoint to which messages should be pushed.
      * For example, a Webhook endpoint might use `https://example.com/push`.
      * 
* * string push_endpoint = 1; - * * @return The bytes for pushEndpoint. */ - public com.google.protobuf.ByteString getPushEndpointBytes() { + public com.google.protobuf.ByteString + getPushEndpointBytes() { java.lang.Object ref = pushEndpoint_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pushEndpoint_ = b; return b; } else { @@ -1864,87 +1764,78 @@ public com.google.protobuf.ByteString getPushEndpointBytes() { } } /** - * - * *
      * A URL locating the endpoint to which messages should be pushed.
      * For example, a Webhook endpoint might use `https://example.com/push`.
      * 
* * string push_endpoint = 1; - * * @param value The pushEndpoint to set. * @return This builder for chaining. */ - public Builder setPushEndpoint(java.lang.String value) { + public Builder setPushEndpoint( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pushEndpoint_ = value; onChanged(); return this; } /** - * - * *
      * A URL locating the endpoint to which messages should be pushed.
      * For example, a Webhook endpoint might use `https://example.com/push`.
      * 
* * string push_endpoint = 1; - * * @return This builder for chaining. */ public Builder clearPushEndpoint() { - + pushEndpoint_ = getDefaultInstance().getPushEndpoint(); onChanged(); return this; } /** - * - * *
      * A URL locating the endpoint to which messages should be pushed.
      * For example, a Webhook endpoint might use `https://example.com/push`.
      * 
* * string push_endpoint = 1; - * * @param value The bytes for pushEndpoint to set. * @return This builder for chaining. */ - public Builder setPushEndpointBytes(com.google.protobuf.ByteString value) { + public Builder setPushEndpointBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pushEndpoint_ = value; onChanged(); return this; } - private com.google.protobuf.MapField attributes_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> attributes_; private com.google.protobuf.MapField - internalGetAttributes() { + internalGetAttributes() { if (attributes_ == null) { return com.google.protobuf.MapField.emptyMapField( AttributesDefaultEntryHolder.defaultEntry); } return attributes_; } - private com.google.protobuf.MapField - internalGetMutableAttributes() { - onChanged(); - ; + internalGetMutableAttributes() { + onChanged();; if (attributes_ == null) { - attributes_ = - com.google.protobuf.MapField.newMapField(AttributesDefaultEntryHolder.defaultEntry); + attributes_ = com.google.protobuf.MapField.newMapField( + AttributesDefaultEntryHolder.defaultEntry); } if (!attributes_.isMutable()) { attributes_ = attributes_.copy(); @@ -1956,8 +1847,6 @@ public int getAttributesCount() { return internalGetAttributes().getMap().size(); } /** - * - * *
      * Endpoint configuration attributes that can be used to control different
      * aspects of the message delivery.
@@ -1979,22 +1868,22 @@ public int getAttributesCount() {
      *
      * map<string, string> attributes = 2;
      */
+
     @java.lang.Override
-    public boolean containsAttributes(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsAttributes(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetAttributes().getMap().containsKey(key);
     }
-    /** Use {@link #getAttributesMap()} instead. */
+    /**
+     * Use {@link #getAttributesMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getAttributes() {
       return getAttributesMap();
     }
     /**
-     *
-     *
      * 
      * Endpoint configuration attributes that can be used to control different
      * aspects of the message delivery.
@@ -2017,12 +1906,11 @@ public java.util.Map getAttributes() {
      * map<string, string> attributes = 2;
      */
     @java.lang.Override
+
     public java.util.Map getAttributesMap() {
       return internalGetAttributes().getMap();
     }
     /**
-     *
-     *
      * 
      * Endpoint configuration attributes that can be used to control different
      * aspects of the message delivery.
@@ -2045,17 +1933,16 @@ public java.util.Map getAttributesMap() {
      * map<string, string> attributes = 2;
      */
     @java.lang.Override
+
     public java.lang.String getAttributesOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetAttributes().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetAttributes().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Endpoint configuration attributes that can be used to control different
      * aspects of the message delivery.
@@ -2078,11 +1965,12 @@ public java.lang.String getAttributesOrDefault(
      * map<string, string> attributes = 2;
      */
     @java.lang.Override
-    public java.lang.String getAttributesOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetAttributes().getMap();
+
+    public java.lang.String getAttributesOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetAttributes().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2090,12 +1978,11 @@ public java.lang.String getAttributesOrThrow(java.lang.String key) {
     }
 
     public Builder clearAttributes() {
-      internalGetMutableAttributes().getMutableMap().clear();
+      internalGetMutableAttributes().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Endpoint configuration attributes that can be used to control different
      * aspects of the message delivery.
@@ -2117,21 +2004,23 @@ public Builder clearAttributes() {
      *
      * map<string, string> attributes = 2;
      */
-    public Builder removeAttributes(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableAttributes().getMutableMap().remove(key);
+
+    public Builder removeAttributes(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableAttributes().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableAttributes() {
+    public java.util.Map
+    getMutableAttributes() {
       return internalGetMutableAttributes().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Endpoint configuration attributes that can be used to control different
      * aspects of the message delivery.
@@ -2153,19 +2042,16 @@ public java.util.Map getMutableAttributes()
      *
      * map<string, string> attributes = 2;
      */
-    public Builder putAttributes(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableAttributes().getMutableMap().put(key, value);
+    public Builder putAttributes(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableAttributes().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Endpoint configuration attributes that can be used to control different
      * aspects of the message delivery.
@@ -2187,26 +2073,23 @@ public Builder putAttributes(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> attributes = 2;
      */
-    public Builder putAllAttributes(java.util.Map values) {
-      internalGetMutableAttributes().getMutableMap().putAll(values);
+
+    public Builder putAllAttributes(
+        java.util.Map values) {
+      internalGetMutableAttributes().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.pubsub.v1.PushConfig.OidcToken,
-            com.google.pubsub.v1.PushConfig.OidcToken.Builder,
-            com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder>
-        oidcTokenBuilder_;
+        com.google.pubsub.v1.PushConfig.OidcToken, com.google.pubsub.v1.PushConfig.OidcToken.Builder, com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder> oidcTokenBuilder_;
     /**
-     *
-     *
      * 
      * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
      * `Authorization` header in the HTTP request for every pushed message.
      * 
* * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; - * * @return Whether the oidcToken field is set. */ @java.lang.Override @@ -2214,15 +2097,12 @@ public boolean hasOidcToken() { return authenticationMethodCase_ == 3; } /** - * - * *
      * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
      * `Authorization` header in the HTTP request for every pushed message.
      * 
* * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; - * * @return The oidcToken. */ @java.lang.Override @@ -2240,8 +2120,6 @@ public com.google.pubsub.v1.PushConfig.OidcToken getOidcToken() { } } /** - * - * *
      * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
      * `Authorization` header in the HTTP request for every pushed message.
@@ -2263,8 +2141,6 @@ public Builder setOidcToken(com.google.pubsub.v1.PushConfig.OidcToken value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
      * `Authorization` header in the HTTP request for every pushed message.
@@ -2272,7 +2148,8 @@ public Builder setOidcToken(com.google.pubsub.v1.PushConfig.OidcToken value) {
      *
      * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3;
      */
-    public Builder setOidcToken(com.google.pubsub.v1.PushConfig.OidcToken.Builder builderForValue) {
+    public Builder setOidcToken(
+        com.google.pubsub.v1.PushConfig.OidcToken.Builder builderForValue) {
       if (oidcTokenBuilder_ == null) {
         authenticationMethod_ = builderForValue.build();
         onChanged();
@@ -2283,8 +2160,6 @@ public Builder setOidcToken(com.google.pubsub.v1.PushConfig.OidcToken.Builder bu
       return this;
     }
     /**
-     *
-     *
      * 
      * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
      * `Authorization` header in the HTTP request for every pushed message.
@@ -2294,14 +2169,10 @@ public Builder setOidcToken(com.google.pubsub.v1.PushConfig.OidcToken.Builder bu
      */
     public Builder mergeOidcToken(com.google.pubsub.v1.PushConfig.OidcToken value) {
       if (oidcTokenBuilder_ == null) {
-        if (authenticationMethodCase_ == 3
-            && authenticationMethod_
-                != com.google.pubsub.v1.PushConfig.OidcToken.getDefaultInstance()) {
-          authenticationMethod_ =
-              com.google.pubsub.v1.PushConfig.OidcToken.newBuilder(
-                      (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (authenticationMethodCase_ == 3 &&
+            authenticationMethod_ != com.google.pubsub.v1.PushConfig.OidcToken.getDefaultInstance()) {
+          authenticationMethod_ = com.google.pubsub.v1.PushConfig.OidcToken.newBuilder((com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_)
+              .mergeFrom(value).buildPartial();
         } else {
           authenticationMethod_ = value;
         }
@@ -2316,8 +2187,6 @@ public Builder mergeOidcToken(com.google.pubsub.v1.PushConfig.OidcToken value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
      * `Authorization` header in the HTTP request for every pushed message.
@@ -2342,8 +2211,6 @@ public Builder clearOidcToken() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
      * `Authorization` header in the HTTP request for every pushed message.
@@ -2355,8 +2222,6 @@ public com.google.pubsub.v1.PushConfig.OidcToken.Builder getOidcTokenBuilder() {
       return getOidcTokenFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
      * `Authorization` header in the HTTP request for every pushed message.
@@ -2376,8 +2241,6 @@ public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder(
       }
     }
     /**
-     *
-     *
      * 
      * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
      * `Authorization` header in the HTTP request for every pushed message.
@@ -2386,32 +2249,26 @@ public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder(
      * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.pubsub.v1.PushConfig.OidcToken,
-            com.google.pubsub.v1.PushConfig.OidcToken.Builder,
-            com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder>
+        com.google.pubsub.v1.PushConfig.OidcToken, com.google.pubsub.v1.PushConfig.OidcToken.Builder, com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder> 
         getOidcTokenFieldBuilder() {
       if (oidcTokenBuilder_ == null) {
         if (!(authenticationMethodCase_ == 3)) {
           authenticationMethod_ = com.google.pubsub.v1.PushConfig.OidcToken.getDefaultInstance();
         }
-        oidcTokenBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.pubsub.v1.PushConfig.OidcToken,
-                com.google.pubsub.v1.PushConfig.OidcToken.Builder,
-                com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder>(
+        oidcTokenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.pubsub.v1.PushConfig.OidcToken, com.google.pubsub.v1.PushConfig.OidcToken.Builder, com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder>(
                 (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_,
                 getParentForChildren(),
                 isClean());
         authenticationMethod_ = null;
       }
       authenticationMethodCase_ = 3;
-      onChanged();
-      ;
+      onChanged();;
       return oidcTokenBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2421,12 +2278,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PushConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.pubsub.v1.PushConfig)
   private static final com.google.pubsub.v1.PushConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.pubsub.v1.PushConfig();
   }
@@ -2435,16 +2292,16 @@ public static com.google.pubsub.v1.PushConfig getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public PushConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new PushConfig(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public PushConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new PushConfig(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2459,4 +2316,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.pubsub.v1.PushConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java
similarity index 86%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java
index 091a066f9..76bc2a967 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java
@@ -1,58 +1,35 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/pubsub/v1/pubsub.proto
 
 package com.google.pubsub.v1;
 
-public interface PushConfigOrBuilder
-    extends
+public interface PushConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PushConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A URL locating the endpoint to which messages should be pushed.
    * For example, a Webhook endpoint might use `https://example.com/push`.
    * 
* * string push_endpoint = 1; - * * @return The pushEndpoint. */ java.lang.String getPushEndpoint(); /** - * - * *
    * A URL locating the endpoint to which messages should be pushed.
    * For example, a Webhook endpoint might use `https://example.com/push`.
    * 
* * string push_endpoint = 1; - * * @return The bytes for pushEndpoint. */ - com.google.protobuf.ByteString getPushEndpointBytes(); + com.google.protobuf.ByteString + getPushEndpointBytes(); /** - * - * *
    * Endpoint configuration attributes that can be used to control different
    * aspects of the message delivery.
@@ -76,8 +53,6 @@ public interface PushConfigOrBuilder
    */
   int getAttributesCount();
   /**
-   *
-   *
    * 
    * Endpoint configuration attributes that can be used to control different
    * aspects of the message delivery.
@@ -99,13 +74,15 @@ public interface PushConfigOrBuilder
    *
    * map<string, string> attributes = 2;
    */
-  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();
+  java.util.Map
+  getAttributes();
   /**
-   *
-   *
    * 
    * Endpoint configuration attributes that can be used to control different
    * aspects of the message delivery.
@@ -127,10 +104,9 @@ public interface PushConfigOrBuilder
    *
    * map<string, string> attributes = 2;
    */
-  java.util.Map getAttributesMap();
+  java.util.Map
+  getAttributesMap();
   /**
-   *
-   *
    * 
    * Endpoint configuration attributes that can be used to control different
    * aspects of the message delivery.
@@ -152,10 +128,11 @@ public interface PushConfigOrBuilder
    *
    * map<string, string> attributes = 2;
    */
-  java.lang.String getAttributesOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getAttributesOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Endpoint configuration attributes that can be used to control different
    * aspects of the message delivery.
@@ -177,37 +154,31 @@ public interface PushConfigOrBuilder
    *
    * map<string, string> attributes = 2;
    */
-  java.lang.String getAttributesOrThrow(java.lang.String key);
+
+  java.lang.String getAttributesOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    * `Authorization` header in the HTTP request for every pushed message.
    * 
* * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; - * * @return Whether the oidcToken field is set. */ boolean hasOidcToken(); /** - * - * *
    * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    * `Authorization` header in the HTTP request for every pushed message.
    * 
* * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; - * * @return The oidcToken. */ com.google.pubsub.v1.PushConfig.OidcToken getOidcToken(); /** - * - * *
    * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    * `Authorization` header in the HTTP request for every pushed message.
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java
similarity index 72%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java
index 38e472e7a..bdb1cee8e 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/pubsub/v1/pubsub.proto
 
 package com.google.pubsub.v1;
 
 /**
- *
- *
  * 
  * A message and its corresponding acknowledgment ID.
  * 
* * Protobuf type {@code google.pubsub.v1.ReceivedMessage} */ -public final class ReceivedMessage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ReceivedMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ReceivedMessage) ReceivedMessageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ReceivedMessage.newBuilder() to construct. private ReceivedMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReceivedMessage() { ackId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReceivedMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ReceivedMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,78 +53,70 @@ private ReceivedMessage( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - ackId_ = s; - break; - } - case 18: - { - com.google.pubsub.v1.PubsubMessage.Builder subBuilder = null; - if (message_ != null) { - subBuilder = message_.toBuilder(); - } - message_ = - input.readMessage(com.google.pubsub.v1.PubsubMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(message_); - message_ = subBuilder.buildPartial(); - } - - break; + ackId_ = s; + break; + } + case 18: { + com.google.pubsub.v1.PubsubMessage.Builder subBuilder = null; + if (message_ != null) { + subBuilder = message_.toBuilder(); } - case 24: - { - deliveryAttempt_ = input.readInt32(); - break; + message_ = input.readMessage(com.google.pubsub.v1.PubsubMessage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(message_); + message_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 24: { + + deliveryAttempt_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ReceivedMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ReceivedMessage.class, - com.google.pubsub.v1.ReceivedMessage.Builder.class); + com.google.pubsub.v1.ReceivedMessage.class, com.google.pubsub.v1.ReceivedMessage.Builder.class); } public static final int ACK_ID_FIELD_NUMBER = 1; private volatile java.lang.Object ackId_; /** - * - * *
    * This ID can be used to acknowledge the received message.
    * 
* * string ack_id = 1; - * * @return The ackId. */ @java.lang.Override @@ -150,29 +125,29 @@ public java.lang.String getAckId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ackId_ = s; return s; } } /** - * - * *
    * This ID can be used to acknowledge the received message.
    * 
* * string ack_id = 1; - * * @return The bytes for ackId. */ @java.lang.Override - public com.google.protobuf.ByteString getAckIdBytes() { + public com.google.protobuf.ByteString + getAckIdBytes() { java.lang.Object ref = ackId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ackId_ = b; return b; } else { @@ -183,14 +158,11 @@ public com.google.protobuf.ByteString getAckIdBytes() { public static final int MESSAGE_FIELD_NUMBER = 2; private com.google.pubsub.v1.PubsubMessage message_; /** - * - * *
    * The message.
    * 
* * .google.pubsub.v1.PubsubMessage message = 2; - * * @return Whether the message field is set. */ @java.lang.Override @@ -198,14 +170,11 @@ public boolean hasMessage() { return message_ != null; } /** - * - * *
    * The message.
    * 
* * .google.pubsub.v1.PubsubMessage message = 2; - * * @return The message. */ @java.lang.Override @@ -213,8 +182,6 @@ public com.google.pubsub.v1.PubsubMessage getMessage() { return message_ == null ? com.google.pubsub.v1.PubsubMessage.getDefaultInstance() : message_; } /** - * - * *
    * The message.
    * 
@@ -229,8 +196,6 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { public static final int DELIVERY_ATTEMPT_FIELD_NUMBER = 3; private int deliveryAttempt_; /** - * - * *
    * The approximate number of times that Cloud Pub/Sub has attempted to deliver
    * the associated message to a subscriber.
@@ -247,7 +212,6 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() {
    * 
* * int32 delivery_attempt = 3; - * * @return The deliveryAttempt. */ @java.lang.Override @@ -256,7 +220,6 @@ public int getDeliveryAttempt() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,8 +231,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getAckIdBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ackId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ackId_); } if (message_ != null) { @@ -287,14 +251,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getAckIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ackId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ackId_); } if (message_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMessage()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMessage()); } if (deliveryAttempt_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, deliveryAttempt_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, deliveryAttempt_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -304,19 +270,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.pubsub.v1.ReceivedMessage)) { return super.equals(obj); } com.google.pubsub.v1.ReceivedMessage other = (com.google.pubsub.v1.ReceivedMessage) obj; - if (!getAckId().equals(other.getAckId())) return false; + if (!getAckId() + .equals(other.getAckId())) 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 (getDeliveryAttempt() != other.getDeliveryAttempt()) return false; + if (getDeliveryAttempt() + != other.getDeliveryAttempt()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -341,126 +310,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ReceivedMessage parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ReceivedMessage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ReceivedMessage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.pubsub.v1.ReceivedMessage parseFrom(com.google.protobuf.ByteString data) + public static com.google.pubsub.v1.ReceivedMessage parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ReceivedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ReceivedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ReceivedMessage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ReceivedMessage 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.pubsub.v1.ReceivedMessage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ReceivedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.ReceivedMessage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ReceivedMessage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.ReceivedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.ReceivedMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 and its corresponding acknowledgment ID.
    * 
* * Protobuf type {@code google.pubsub.v1.ReceivedMessage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ReceivedMessage) com.google.pubsub.v1.ReceivedMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ReceivedMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ReceivedMessage.class, - com.google.pubsub.v1.ReceivedMessage.Builder.class); + com.google.pubsub.v1.ReceivedMessage.class, com.google.pubsub.v1.ReceivedMessage.Builder.class); } // Construct using com.google.pubsub.v1.ReceivedMessage.newBuilder() @@ -468,15 +429,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -494,9 +456,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_ReceivedMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_descriptor; } @java.lang.Override @@ -531,39 +493,38 @@ public com.google.pubsub.v1.ReceivedMessage 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.pubsub.v1.ReceivedMessage) { - return mergeFrom((com.google.pubsub.v1.ReceivedMessage) other); + return mergeFrom((com.google.pubsub.v1.ReceivedMessage)other); } else { super.mergeFrom(other); return this; @@ -613,20 +574,18 @@ public Builder mergeFrom( private java.lang.Object ackId_ = ""; /** - * - * *
      * This ID can be used to acknowledge the received message.
      * 
* * string ack_id = 1; - * * @return The ackId. */ public java.lang.String getAckId() { java.lang.Object ref = ackId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ackId_ = s; return s; @@ -635,21 +594,20 @@ public java.lang.String getAckId() { } } /** - * - * *
      * This ID can be used to acknowledge the received message.
      * 
* * string ack_id = 1; - * * @return The bytes for ackId. */ - public com.google.protobuf.ByteString getAckIdBytes() { + public com.google.protobuf.ByteString + getAckIdBytes() { java.lang.Object ref = ackId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ackId_ = b; return b; } else { @@ -657,61 +615,54 @@ public com.google.protobuf.ByteString getAckIdBytes() { } } /** - * - * *
      * This ID can be used to acknowledge the received message.
      * 
* * string ack_id = 1; - * * @param value The ackId to set. * @return This builder for chaining. */ - public Builder setAckId(java.lang.String value) { + public Builder setAckId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ackId_ = value; onChanged(); return this; } /** - * - * *
      * This ID can be used to acknowledge the received message.
      * 
* * string ack_id = 1; - * * @return This builder for chaining. */ public Builder clearAckId() { - + ackId_ = getDefaultInstance().getAckId(); onChanged(); return this; } /** - * - * *
      * This ID can be used to acknowledge the received message.
      * 
* * string ack_id = 1; - * * @param value The bytes for ackId to set. * @return This builder for chaining. */ - public Builder setAckIdBytes(com.google.protobuf.ByteString value) { + public Builder setAckIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ackId_ = value; onChanged(); return this; @@ -719,47 +670,34 @@ public Builder setAckIdBytes(com.google.protobuf.ByteString value) { private com.google.pubsub.v1.PubsubMessage message_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PubsubMessage, - com.google.pubsub.v1.PubsubMessage.Builder, - com.google.pubsub.v1.PubsubMessageOrBuilder> - messageBuilder_; + com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder> messageBuilder_; /** - * - * *
      * The message.
      * 
* * .google.pubsub.v1.PubsubMessage message = 2; - * * @return Whether the message field is set. */ public boolean hasMessage() { return messageBuilder_ != null || message_ != null; } /** - * - * *
      * The message.
      * 
* * .google.pubsub.v1.PubsubMessage message = 2; - * * @return The message. */ public com.google.pubsub.v1.PubsubMessage getMessage() { if (messageBuilder_ == null) { - return message_ == null - ? com.google.pubsub.v1.PubsubMessage.getDefaultInstance() - : message_; + return message_ == null ? com.google.pubsub.v1.PubsubMessage.getDefaultInstance() : message_; } else { return messageBuilder_.getMessage(); } } /** - * - * *
      * The message.
      * 
@@ -780,15 +718,14 @@ public Builder setMessage(com.google.pubsub.v1.PubsubMessage value) { return this; } /** - * - * *
      * The message.
      * 
* * .google.pubsub.v1.PubsubMessage message = 2; */ - public Builder setMessage(com.google.pubsub.v1.PubsubMessage.Builder builderForValue) { + public Builder setMessage( + com.google.pubsub.v1.PubsubMessage.Builder builderForValue) { if (messageBuilder_ == null) { message_ = builderForValue.build(); onChanged(); @@ -799,8 +736,6 @@ public Builder setMessage(com.google.pubsub.v1.PubsubMessage.Builder builderForV return this; } /** - * - * *
      * The message.
      * 
@@ -811,9 +746,7 @@ public Builder mergeMessage(com.google.pubsub.v1.PubsubMessage value) { if (messageBuilder_ == null) { if (message_ != null) { message_ = - com.google.pubsub.v1.PubsubMessage.newBuilder(message_) - .mergeFrom(value) - .buildPartial(); + com.google.pubsub.v1.PubsubMessage.newBuilder(message_).mergeFrom(value).buildPartial(); } else { message_ = value; } @@ -825,8 +758,6 @@ public Builder mergeMessage(com.google.pubsub.v1.PubsubMessage value) { return this; } /** - * - * *
      * The message.
      * 
@@ -845,8 +776,6 @@ public Builder clearMessage() { return this; } /** - * - * *
      * The message.
      * 
@@ -854,13 +783,11 @@ public Builder clearMessage() { * .google.pubsub.v1.PubsubMessage message = 2; */ public com.google.pubsub.v1.PubsubMessage.Builder getMessageBuilder() { - + onChanged(); return getMessageFieldBuilder().getBuilder(); } /** - * - * *
      * The message.
      * 
@@ -871,14 +798,11 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { if (messageBuilder_ != null) { return messageBuilder_.getMessageOrBuilder(); } else { - return message_ == null - ? com.google.pubsub.v1.PubsubMessage.getDefaultInstance() - : message_; + return message_ == null ? + com.google.pubsub.v1.PubsubMessage.getDefaultInstance() : message_; } } /** - * - * *
      * The message.
      * 
@@ -886,26 +810,21 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { * .google.pubsub.v1.PubsubMessage message = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PubsubMessage, - com.google.pubsub.v1.PubsubMessage.Builder, - com.google.pubsub.v1.PubsubMessageOrBuilder> + com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder> getMessageFieldBuilder() { if (messageBuilder_ == null) { - messageBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PubsubMessage, - com.google.pubsub.v1.PubsubMessage.Builder, - com.google.pubsub.v1.PubsubMessageOrBuilder>( - getMessage(), getParentForChildren(), isClean()); + messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder>( + getMessage(), + getParentForChildren(), + isClean()); message_ = null; } return messageBuilder_; } - private int deliveryAttempt_; + private int deliveryAttempt_ ; /** - * - * *
      * The approximate number of times that Cloud Pub/Sub has attempted to deliver
      * the associated message to a subscriber.
@@ -922,7 +841,6 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() {
      * 
* * int32 delivery_attempt = 3; - * * @return The deliveryAttempt. */ @java.lang.Override @@ -930,8 +848,6 @@ public int getDeliveryAttempt() { return deliveryAttempt_; } /** - * - * *
      * The approximate number of times that Cloud Pub/Sub has attempted to deliver
      * the associated message to a subscriber.
@@ -948,19 +864,16 @@ public int getDeliveryAttempt() {
      * 
* * int32 delivery_attempt = 3; - * * @param value The deliveryAttempt to set. * @return This builder for chaining. */ public Builder setDeliveryAttempt(int value) { - + deliveryAttempt_ = value; onChanged(); return this; } /** - * - * *
      * The approximate number of times that Cloud Pub/Sub has attempted to deliver
      * the associated message to a subscriber.
@@ -977,18 +890,17 @@ public Builder setDeliveryAttempt(int value) {
      * 
* * int32 delivery_attempt = 3; - * * @return This builder for chaining. */ public Builder clearDeliveryAttempt() { - + deliveryAttempt_ = 0; 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); } @@ -998,12 +910,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ReceivedMessage) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ReceivedMessage) private static final com.google.pubsub.v1.ReceivedMessage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ReceivedMessage(); } @@ -1012,16 +924,16 @@ public static com.google.pubsub.v1.ReceivedMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReceivedMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReceivedMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReceivedMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReceivedMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1036,4 +948,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ReceivedMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java similarity index 73% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index 805690b39..8c5237cf3 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -1,80 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; -public interface ReceivedMessageOrBuilder - extends +public interface ReceivedMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ReceivedMessage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * This ID can be used to acknowledge the received message.
    * 
* * string ack_id = 1; - * * @return The ackId. */ java.lang.String getAckId(); /** - * - * *
    * This ID can be used to acknowledge the received message.
    * 
* * string ack_id = 1; - * * @return The bytes for ackId. */ - com.google.protobuf.ByteString getAckIdBytes(); + com.google.protobuf.ByteString + getAckIdBytes(); /** - * - * *
    * The message.
    * 
* * .google.pubsub.v1.PubsubMessage message = 2; - * * @return Whether the message field is set. */ boolean hasMessage(); /** - * - * *
    * The message.
    * 
* * .google.pubsub.v1.PubsubMessage message = 2; - * * @return The message. */ com.google.pubsub.v1.PubsubMessage getMessage(); /** - * - * *
    * The message.
    * 
@@ -84,8 +55,6 @@ public interface ReceivedMessageOrBuilder com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder(); /** - * - * *
    * The approximate number of times that Cloud Pub/Sub has attempted to deliver
    * the associated message to a subscriber.
@@ -102,7 +71,6 @@ public interface ReceivedMessageOrBuilder
    * 
* * int32 delivery_attempt = 3; - * * @return The deliveryAttempt. */ int getDeliveryAttempt(); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java similarity index 73% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index 4b6a1934e..ca4008d77 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * A policy that specifies how Cloud Pub/Sub retries message delivery.
  * Retry delay will be exponential based on provided minimum and maximum
@@ -34,29 +17,30 @@
  *
  * Protobuf type {@code google.pubsub.v1.RetryPolicy}
  */
-public final class RetryPolicy extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RetryPolicy extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.pubsub.v1.RetryPolicy)
     RetryPolicyOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RetryPolicy.newBuilder() to construct.
   private RetryPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private RetryPolicy() {}
+  private RetryPolicy() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RetryPolicy();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private RetryPolicy(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,64 +59,60 @@ private RetryPolicy(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (minimumBackoff_ != null) {
-                subBuilder = minimumBackoff_.toBuilder();
-              }
-              minimumBackoff_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(minimumBackoff_);
-                minimumBackoff_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (minimumBackoff_ != null) {
+              subBuilder = minimumBackoff_.toBuilder();
+            }
+            minimumBackoff_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(minimumBackoff_);
+              minimumBackoff_ = subBuilder.buildPartial();
             }
-          case 18:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (maximumBackoff_ != null) {
-                subBuilder = maximumBackoff_.toBuilder();
-              }
-              maximumBackoff_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(maximumBackoff_);
-                maximumBackoff_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 18: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (maximumBackoff_ != null) {
+              subBuilder = maximumBackoff_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            maximumBackoff_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(maximumBackoff_);
+              maximumBackoff_ = subBuilder.buildPartial();
             }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
     return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_RetryPolicy_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.pubsub.v1.PubsubProto
-        .internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable
+    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.pubsub.v1.RetryPolicy.class, com.google.pubsub.v1.RetryPolicy.Builder.class);
   }
@@ -140,15 +120,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
   public static final int MINIMUM_BACKOFF_FIELD_NUMBER = 1;
   private com.google.protobuf.Duration minimumBackoff_;
   /**
-   *
-   *
    * 
    * The minimum delay between consecutive deliveries of a given message.
    * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    * 
* * .google.protobuf.Duration minimum_backoff = 1; - * * @return Whether the minimumBackoff field is set. */ @java.lang.Override @@ -156,26 +133,19 @@ public boolean hasMinimumBackoff() { return minimumBackoff_ != null; } /** - * - * *
    * The minimum delay between consecutive deliveries of a given message.
    * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    * 
* * .google.protobuf.Duration minimum_backoff = 1; - * * @return The minimumBackoff. */ @java.lang.Override public com.google.protobuf.Duration getMinimumBackoff() { - return minimumBackoff_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minimumBackoff_; + return minimumBackoff_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minimumBackoff_; } /** - * - * *
    * The minimum delay between consecutive deliveries of a given message.
    * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
@@ -191,15 +161,12 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() {
   public static final int MAXIMUM_BACKOFF_FIELD_NUMBER = 2;
   private com.google.protobuf.Duration maximumBackoff_;
   /**
-   *
-   *
    * 
    * The maximum delay between consecutive deliveries of a given message.
    * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    * 
* * .google.protobuf.Duration maximum_backoff = 2; - * * @return Whether the maximumBackoff field is set. */ @java.lang.Override @@ -207,26 +174,19 @@ public boolean hasMaximumBackoff() { return maximumBackoff_ != null; } /** - * - * *
    * The maximum delay between consecutive deliveries of a given message.
    * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    * 
* * .google.protobuf.Duration maximum_backoff = 2; - * * @return The maximumBackoff. */ @java.lang.Override public com.google.protobuf.Duration getMaximumBackoff() { - return maximumBackoff_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maximumBackoff_; + return maximumBackoff_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maximumBackoff_; } /** - * - * *
    * The maximum delay between consecutive deliveries of a given message.
    * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
@@ -240,7 +200,6 @@ public com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -252,7 +211,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 (minimumBackoff_ != null) {
       output.writeMessage(1, getMinimumBackoff());
     }
@@ -269,10 +229,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (minimumBackoff_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinimumBackoff());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getMinimumBackoff());
     }
     if (maximumBackoff_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaximumBackoff());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getMaximumBackoff());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -282,7 +244,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.pubsub.v1.RetryPolicy)) {
       return super.equals(obj);
@@ -291,11 +253,13 @@ public boolean equals(final java.lang.Object obj) {
 
     if (hasMinimumBackoff() != other.hasMinimumBackoff()) return false;
     if (hasMinimumBackoff()) {
-      if (!getMinimumBackoff().equals(other.getMinimumBackoff())) return false;
+      if (!getMinimumBackoff()
+          .equals(other.getMinimumBackoff())) return false;
     }
     if (hasMaximumBackoff() != other.hasMaximumBackoff()) return false;
     if (hasMaximumBackoff()) {
-      if (!getMaximumBackoff().equals(other.getMaximumBackoff())) return false;
+      if (!getMaximumBackoff()
+          .equals(other.getMaximumBackoff())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -321,103 +285,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.pubsub.v1.RetryPolicy parseFrom(java.nio.ByteBuffer data)
+  public static com.google.pubsub.v1.RetryPolicy parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.RetryPolicy parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.pubsub.v1.RetryPolicy parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.pubsub.v1.RetryPolicy parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.RetryPolicy parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.RetryPolicy parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.RetryPolicy parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.RetryPolicy 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.pubsub.v1.RetryPolicy parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.RetryPolicy parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.pubsub.v1.RetryPolicy parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.RetryPolicy parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.pubsub.v1.RetryPolicy parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.pubsub.v1.RetryPolicy prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 policy that specifies how Cloud Pub/Sub retries message delivery.
    * Retry delay will be exponential based on provided minimum and maximum
@@ -431,23 +389,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.pubsub.v1.RetryPolicy}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.pubsub.v1.RetryPolicy)
       com.google.pubsub.v1.RetryPolicyOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.pubsub.v1.PubsubProto
-          .internal_static_google_pubsub_v1_RetryPolicy_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_RetryPolicy_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.pubsub.v1.PubsubProto
-          .internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable
+      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.pubsub.v1.RetryPolicy.class,
-              com.google.pubsub.v1.RetryPolicy.Builder.class);
+              com.google.pubsub.v1.RetryPolicy.class, com.google.pubsub.v1.RetryPolicy.Builder.class);
     }
 
     // Construct using com.google.pubsub.v1.RetryPolicy.newBuilder()
@@ -455,15 +411,16 @@ 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) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -483,9 +440,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.pubsub.v1.PubsubProto
-          .internal_static_google_pubsub_v1_RetryPolicy_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_RetryPolicy_descriptor;
     }
 
     @java.lang.Override
@@ -523,39 +480,38 @@ public com.google.pubsub.v1.RetryPolicy 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.pubsub.v1.RetryPolicy) {
-        return mergeFrom((com.google.pubsub.v1.RetryPolicy) other);
+        return mergeFrom((com.google.pubsub.v1.RetryPolicy)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -601,49 +557,36 @@ public Builder mergeFrom(
 
     private com.google.protobuf.Duration minimumBackoff_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        minimumBackoffBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> minimumBackoffBuilder_;
     /**
-     *
-     *
      * 
      * The minimum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
      * 
* * .google.protobuf.Duration minimum_backoff = 1; - * * @return Whether the minimumBackoff field is set. */ public boolean hasMinimumBackoff() { return minimumBackoffBuilder_ != null || minimumBackoff_ != null; } /** - * - * *
      * The minimum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
      * 
* * .google.protobuf.Duration minimum_backoff = 1; - * * @return The minimumBackoff. */ public com.google.protobuf.Duration getMinimumBackoff() { if (minimumBackoffBuilder_ == null) { - return minimumBackoff_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minimumBackoff_; + return minimumBackoff_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minimumBackoff_; } else { return minimumBackoffBuilder_.getMessage(); } } /** - * - * *
      * The minimum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
@@ -665,8 +608,6 @@ public Builder setMinimumBackoff(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The minimum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
@@ -674,7 +615,8 @@ public Builder setMinimumBackoff(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration minimum_backoff = 1;
      */
-    public Builder setMinimumBackoff(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setMinimumBackoff(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (minimumBackoffBuilder_ == null) {
         minimumBackoff_ = builderForValue.build();
         onChanged();
@@ -685,8 +627,6 @@ public Builder setMinimumBackoff(com.google.protobuf.Duration.Builder builderFor
       return this;
     }
     /**
-     *
-     *
      * 
      * The minimum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
@@ -698,9 +638,7 @@ public Builder mergeMinimumBackoff(com.google.protobuf.Duration value) {
       if (minimumBackoffBuilder_ == null) {
         if (minimumBackoff_ != null) {
           minimumBackoff_ =
-              com.google.protobuf.Duration.newBuilder(minimumBackoff_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(minimumBackoff_).mergeFrom(value).buildPartial();
         } else {
           minimumBackoff_ = value;
         }
@@ -712,8 +650,6 @@ public Builder mergeMinimumBackoff(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The minimum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
@@ -733,8 +669,6 @@ public Builder clearMinimumBackoff() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The minimum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
@@ -743,13 +677,11 @@ public Builder clearMinimumBackoff() {
      * .google.protobuf.Duration minimum_backoff = 1;
      */
     public com.google.protobuf.Duration.Builder getMinimumBackoffBuilder() {
-
+      
       onChanged();
       return getMinimumBackoffFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The minimum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
@@ -761,14 +693,11 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() {
       if (minimumBackoffBuilder_ != null) {
         return minimumBackoffBuilder_.getMessageOrBuilder();
       } else {
-        return minimumBackoff_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : minimumBackoff_;
+        return minimumBackoff_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : minimumBackoff_;
       }
     }
     /**
-     *
-     *
      * 
      * The minimum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
@@ -777,17 +706,14 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() {
      * .google.protobuf.Duration minimum_backoff = 1;
      */
     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> 
         getMinimumBackoffFieldBuilder() {
       if (minimumBackoffBuilder_ == null) {
-        minimumBackoffBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getMinimumBackoff(), getParentForChildren(), isClean());
+        minimumBackoffBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getMinimumBackoff(),
+                getParentForChildren(),
+                isClean());
         minimumBackoff_ = null;
       }
       return minimumBackoffBuilder_;
@@ -795,49 +721,36 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() {
 
     private com.google.protobuf.Duration maximumBackoff_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        maximumBackoffBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maximumBackoffBuilder_;
     /**
-     *
-     *
      * 
      * The maximum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
      * 
* * .google.protobuf.Duration maximum_backoff = 2; - * * @return Whether the maximumBackoff field is set. */ public boolean hasMaximumBackoff() { return maximumBackoffBuilder_ != null || maximumBackoff_ != null; } /** - * - * *
      * The maximum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
      * 
* * .google.protobuf.Duration maximum_backoff = 2; - * * @return The maximumBackoff. */ public com.google.protobuf.Duration getMaximumBackoff() { if (maximumBackoffBuilder_ == null) { - return maximumBackoff_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maximumBackoff_; + return maximumBackoff_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maximumBackoff_; } else { return maximumBackoffBuilder_.getMessage(); } } /** - * - * *
      * The maximum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
@@ -859,8 +772,6 @@ public Builder setMaximumBackoff(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
@@ -868,7 +779,8 @@ public Builder setMaximumBackoff(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration maximum_backoff = 2;
      */
-    public Builder setMaximumBackoff(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setMaximumBackoff(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (maximumBackoffBuilder_ == null) {
         maximumBackoff_ = builderForValue.build();
         onChanged();
@@ -879,8 +791,6 @@ public Builder setMaximumBackoff(com.google.protobuf.Duration.Builder builderFor
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
@@ -892,9 +802,7 @@ public Builder mergeMaximumBackoff(com.google.protobuf.Duration value) {
       if (maximumBackoffBuilder_ == null) {
         if (maximumBackoff_ != null) {
           maximumBackoff_ =
-              com.google.protobuf.Duration.newBuilder(maximumBackoff_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(maximumBackoff_).mergeFrom(value).buildPartial();
         } else {
           maximumBackoff_ = value;
         }
@@ -906,8 +814,6 @@ public Builder mergeMaximumBackoff(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
@@ -927,8 +833,6 @@ public Builder clearMaximumBackoff() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
@@ -937,13 +841,11 @@ public Builder clearMaximumBackoff() {
      * .google.protobuf.Duration maximum_backoff = 2;
      */
     public com.google.protobuf.Duration.Builder getMaximumBackoffBuilder() {
-
+      
       onChanged();
       return getMaximumBackoffFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The maximum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
@@ -955,14 +857,11 @@ public com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder() {
       if (maximumBackoffBuilder_ != null) {
         return maximumBackoffBuilder_.getMessageOrBuilder();
       } else {
-        return maximumBackoff_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : maximumBackoff_;
+        return maximumBackoff_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : maximumBackoff_;
       }
     }
     /**
-     *
-     *
      * 
      * The maximum delay between consecutive deliveries of a given message.
      * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
@@ -971,24 +870,21 @@ public com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder() {
      * .google.protobuf.Duration maximum_backoff = 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> 
         getMaximumBackoffFieldBuilder() {
       if (maximumBackoffBuilder_ == null) {
-        maximumBackoffBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getMaximumBackoff(), getParentForChildren(), isClean());
+        maximumBackoffBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getMaximumBackoff(),
+                getParentForChildren(),
+                isClean());
         maximumBackoff_ = null;
       }
       return maximumBackoffBuilder_;
     }
-
     @java.lang.Override
-    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 +894,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.pubsub.v1.RetryPolicy)
   }
 
   // @@protoc_insertion_point(class_scope:google.pubsub.v1.RetryPolicy)
   private static final com.google.pubsub.v1.RetryPolicy DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.pubsub.v1.RetryPolicy();
   }
@@ -1012,16 +908,16 @@ public static com.google.pubsub.v1.RetryPolicy getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public RetryPolicy parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new RetryPolicy(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public RetryPolicy parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new RetryPolicy(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1036,4 +932,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.pubsub.v1.RetryPolicy getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java
similarity index 75%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java
index e3ace44c0..423adbdf1 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java
@@ -1,57 +1,33 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/pubsub/v1/pubsub.proto
 
 package com.google.pubsub.v1;
 
-public interface RetryPolicyOrBuilder
-    extends
+public interface RetryPolicyOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.pubsub.v1.RetryPolicy)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The minimum delay between consecutive deliveries of a given message.
    * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    * 
* * .google.protobuf.Duration minimum_backoff = 1; - * * @return Whether the minimumBackoff field is set. */ boolean hasMinimumBackoff(); /** - * - * *
    * The minimum delay between consecutive deliveries of a given message.
    * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    * 
* * .google.protobuf.Duration minimum_backoff = 1; - * * @return The minimumBackoff. */ com.google.protobuf.Duration getMinimumBackoff(); /** - * - * *
    * The minimum delay between consecutive deliveries of a given message.
    * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
@@ -62,34 +38,26 @@ public interface RetryPolicyOrBuilder
   com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder();
 
   /**
-   *
-   *
    * 
    * The maximum delay between consecutive deliveries of a given message.
    * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    * 
* * .google.protobuf.Duration maximum_backoff = 2; - * * @return Whether the maximumBackoff field is set. */ boolean hasMaximumBackoff(); /** - * - * *
    * The maximum delay between consecutive deliveries of a given message.
    * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    * 
* * .google.protobuf.Duration maximum_backoff = 2; - * * @return The maximumBackoff. */ com.google.protobuf.Duration getMaximumBackoff(); /** - * - * *
    * The maximum delay between consecutive deliveries of a given message.
    * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java
similarity index 74%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java
index cd8adc77b..de1067d79 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/pubsub/v1/schema.proto
 
 package com.google.pubsub.v1;
 
 /**
- *
- *
  * 
  * A schema resource.
  * 
* * Protobuf type {@code google.pubsub.v1.Schema} */ -public final class Schema extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Schema extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.Schema) SchemaOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Schema.newBuilder() to construct. private Schema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Schema() { name_ = ""; type_ = 0; @@ -45,15 +27,16 @@ private Schema() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Schema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Schema( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,72 +55,66 @@ private Schema( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + type_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - definition_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + definition_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_Schema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_Schema_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_Schema_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.pubsub.v1.Schema.class, com.google.pubsub.v1.Schema.Builder.class); } /** - * - * *
    * Possible schema definition types.
    * 
* * Protobuf enum {@code google.pubsub.v1.Schema.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value. This value is unused.
      * 
@@ -146,8 +123,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * *
      * A Protocol Buffer schema definition.
      * 
@@ -156,8 +131,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ PROTOCOL_BUFFER(1), /** - * - * *
      * An Avro schema definition.
      * 
@@ -169,8 +142,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value. This value is unused.
      * 
@@ -179,8 +150,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * A Protocol Buffer schema definition.
      * 
@@ -189,8 +158,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROTOCOL_BUFFER_VALUE = 1; /** - * - * *
      * An Avro schema definition.
      * 
@@ -199,6 +166,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AVRO_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -223,49 +191,49 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return PROTOCOL_BUFFER; - case 2: - return AVRO; - default: - return null; + case 0: return TYPE_UNSPECIFIED; + case 1: return PROTOCOL_BUFFER; + case 2: return AVRO; + 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< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.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.pubsub.v1.Schema.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type 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; @@ -285,15 +253,12 @@ private Type(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the schema.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -302,30 +267,30 @@ 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. Name of the schema.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -336,33 +301,25 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** - * - * *
    * The type of the schema definition.
    * 
* * .google.pubsub.v1.Schema.Type type = 2; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
    * The type of the schema definition.
    * 
* * .google.pubsub.v1.Schema.Type type = 2; - * * @return The type. */ - @java.lang.Override - public com.google.pubsub.v1.Schema.Type getType() { + @java.lang.Override public com.google.pubsub.v1.Schema.Type getType() { @SuppressWarnings("deprecation") com.google.pubsub.v1.Schema.Type result = com.google.pubsub.v1.Schema.Type.valueOf(type_); return result == null ? com.google.pubsub.v1.Schema.Type.UNRECOGNIZED : result; @@ -371,8 +328,6 @@ public com.google.pubsub.v1.Schema.Type getType() { public static final int DEFINITION_FIELD_NUMBER = 3; private volatile java.lang.Object definition_; /** - * - * *
    * The definition of the schema. This should contain a string representing
    * the full definition of the schema that is a valid schema definition of
@@ -380,7 +335,6 @@ public com.google.pubsub.v1.Schema.Type getType() {
    * 
* * string definition = 3; - * * @return The definition. */ @java.lang.Override @@ -389,15 +343,14 @@ public java.lang.String getDefinition() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); definition_ = s; return s; } } /** - * - * *
    * The definition of the schema. This should contain a string representing
    * the full definition of the schema that is a valid schema definition of
@@ -405,15 +358,16 @@ public java.lang.String getDefinition() {
    * 
* * string definition = 3; - * * @return The bytes for definition. */ @java.lang.Override - public com.google.protobuf.ByteString getDefinitionBytes() { + public com.google.protobuf.ByteString + getDefinitionBytes() { java.lang.Object ref = definition_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); definition_ = b; return b; } else { @@ -422,7 +376,6 @@ public com.google.protobuf.ByteString getDefinitionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -434,14 +387,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + 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_); } if (type_ != com.google.pubsub.v1.Schema.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } - if (!getDefinitionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(definition_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, definition_); } unknownFields.writeTo(output); @@ -453,13 +407,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (type_ != com.google.pubsub.v1.Schema.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); } - if (!getDefinitionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(definition_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, definition_); } size += unknownFields.getSerializedSize(); @@ -470,16 +425,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.Schema)) { return super.equals(obj); } com.google.pubsub.v1.Schema other = (com.google.pubsub.v1.Schema) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (type_ != other.type_) return false; - if (!getDefinition().equals(other.getDefinition())) return false; + if (!getDefinition() + .equals(other.getDefinition())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -502,122 +459,116 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.Schema parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.Schema parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.Schema parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.pubsub.v1.Schema parseFrom(com.google.protobuf.ByteString data) + public static com.google.pubsub.v1.Schema parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.Schema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.Schema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.Schema parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.Schema 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.pubsub.v1.Schema parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.Schema parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.Schema parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.pubsub.v1.Schema parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.pubsub.v1.Schema parseFrom( + com.google.protobuf.CodedInputStream 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.pubsub.v1.Schema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.Schema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 schema resource.
    * 
* * Protobuf type {@code google.pubsub.v1.Schema} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.Schema) com.google.pubsub.v1.SchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_Schema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_Schema_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_Schema_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.pubsub.v1.Schema.class, com.google.pubsub.v1.Schema.Builder.class); } @@ -627,15 +578,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -649,7 +601,8 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_Schema_descriptor; } @@ -681,39 +634,38 @@ public com.google.pubsub.v1.Schema 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.pubsub.v1.Schema) { - return mergeFrom((com.google.pubsub.v1.Schema) other); + return mergeFrom((com.google.pubsub.v1.Schema)other); } else { super.mergeFrom(other); return this; @@ -764,21 +716,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the schema.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -787,22 +737,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the schema.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -810,64 +759,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the schema.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the schema.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the schema.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -875,47 +817,37 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int type_ = 0; /** - * - * *
      * The type of the schema definition.
      * 
* * .google.pubsub.v1.Schema.Type type = 2; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * The type of the schema definition.
      * 
* * .google.pubsub.v1.Schema.Type type = 2; - * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
      * The type of the schema definition.
      * 
* * .google.pubsub.v1.Schema.Type type = 2; - * * @return The type. */ @java.lang.Override @@ -925,14 +857,11 @@ public com.google.pubsub.v1.Schema.Type getType() { return result == null ? com.google.pubsub.v1.Schema.Type.UNRECOGNIZED : result; } /** - * - * *
      * The type of the schema definition.
      * 
* * .google.pubsub.v1.Schema.Type type = 2; - * * @param value The type to set. * @return This builder for chaining. */ @@ -940,24 +869,21 @@ public Builder setType(com.google.pubsub.v1.Schema.Type value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The type of the schema definition.
      * 
* * .google.pubsub.v1.Schema.Type type = 2; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -965,8 +891,6 @@ public Builder clearType() { private java.lang.Object definition_ = ""; /** - * - * *
      * The definition of the schema. This should contain a string representing
      * the full definition of the schema that is a valid schema definition of
@@ -974,13 +898,13 @@ public Builder clearType() {
      * 
* * string definition = 3; - * * @return The definition. */ public java.lang.String getDefinition() { java.lang.Object ref = definition_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); definition_ = s; return s; @@ -989,8 +913,6 @@ public java.lang.String getDefinition() { } } /** - * - * *
      * The definition of the schema. This should contain a string representing
      * the full definition of the schema that is a valid schema definition of
@@ -998,14 +920,15 @@ public java.lang.String getDefinition() {
      * 
* * string definition = 3; - * * @return The bytes for definition. */ - public com.google.protobuf.ByteString getDefinitionBytes() { + public com.google.protobuf.ByteString + getDefinitionBytes() { java.lang.Object ref = definition_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); definition_ = b; return b; } else { @@ -1013,8 +936,6 @@ public com.google.protobuf.ByteString getDefinitionBytes() { } } /** - * - * *
      * The definition of the schema. This should contain a string representing
      * the full definition of the schema that is a valid schema definition of
@@ -1022,22 +943,20 @@ public com.google.protobuf.ByteString getDefinitionBytes() {
      * 
* * string definition = 3; - * * @param value The definition to set. * @return This builder for chaining. */ - public Builder setDefinition(java.lang.String value) { + public Builder setDefinition( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + definition_ = value; onChanged(); return this; } /** - * - * *
      * The definition of the schema. This should contain a string representing
      * the full definition of the schema that is a valid schema definition of
@@ -1045,18 +964,15 @@ public Builder setDefinition(java.lang.String value) {
      * 
* * string definition = 3; - * * @return This builder for chaining. */ public Builder clearDefinition() { - + definition_ = getDefaultInstance().getDefinition(); onChanged(); return this; } /** - * - * *
      * The definition of the schema. This should contain a string representing
      * the full definition of the schema that is a valid schema definition of
@@ -1064,23 +980,23 @@ public Builder clearDefinition() {
      * 
* * string definition = 3; - * * @param value The bytes for definition to set. * @return This builder for chaining. */ - public Builder setDefinitionBytes(com.google.protobuf.ByteString value) { + public Builder setDefinitionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + definition_ = value; 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); } @@ -1090,12 +1006,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.Schema) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.Schema) private static final com.google.pubsub.v1.Schema DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.Schema(); } @@ -1104,16 +1020,16 @@ public static com.google.pubsub.v1.Schema getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Schema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Schema(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Schema(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1128,4 +1044,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.Schema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java similarity index 100% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java similarity index 68% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java index 30c88d8aa..c56277a99 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java @@ -1,83 +1,54 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto package com.google.pubsub.v1; -public interface SchemaOrBuilder - extends +public interface SchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.Schema) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the schema.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Name of the schema.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The type of the schema definition.
    * 
* * .google.pubsub.v1.Schema.Type type = 2; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
    * The type of the schema definition.
    * 
* * .google.pubsub.v1.Schema.Type type = 2; - * * @return The type. */ com.google.pubsub.v1.Schema.Type getType(); /** - * - * *
    * The definition of the schema. This should contain a string representing
    * the full definition of the schema that is a valid schema definition of
@@ -85,13 +56,10 @@ public interface SchemaOrBuilder
    * 
* * string definition = 3; - * * @return The definition. */ java.lang.String getDefinition(); /** - * - * *
    * The definition of the schema. This should contain a string representing
    * the full definition of the schema that is a valid schema definition of
@@ -99,8 +67,8 @@ public interface SchemaOrBuilder
    * 
* * string definition = 3; - * * @return The bytes for definition. */ - com.google.protobuf.ByteString getDefinitionBytes(); + com.google.protobuf.ByteString + getDefinitionBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java new file mode 100644 index 000000000..3577fd03d --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -0,0 +1,236 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +public final class SchemaProto { + private SchemaProto() {} + 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_pubsub_v1_Schema_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_Schema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_CreateSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_GetSchemaRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_GetSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListSchemasRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListSchemasRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListSchemasResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListSchemasResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_DeleteSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ValidateSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ValidateSchemaResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ValidateMessageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ValidateMessageResponse_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\035google/pubsub/v1/schema.proto\022\020google." + + "pubsub.v1\032\034google/api/annotations.proto\032" + + "\027google/api/client.proto\032\037google/api/fie" + + "ld_behavior.proto\032\031google/api/resource.p" + + "roto\032\033google/protobuf/empty.proto\"\341\001\n\006Sc" + + "hema\022\021\n\004name\030\001 \001(\tB\003\340A\002\022+\n\004type\030\002 \001(\0162\035." + + "google.pubsub.v1.Schema.Type\022\022\n\ndefiniti" + + "on\030\003 \001(\t\";\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\023" + + "\n\017PROTOCOL_BUFFER\020\001\022\010\n\004AVRO\020\002:F\352AC\n\034pubs" + + "ub.googleapis.com/Schema\022#projects/{proj" + + "ect}/schemas/{schema}\"\215\001\n\023CreateSchemaRe" + + "quest\0224\n\006parent\030\001 \001(\tB$\340A\002\372A\036\022\034pubsub.go" + + "ogleapis.com/Schema\022-\n\006schema\030\002 \001(\0132\030.go" + + "ogle.pubsub.v1.SchemaB\003\340A\002\022\021\n\tschema_id\030" + + "\003 \001(\t\"r\n\020GetSchemaRequest\0222\n\004name\030\001 \001(\tB" + + "$\340A\002\372A\036\n\034pubsub.googleapis.com/Schema\022*\n" + + "\004view\030\002 \001(\0162\034.google.pubsub.v1.SchemaVie" + + "w\"\254\001\n\022ListSchemasRequest\022C\n\006parent\030\001 \001(\t" + + "B3\340A\002\372A-\n+cloudresourcemanager.googleapi" + + "s.com/Project\022*\n\004view\030\002 \001(\0162\034.google.pub" + + "sub.v1.SchemaView\022\021\n\tpage_size\030\003 \001(\005\022\022\n\n" + + "page_token\030\004 \001(\t\"Y\n\023ListSchemasResponse\022" + + ")\n\007schemas\030\001 \003(\0132\030.google.pubsub.v1.Sche" + + "ma\022\027\n\017next_page_token\030\002 \001(\t\"I\n\023DeleteSch" + + "emaRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub" + + ".googleapis.com/Schema\"\213\001\n\025ValidateSchem" + + "aRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudr" + + "esourcemanager.googleapis.com/Project\022-\n" + + "\006schema\030\002 \001(\0132\030.google.pubsub.v1.SchemaB" + + "\003\340A\002\"\030\n\026ValidateSchemaResponse\"\212\002\n\026Valid" + + "ateMessageRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A" + + "-\n+cloudresourcemanager.googleapis.com/P" + + "roject\0221\n\004name\030\002 \001(\tB!\372A\036\n\034pubsub.google" + + "apis.com/SchemaH\000\022*\n\006schema\030\003 \001(\0132\030.goog" + + "le.pubsub.v1.SchemaH\000\022\017\n\007message\030\004 \001(\014\022," + + "\n\010encoding\030\005 \001(\0162\032.google.pubsub.v1.Enco" + + "dingB\r\n\013schema_spec\"\031\n\027ValidateMessageRe" + + "sponse*>\n\nSchemaView\022\033\n\027SCHEMA_VIEW_UNSP" + + "ECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002*:\n\010Encodi" + + "ng\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\010\n\004JSON\020\001\022\n" + + "\n\006BINARY\020\0022\367\007\n\rSchemaService\022\232\001\n\014CreateS" + + "chema\022%.google.pubsub.v1.CreateSchemaReq" + + "uest\032\030.google.pubsub.v1.Schema\"I\202\323\344\223\002)\"\037" + + "/v1/{parent=projects/*}/schemas:\006schema\332" + + "A\027parent,schema,schema_id\022y\n\tGetSchema\022\"" + + ".google.pubsub.v1.GetSchemaRequest\032\030.goo" + + "gle.pubsub.v1.Schema\".\202\323\344\223\002!\022\037/v1/{name=" + + "projects/*/schemas/*}\332A\004name\022\214\001\n\013ListSch" + + "emas\022$.google.pubsub.v1.ListSchemasReque" + + "st\032%.google.pubsub.v1.ListSchemasRespons" + + "e\"0\202\323\344\223\002!\022\037/v1/{parent=projects/*}/schem" + + "as\332A\006parent\022}\n\014DeleteSchema\022%.google.pub" + + "sub.v1.DeleteSchemaRequest\032\026.google.prot" + + "obuf.Empty\".\202\323\344\223\002!*\037/v1/{name=projects/*" + + "/schemas/*}\332A\004name\022\250\001\n\016ValidateSchema\022\'." + + "google.pubsub.v1.ValidateSchemaRequest\032(" + + ".google.pubsub.v1.ValidateSchemaResponse" + + "\"C\202\323\344\223\002-\"(/v1/{parent=projects/*}/schema" + + "s:validate:\001*\332A\rparent,schema\022\242\001\n\017Valida" + + "teMessage\022(.google.pubsub.v1.ValidateMes" + + "sageRequest\032).google.pubsub.v1.ValidateM" + + "essageResponse\":\202\323\344\223\0024\"//v1/{parent=proj" + + "ects/*}/schemas:validateMessage:\001*\032p\312A\025p" + + "ubsub.googleapis.com\322AUhttps://www.googl" + + "eapis.com/auth/cloud-platform,https://ww" + + "w.googleapis.com/auth/pubsubB\256\001\n\024com.goo" + + "gle.pubsub.v1B\013SchemaProtoP\001Z6google.gol" + + "ang.org/genproto/googleapis/pubsub/v1;pu" + + "bsub\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Googl" + + "e\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSu" + + "b::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.protobuf.EmptyProto.getDescriptor(), + }); + internal_static_google_pubsub_v1_Schema_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_pubsub_v1_Schema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_Schema_descriptor, + new java.lang.String[] { "Name", "Type", "Definition", }); + internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_pubsub_v1_CreateSchemaRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor, + new java.lang.String[] { "Parent", "Schema", "SchemaId", }); + internal_static_google_pubsub_v1_GetSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_pubsub_v1_GetSchemaRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_GetSchemaRequest_descriptor, + new java.lang.String[] { "Name", "View", }); + internal_static_google_pubsub_v1_ListSchemasRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_pubsub_v1_ListSchemasRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListSchemasRequest_descriptor, + new java.lang.String[] { "Parent", "View", "PageSize", "PageToken", }); + internal_static_google_pubsub_v1_ListSchemasResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_pubsub_v1_ListSchemasResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListSchemasResponse_descriptor, + new java.lang.String[] { "Schemas", "NextPageToken", }); + internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_pubsub_v1_DeleteSchemaRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_pubsub_v1_ValidateSchemaRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor, + new java.lang.String[] { "Parent", "Schema", }); + internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_pubsub_v1_ValidateSchemaResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor, + new java.lang.String[] { }); + internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_pubsub_v1_ValidateMessageRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor, + new java.lang.String[] { "Parent", "Name", "Schema", "Message", "Encoding", "SchemaSpec", }); + internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_pubsub_v1_ValidateMessageResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor, + new java.lang.String[] { }); + 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.resource); + 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.protobuf.EmptyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java similarity index 69% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java index bca71d432..ea9221970 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Settings for validating messages published against a schema.
  * 
* * Protobuf type {@code google.pubsub.v1.SchemaSettings} */ -public final class SchemaSettings extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SchemaSettings extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.SchemaSettings) SchemaSettingsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SchemaSettings.newBuilder() to construct. private SchemaSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SchemaSettings() { schema_ = ""; encoding_ = 0; @@ -44,15 +26,16 @@ private SchemaSettings() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SchemaSettings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SchemaSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,59 +54,53 @@ private SchemaSettings( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - schema_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + schema_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - encoding_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + encoding_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_SchemaSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SchemaSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_SchemaSettings_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SchemaSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.SchemaSettings.class, - com.google.pubsub.v1.SchemaSettings.Builder.class); + com.google.pubsub.v1.SchemaSettings.class, com.google.pubsub.v1.SchemaSettings.Builder.class); } public static final int SCHEMA_FIELD_NUMBER = 1; private volatile java.lang.Object schema_; /** - * - * *
    * Required. The name of the schema that messages published should be
    * validated against. Format is `projects/{project}/schemas/{schema}`. The
@@ -131,10 +108,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * deleted.
    * 
* - * - * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The schema. */ @java.lang.Override @@ -143,15 +117,14 @@ public java.lang.String getSchema() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; } } /** - * - * *
    * Required. The name of the schema that messages published should be
    * validated against. Format is `projects/{project}/schemas/{schema}`. The
@@ -159,18 +132,17 @@ public java.lang.String getSchema() {
    * deleted.
    * 
* - * - * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for schema. */ @java.lang.Override - public com.google.protobuf.ByteString getSchemaBytes() { + public com.google.protobuf.ByteString + getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schema_ = b; return b; } else { @@ -181,40 +153,31 @@ public com.google.protobuf.ByteString getSchemaBytes() { public static final int ENCODING_FIELD_NUMBER = 2; private int encoding_; /** - * - * *
    * The encoding of messages validated against `schema`.
    * 
* * .google.pubsub.v1.Encoding encoding = 2; - * * @return The enum numeric value on the wire for encoding. */ - @java.lang.Override - public int getEncodingValue() { + @java.lang.Override public int getEncodingValue() { return encoding_; } /** - * - * *
    * The encoding of messages validated against `schema`.
    * 
* * .google.pubsub.v1.Encoding encoding = 2; - * * @return The encoding. */ - @java.lang.Override - public com.google.pubsub.v1.Encoding getEncoding() { + @java.lang.Override public com.google.pubsub.v1.Encoding getEncoding() { @SuppressWarnings("deprecation") com.google.pubsub.v1.Encoding result = com.google.pubsub.v1.Encoding.valueOf(encoding_); return result == null ? com.google.pubsub.v1.Encoding.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,8 +189,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getSchemaBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_); } if (encoding_ != com.google.pubsub.v1.Encoding.ENCODING_UNSPECIFIED.getNumber()) { @@ -242,11 +206,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getSchemaBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schema_); } if (encoding_ != com.google.pubsub.v1.Encoding.ENCODING_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, encoding_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, encoding_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -256,14 +221,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.pubsub.v1.SchemaSettings)) { return super.equals(obj); } com.google.pubsub.v1.SchemaSettings other = (com.google.pubsub.v1.SchemaSettings) obj; - if (!getSchema().equals(other.getSchema())) return false; + if (!getSchema() + .equals(other.getSchema())) return false; if (encoding_ != other.encoding_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -285,126 +251,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.SchemaSettings parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.SchemaSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.SchemaSettings parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.pubsub.v1.SchemaSettings parseFrom(com.google.protobuf.ByteString data) + public static com.google.pubsub.v1.SchemaSettings parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.SchemaSettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.SchemaSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.SchemaSettings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.SchemaSettings 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.pubsub.v1.SchemaSettings parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.SchemaSettings parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.SchemaSettings parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.SchemaSettings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.SchemaSettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.SchemaSettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Settings for validating messages published against a schema.
    * 
* * Protobuf type {@code google.pubsub.v1.SchemaSettings} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.SchemaSettings) com.google.pubsub.v1.SchemaSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_SchemaSettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SchemaSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_SchemaSettings_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SchemaSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.SchemaSettings.class, - com.google.pubsub.v1.SchemaSettings.Builder.class); + com.google.pubsub.v1.SchemaSettings.class, com.google.pubsub.v1.SchemaSettings.Builder.class); } // Construct using com.google.pubsub.v1.SchemaSettings.newBuilder() @@ -412,15 +370,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -432,9 +391,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_SchemaSettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SchemaSettings_descriptor; } @java.lang.Override @@ -464,39 +423,38 @@ public com.google.pubsub.v1.SchemaSettings 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.pubsub.v1.SchemaSettings) { - return mergeFrom((com.google.pubsub.v1.SchemaSettings) other); + return mergeFrom((com.google.pubsub.v1.SchemaSettings)other); } else { super.mergeFrom(other); return this; @@ -543,8 +501,6 @@ public Builder mergeFrom( private java.lang.Object schema_ = ""; /** - * - * *
      * Required. The name of the schema that messages published should be
      * validated against. Format is `projects/{project}/schemas/{schema}`. The
@@ -552,16 +508,14 @@ public Builder mergeFrom(
      * deleted.
      * 
* - * - * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The schema. */ public java.lang.String getSchema() { java.lang.Object ref = schema_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; @@ -570,8 +524,6 @@ public java.lang.String getSchema() { } } /** - * - * *
      * Required. The name of the schema that messages published should be
      * validated against. Format is `projects/{project}/schemas/{schema}`. The
@@ -579,17 +531,16 @@ public java.lang.String getSchema() {
      * deleted.
      * 
* - * - * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for schema. */ - public com.google.protobuf.ByteString getSchemaBytes() { + public com.google.protobuf.ByteString + getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schema_ = b; return b; } else { @@ -597,8 +548,6 @@ public com.google.protobuf.ByteString getSchemaBytes() { } } /** - * - * *
      * Required. The name of the schema that messages published should be
      * validated against. Format is `projects/{project}/schemas/{schema}`. The
@@ -606,25 +555,21 @@ public com.google.protobuf.ByteString getSchemaBytes() {
      * deleted.
      * 
* - * - * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The schema to set. * @return This builder for chaining. */ - public Builder setSchema(java.lang.String value) { + public Builder setSchema( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + schema_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the schema that messages published should be
      * validated against. Format is `projects/{project}/schemas/{schema}`. The
@@ -632,21 +577,16 @@ public Builder setSchema(java.lang.String value) {
      * deleted.
      * 
* - * - * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearSchema() { - + schema_ = getDefaultInstance().getSchema(); onChanged(); return this; } /** - * - * *
      * Required. The name of the schema that messages published should be
      * validated against. Format is `projects/{project}/schemas/{schema}`. The
@@ -654,19 +594,17 @@ public Builder clearSchema() {
      * deleted.
      * 
* - * - * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for schema to set. * @return This builder for chaining. */ - public Builder setSchemaBytes(com.google.protobuf.ByteString value) { + public Builder setSchemaBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schema_ = value; onChanged(); return this; @@ -674,47 +612,37 @@ public Builder setSchemaBytes(com.google.protobuf.ByteString value) { private int encoding_ = 0; /** - * - * *
      * The encoding of messages validated against `schema`.
      * 
* * .google.pubsub.v1.Encoding encoding = 2; - * * @return The enum numeric value on the wire for encoding. */ - @java.lang.Override - public int getEncodingValue() { + @java.lang.Override public int getEncodingValue() { return encoding_; } /** - * - * *
      * The encoding of messages validated against `schema`.
      * 
* * .google.pubsub.v1.Encoding encoding = 2; - * * @param value The enum numeric value on the wire for encoding to set. * @return This builder for chaining. */ public Builder setEncodingValue(int value) { - + encoding_ = value; onChanged(); return this; } /** - * - * *
      * The encoding of messages validated against `schema`.
      * 
* * .google.pubsub.v1.Encoding encoding = 2; - * * @return The encoding. */ @java.lang.Override @@ -724,14 +652,11 @@ public com.google.pubsub.v1.Encoding getEncoding() { return result == null ? com.google.pubsub.v1.Encoding.UNRECOGNIZED : result; } /** - * - * *
      * The encoding of messages validated against `schema`.
      * 
* * .google.pubsub.v1.Encoding encoding = 2; - * * @param value The encoding to set. * @return This builder for chaining. */ @@ -739,31 +664,28 @@ public Builder setEncoding(com.google.pubsub.v1.Encoding value) { if (value == null) { throw new NullPointerException(); } - + encoding_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The encoding of messages validated against `schema`.
      * 
* * .google.pubsub.v1.Encoding encoding = 2; - * * @return This builder for chaining. */ public Builder clearEncoding() { - + encoding_ = 0; 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); } @@ -773,12 +695,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.SchemaSettings) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.SchemaSettings) private static final com.google.pubsub.v1.SchemaSettings DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.SchemaSettings(); } @@ -787,16 +709,16 @@ public static com.google.pubsub.v1.SchemaSettings getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SchemaSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SchemaSettings(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SchemaSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SchemaSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -811,4 +733,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.SchemaSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java similarity index 57% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java index f44178d47..216a1a783 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; -public interface SchemaSettingsOrBuilder - extends +public interface SchemaSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.SchemaSettings) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the schema that messages published should be
    * validated against. Format is `projects/{project}/schemas/{schema}`. The
@@ -33,16 +15,11 @@ public interface SchemaSettingsOrBuilder
    * deleted.
    * 
* - * - * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The schema. */ java.lang.String getSchema(); /** - * - * *
    * Required. The name of the schema that messages published should be
    * validated against. Format is `projects/{project}/schemas/{schema}`. The
@@ -50,35 +27,27 @@ public interface SchemaSettingsOrBuilder
    * deleted.
    * 
* - * - * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for schema. */ - com.google.protobuf.ByteString getSchemaBytes(); + com.google.protobuf.ByteString + getSchemaBytes(); /** - * - * *
    * The encoding of messages validated against `schema`.
    * 
* * .google.pubsub.v1.Encoding encoding = 2; - * * @return The enum numeric value on the wire for encoding. */ int getEncodingValue(); /** - * - * *
    * The encoding of messages validated against `schema`.
    * 
* * .google.pubsub.v1.Encoding encoding = 2; - * * @return The encoding. */ com.google.pubsub.v1.Encoding getEncoding(); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java similarity index 67% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java index 2d9433fd1..67441a0c8 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto package com.google.pubsub.v1; /** - * - * *
  * View of Schema object fields to be returned by GetSchema and ListSchemas.
  * 
* * Protobuf enum {@code google.pubsub.v1.SchemaView} */ -public enum SchemaView implements com.google.protobuf.ProtocolMessageEnum { +public enum SchemaView + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * The default / unset value.
    * The API will default to the BASIC view.
@@ -40,8 +22,6 @@ public enum SchemaView implements com.google.protobuf.ProtocolMessageEnum {
    */
   SCHEMA_VIEW_UNSPECIFIED(0),
   /**
-   *
-   *
    * 
    * Include the name and type of the schema, but not the definition.
    * 
@@ -50,8 +30,6 @@ public enum SchemaView implements com.google.protobuf.ProtocolMessageEnum { */ BASIC(1), /** - * - * *
    * Include all Schema object fields.
    * 
@@ -63,8 +41,6 @@ public enum SchemaView implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * The default / unset value.
    * The API will default to the BASIC view.
@@ -74,8 +50,6 @@ public enum SchemaView implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int SCHEMA_VIEW_UNSPECIFIED_VALUE = 0;
   /**
-   *
-   *
    * 
    * Include the name and type of the schema, but not the definition.
    * 
@@ -84,8 +58,6 @@ public enum SchemaView implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BASIC_VALUE = 1; /** - * - * *
    * Include all Schema object fields.
    * 
@@ -94,6 +66,7 @@ public enum SchemaView implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FULL_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -118,49 +91,49 @@ public static SchemaView valueOf(int value) { */ public static SchemaView forNumber(int value) { switch (value) { - case 0: - return SCHEMA_VIEW_UNSPECIFIED; - case 1: - return BASIC; - case 2: - return FULL; - default: - return null; + case 0: return SCHEMA_VIEW_UNSPECIFIED; + case 1: return BASIC; + case 2: return FULL; + 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 internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SchemaView findValueByNumber(int number) { - return SchemaView.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + SchemaView> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SchemaView findValueByNumber(int number) { + return SchemaView.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.pubsub.v1.SchemaProto.getDescriptor().getEnumTypes().get(0); } private static final SchemaView[] VALUES = values(); - public static SchemaView valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SchemaView 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; @@ -176,3 +149,4 @@ private SchemaView(int value) { // @@protoc_insertion_point(enum_scope:google.pubsub.v1.SchemaView) } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java similarity index 75% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index f9d6cc75d..3941064f9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Request for the `Seek` method.
  * 
* * Protobuf type {@code google.pubsub.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.pubsub.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() { subscription_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SeekRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SeekRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,79 +53,73 @@ private SeekRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (targetCase_ == 2) { - subBuilder = ((com.google.protobuf.Timestamp) target_).toBuilder(); - } - target_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Timestamp) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 2; - break; + subscription_ = s; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (targetCase_ == 2) { + subBuilder = ((com.google.protobuf.Timestamp) target_).toBuilder(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - targetCase_ = 3; - target_ = s; - break; + target_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Timestamp) target_); + target_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + targetCase_ = 2; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + targetCase_ = 3; + target_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.pubsub.v1.SeekRequest.class, com.google.pubsub.v1.SeekRequest.Builder.class); } private int targetCase_ = 0; private java.lang.Object target_; - public enum TargetCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TIME(2), SNAPSHOT(3), TARGET_NOT_SET(0); private final int value; - private TargetCase(int value) { this.value = value; } @@ -158,39 +135,31 @@ public static TargetCase valueOf(int value) { public static TargetCase forNumber(int value) { switch (value) { - case 2: - return TIME; - case 3: - return SNAPSHOT; - case 0: - return TARGET_NOT_SET; - default: - return null; + case 2: return TIME; + case 3: return SNAPSHOT; + 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 SUBSCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object subscription_; /** - * - * *
    * Required. The subscription to affect.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The subscription. */ @java.lang.Override @@ -199,31 +168,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; } } /** - * - * *
    * Required. The subscription to affect.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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 { @@ -233,8 +200,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public static final int TIME_FIELD_NUMBER = 2; /** - * - * *
    * The time to seek to.
    * Messages retained in the subscription that were published before this
@@ -250,7 +215,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() {
    * 
* * .google.protobuf.Timestamp time = 2; - * * @return Whether the time field is set. */ @java.lang.Override @@ -258,8 +222,6 @@ public boolean hasTime() { return targetCase_ == 2; } /** - * - * *
    * The time to seek to.
    * Messages retained in the subscription that were published before this
@@ -275,19 +237,16 @@ public boolean hasTime() {
    * 
* * .google.protobuf.Timestamp time = 2; - * * @return The time. */ @java.lang.Override public com.google.protobuf.Timestamp getTime() { if (targetCase_ == 2) { - return (com.google.protobuf.Timestamp) target_; + return (com.google.protobuf.Timestamp) target_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** - * - * *
    * The time to seek to.
    * Messages retained in the subscription that were published before this
@@ -307,15 +266,13 @@ public com.google.protobuf.Timestamp getTime() {
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
     if (targetCase_ == 2) {
-      return (com.google.protobuf.Timestamp) target_;
+       return (com.google.protobuf.Timestamp) target_;
     }
     return com.google.protobuf.Timestamp.getDefaultInstance();
   }
 
   public static final int SNAPSHOT_FIELD_NUMBER = 3;
   /**
-   *
-   *
    * 
    * The snapshot to seek to. The snapshot's topic must be the same as that of
    * the provided subscription.
@@ -323,15 +280,12 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
    * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return Whether the snapshot field is set. */ public boolean hasSnapshot() { return targetCase_ == 3; } /** - * - * *
    * The snapshot to seek to. The snapshot's topic must be the same as that of
    * the provided subscription.
@@ -339,7 +293,6 @@ public boolean hasSnapshot() {
    * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return The snapshot. */ public java.lang.String getSnapshot() { @@ -350,7 +303,8 @@ public java.lang.String getSnapshot() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (targetCase_ == 3) { target_ = s; @@ -359,8 +313,6 @@ public java.lang.String getSnapshot() { } } /** - * - * *
    * The snapshot to seek to. The snapshot's topic must be the same as that of
    * the provided subscription.
@@ -368,17 +320,18 @@ public java.lang.String getSnapshot() {
    * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for snapshot. */ - public com.google.protobuf.ByteString getSnapshotBytes() { + public com.google.protobuf.ByteString + getSnapshotBytes() { java.lang.Object ref = ""; if (targetCase_ == 3) { 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); if (targetCase_ == 3) { target_ = b; } @@ -389,7 +342,6 @@ public com.google.protobuf.ByteString getSnapshotBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -401,8 +353,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getSubscriptionBytes().isEmpty()) { + 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_); } if (targetCase_ == 2) { @@ -420,13 +373,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getSubscriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } if (targetCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.protobuf.Timestamp) target_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.protobuf.Timestamp) target_); } if (targetCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -439,21 +391,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.pubsub.v1.SeekRequest)) { return super.equals(obj); } com.google.pubsub.v1.SeekRequest other = (com.google.pubsub.v1.SeekRequest) obj; - if (!getSubscription().equals(other.getSubscription())) return false; + if (!getSubscription() + .equals(other.getSubscription())) return false; if (!getTargetCase().equals(other.getTargetCase())) return false; switch (targetCase_) { case 2: - if (!getTime().equals(other.getTime())) return false; + if (!getTime() + .equals(other.getTime())) return false; break; case 3: - if (!getSnapshot().equals(other.getSnapshot())) return false; + if (!getSnapshot() + .equals(other.getSnapshot())) return false; break; case 0: default: @@ -488,126 +443,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.SeekRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.SeekRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.SeekRequest parseFrom(com.google.protobuf.ByteString data) + public static com.google.pubsub.v1.SeekRequest parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.SeekRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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.pubsub.v1.SeekRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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 for the `Seek` method.
    * 
* * Protobuf type {@code google.pubsub.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.pubsub.v1.SeekRequest) com.google.pubsub.v1.SeekRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_SeekRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.SeekRequest.class, - com.google.pubsub.v1.SeekRequest.Builder.class); + com.google.pubsub.v1.SeekRequest.class, com.google.pubsub.v1.SeekRequest.Builder.class); } // Construct using com.google.pubsub.v1.SeekRequest.newBuilder() @@ -615,15 +562,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -635,9 +583,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_SeekRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_descriptor; } @java.lang.Override @@ -677,39 +625,38 @@ public com.google.pubsub.v1.SeekRequest 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.pubsub.v1.SeekRequest) { - return mergeFrom((com.google.pubsub.v1.SeekRequest) other); + return mergeFrom((com.google.pubsub.v1.SeekRequest)other); } else { super.mergeFrom(other); return this; @@ -723,22 +670,19 @@ public Builder mergeFrom(com.google.pubsub.v1.SeekRequest other) { onChanged(); } switch (other.getTargetCase()) { - case TIME: - { - mergeTime(other.getTime()); - break; - } - case SNAPSHOT: - { - targetCase_ = 3; - target_ = other.target_; - onChanged(); - break; - } - case TARGET_NOT_SET: - { - break; - } + case TIME: { + mergeTime(other.getTime()); + break; + } + case SNAPSHOT: { + targetCase_ = 3; + target_ = other.target_; + onChanged(); + break; + } + case TARGET_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -768,12 +712,12 @@ public Builder mergeFrom( } 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() { @@ -783,24 +727,21 @@ public Builder clearTarget() { return this; } + private java.lang.Object subscription_ = ""; /** - * - * *
      * Required. The subscription to affect.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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; @@ -809,23 +750,20 @@ public java.lang.String getSubscription() { } } /** - * - * *
      * Required. The subscription to affect.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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 { @@ -833,80 +771,62 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * Required. The subscription to affect.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription(java.lang.String value) { + public Builder setSubscription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; onChanged(); return this; } /** - * - * *
      * Required. The subscription to affect.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearSubscription() { - + subscription_ = getDefaultInstance().getSubscription(); onChanged(); return this; } /** - * - * *
      * Required. The subscription to affect.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - timeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timeBuilder_; /** - * - * *
      * The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -922,7 +842,6 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Timestamp time = 2; - * * @return Whether the time field is set. */ @java.lang.Override @@ -930,8 +849,6 @@ public boolean hasTime() { return targetCase_ == 2; } /** - * - * *
      * The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -947,7 +864,6 @@ public boolean hasTime() {
      * 
* * .google.protobuf.Timestamp time = 2; - * * @return The time. */ @java.lang.Override @@ -965,8 +881,6 @@ public com.google.protobuf.Timestamp getTime() { } } /** - * - * *
      * The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -997,8 +911,6 @@ public Builder setTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -1015,7 +927,8 @@ public Builder setTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp time = 2;
      */
-    public Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (timeBuilder_ == null) {
         target_ = builderForValue.build();
         onChanged();
@@ -1026,8 +939,6 @@ public Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -1046,11 +957,10 @@ public Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      */
     public Builder mergeTime(com.google.protobuf.Timestamp value) {
       if (timeBuilder_ == null) {
-        if (targetCase_ == 2 && target_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
-          target_ =
-              com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) target_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (targetCase_ == 2 &&
+            target_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          target_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) target_)
+              .mergeFrom(value).buildPartial();
         } else {
           target_ = value;
         }
@@ -1065,8 +975,6 @@ public Builder mergeTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -1100,8 +1008,6 @@ public Builder clearTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -1122,8 +1028,6 @@ public com.google.protobuf.Timestamp.Builder getTimeBuilder() {
       return getTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -1152,8 +1056,6 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * The time to seek to.
      * Messages retained in the subscription that were published before this
@@ -1171,31 +1073,25 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
      * .google.protobuf.Timestamp 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> 
         getTimeFieldBuilder() {
       if (timeBuilder_ == null) {
         if (!(targetCase_ == 2)) {
           target_ = com.google.protobuf.Timestamp.getDefaultInstance();
         }
-        timeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                (com.google.protobuf.Timestamp) target_, getParentForChildren(), isClean());
+        timeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                (com.google.protobuf.Timestamp) target_,
+                getParentForChildren(),
+                isClean());
         target_ = null;
       }
       targetCase_ = 2;
-      onChanged();
-      ;
+      onChanged();;
       return timeBuilder_;
     }
 
     /**
-     *
-     *
      * 
      * The snapshot to seek to. The snapshot's topic must be the same as that of
      * the provided subscription.
@@ -1203,7 +1099,6 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
      * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return Whether the snapshot field is set. */ @java.lang.Override @@ -1211,8 +1106,6 @@ public boolean hasSnapshot() { return targetCase_ == 3; } /** - * - * *
      * The snapshot to seek to. The snapshot's topic must be the same as that of
      * the provided subscription.
@@ -1220,7 +1113,6 @@ public boolean hasSnapshot() {
      * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return The snapshot. */ @java.lang.Override @@ -1230,7 +1122,8 @@ public java.lang.String getSnapshot() { 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(); if (targetCase_ == 3) { target_ = s; @@ -1241,8 +1134,6 @@ public java.lang.String getSnapshot() { } } /** - * - * *
      * The snapshot to seek to. The snapshot's topic must be the same as that of
      * the provided subscription.
@@ -1250,18 +1141,19 @@ public java.lang.String getSnapshot() {
      * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for snapshot. */ @java.lang.Override - public com.google.protobuf.ByteString getSnapshotBytes() { + public com.google.protobuf.ByteString + getSnapshotBytes() { java.lang.Object ref = ""; if (targetCase_ == 3) { 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); if (targetCase_ == 3) { target_ = b; } @@ -1271,8 +1163,6 @@ public com.google.protobuf.ByteString getSnapshotBytes() { } } /** - * - * *
      * The snapshot to seek to. The snapshot's topic must be the same as that of
      * the provided subscription.
@@ -1280,22 +1170,20 @@ public com.google.protobuf.ByteString getSnapshotBytes() {
      * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @param value The snapshot to set. * @return This builder for chaining. */ - public Builder setSnapshot(java.lang.String value) { + public Builder setSnapshot( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - targetCase_ = 3; + throw new NullPointerException(); + } + targetCase_ = 3; target_ = value; onChanged(); return this; } /** - * - * *
      * The snapshot to seek to. The snapshot's topic must be the same as that of
      * the provided subscription.
@@ -1303,7 +1191,6 @@ public Builder setSnapshot(java.lang.String value) {
      * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearSnapshot() { @@ -1315,8 +1202,6 @@ public Builder clearSnapshot() { return this; } /** - * - * *
      * The snapshot to seek to. The snapshot's topic must be the same as that of
      * the provided subscription.
@@ -1324,23 +1209,23 @@ public Builder clearSnapshot() {
      * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for snapshot to set. * @return This builder for chaining. */ - public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { + public Builder setSnapshotBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); targetCase_ = 3; target_ = value; 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); } @@ -1350,12 +1235,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.SeekRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.SeekRequest) private static final com.google.pubsub.v1.SeekRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.SeekRequest(); } @@ -1364,16 +1249,16 @@ public static com.google.pubsub.v1.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 { - return new SeekRequest(input, extensionRegistry); - } - }; + 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 { + return new SeekRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1388,4 +1273,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.SeekRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java similarity index 78% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index b82800a00..befed225d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; -public interface SeekRequestOrBuilder - extends +public interface SeekRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.SeekRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The subscription to affect.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The subscription. */ java.lang.String getSubscription(); /** - * - * *
    * Required. The subscription to affect.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for subscription. */ - com.google.protobuf.ByteString getSubscriptionBytes(); + com.google.protobuf.ByteString + getSubscriptionBytes(); /** - * - * *
    * The time to seek to.
    * Messages retained in the subscription that were published before this
@@ -70,13 +43,10 @@ public interface SeekRequestOrBuilder
    * 
* * .google.protobuf.Timestamp time = 2; - * * @return Whether the time field is set. */ boolean hasTime(); /** - * - * *
    * The time to seek to.
    * Messages retained in the subscription that were published before this
@@ -92,13 +62,10 @@ public interface SeekRequestOrBuilder
    * 
* * .google.protobuf.Timestamp time = 2; - * * @return The time. */ com.google.protobuf.Timestamp getTime(); /** - * - * *
    * The time to seek to.
    * Messages retained in the subscription that were published before this
@@ -118,8 +85,6 @@ public interface SeekRequestOrBuilder
   com.google.protobuf.TimestampOrBuilder getTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The snapshot to seek to. The snapshot's topic must be the same as that of
    * the provided subscription.
@@ -127,13 +92,10 @@ public interface SeekRequestOrBuilder
    * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return Whether the snapshot field is set. */ boolean hasSnapshot(); /** - * - * *
    * The snapshot to seek to. The snapshot's topic must be the same as that of
    * the provided subscription.
@@ -141,13 +103,10 @@ public interface SeekRequestOrBuilder
    * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return The snapshot. */ java.lang.String getSnapshot(); /** - * - * *
    * The snapshot to seek to. The snapshot's topic must be the same as that of
    * the provided subscription.
@@ -155,10 +114,10 @@ public interface SeekRequestOrBuilder
    * 
* * string snapshot = 3 [(.google.api.resource_reference) = { ... } - * * @return The bytes for snapshot. */ - com.google.protobuf.ByteString getSnapshotBytes(); + com.google.protobuf.ByteString + getSnapshotBytes(); public com.google.pubsub.v1.SeekRequest.TargetCase getTargetCase(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java similarity index 66% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index 3ced96f97..57fc156d5 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Response for the `Seek` method (this response is empty).
  * 
* * Protobuf type {@code google.pubsub.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.pubsub.v1.SeekResponse) SeekResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SeekResponse.newBuilder() to construct. private SeekResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SeekResponse() {} + private SeekResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SeekResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SeekResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,42 +52,39 @@ private SeekResponse( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_SeekResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.SeekResponse.class, - com.google.pubsub.v1.SeekResponse.Builder.class); + com.google.pubsub.v1.SeekResponse.class, com.google.pubsub.v1.SeekResponse.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -115,7 +96,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 { unknownFields.writeTo(output); } @@ -133,7 +115,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.SeekResponse)) { return super.equals(obj); @@ -156,126 +138,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.SeekResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.SeekResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.SeekResponse parseFrom(com.google.protobuf.ByteString data) + public static com.google.pubsub.v1.SeekResponse parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.SeekResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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.pubsub.v1.SeekResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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 for the `Seek` method (this response is empty).
    * 
* * Protobuf type {@code google.pubsub.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.pubsub.v1.SeekResponse) com.google.pubsub.v1.SeekResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_SeekResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.SeekResponse.class, - com.google.pubsub.v1.SeekResponse.Builder.class); + com.google.pubsub.v1.SeekResponse.class, com.google.pubsub.v1.SeekResponse.Builder.class); } // Construct using com.google.pubsub.v1.SeekResponse.newBuilder() @@ -283,15 +257,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -299,9 +274,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_SeekResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_descriptor; } @java.lang.Override @@ -329,39 +304,38 @@ public com.google.pubsub.v1.SeekResponse 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.pubsub.v1.SeekResponse) { - return mergeFrom((com.google.pubsub.v1.SeekResponse) other); + return mergeFrom((com.google.pubsub.v1.SeekResponse)other); } else { super.mergeFrom(other); return this; @@ -398,9 +372,9 @@ public Builder mergeFrom( } 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); } @@ -410,12 +384,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.SeekResponse) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.SeekResponse) private static final com.google.pubsub.v1.SeekResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.SeekResponse(); } @@ -424,16 +398,16 @@ public static com.google.pubsub.v1.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 { - return new SeekResponse(input, extensionRegistry); - } - }; + 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 { + return new SeekResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -448,4 +422,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.SeekResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java new file mode 100644 index 000000000..df6f6dd5c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface SeekResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.SeekResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java similarity index 72% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index 7097a40b5..d8d540998 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * A snapshot resource. Snapshots are used in
  * [Seek](https://cloud.google.com/pubsub/docs/replay-overview)
@@ -31,16 +14,15 @@
  *
  * Protobuf type {@code google.pubsub.v1.Snapshot}
  */
-public final class Snapshot extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Snapshot extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.pubsub.v1.Snapshot)
     SnapshotOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Snapshot.newBuilder() to construct.
   private Snapshot(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Snapshot() {
     name_ = "";
     topic_ = "";
@@ -48,15 +30,16 @@ private Snapshot() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Snapshot();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Snapshot(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -76,87 +59,84 @@ private Snapshot(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              topic_ = s;
-              break;
+            topic_ = s;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (expireTime_ != null) {
+              subBuilder = expireTime_.toBuilder();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (expireTime_ != null) {
-                subBuilder = expireTime_.toBuilder();
-              }
-              expireTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(expireTime_);
-                expireTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            expireTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(expireTime_);
+              expireTime_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+
+            break;
+          }
+          case 34: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
     return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       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.pubsub.v1.PubsubProto
-        .internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable
+    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.pubsub.v1.Snapshot.class, com.google.pubsub.v1.Snapshot.Builder.class);
   }
@@ -164,14 +144,11 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * The name of the snapshot.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -180,29 +157,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; } } /** - * - * *
    * The name of the snapshot.
    * 
* * 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 { @@ -213,14 +190,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int TOPIC_FIELD_NUMBER = 2; private volatile java.lang.Object topic_; /** - * - * *
    * The name of the topic from which this snapshot is retaining messages.
    * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } - * * @return The topic. */ @java.lang.Override @@ -229,29 +203,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 name of the topic from which this snapshot is retaining messages.
    * 
* * 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 { @@ -262,8 +236,6 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int EXPIRE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp expireTime_; /** - * - * *
    * The snapshot is guaranteed to exist up until this time.
    * A newly-created snapshot expires no later than 7 days from the time of its
@@ -278,7 +250,6 @@ public com.google.protobuf.ByteString getTopicBytes() {
    * 
* * .google.protobuf.Timestamp expire_time = 3; - * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -286,8 +257,6 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * *
    * The snapshot is guaranteed to exist up until this time.
    * A newly-created snapshot expires no later than 7 days from the time of its
@@ -302,7 +271,6 @@ public boolean hasExpireTime() {
    * 
* * .google.protobuf.Timestamp expire_time = 3; - * * @return The expireTime. */ @java.lang.Override @@ -310,8 +278,6 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * *
    * The snapshot is guaranteed to exist up until this time.
    * A newly-created snapshot expires no later than 7 days from the time of its
@@ -333,23 +299,24 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
   }
 
   public static final int LABELS_FIELD_NUMBER = 4;
-
   private static final class LabelsDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry defaultEntry =
-        com.google.protobuf.MapEntry.newDefaultInstance(
-            com.google.pubsub.v1.PubsubProto
-                .internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor,
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "",
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "");
+    static final com.google.protobuf.MapEntry<
+        java.lang.String, java.lang.String> defaultEntry =
+            com.google.protobuf.MapEntry
+            .newDefaultInstance(
+                com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "");
   }
-
-  private com.google.protobuf.MapField labels_;
-
-  private com.google.protobuf.MapField internalGetLabels() {
+  private com.google.protobuf.MapField<
+      java.lang.String, java.lang.String> labels_;
+  private com.google.protobuf.MapField
+  internalGetLabels() {
     if (labels_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          LabelsDefaultEntryHolder.defaultEntry);
     }
     return labels_;
   }
@@ -358,8 +325,6 @@ public int getLabelsCount() {
     return internalGetLabels().getMap().size();
   }
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -367,22 +332,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4;
    */
+
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -391,12 +356,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -405,16 +369,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -423,11 +387,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -435,7 +400,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -447,18 +411,23 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (!getNameBytes().isEmpty()) {
+  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_);
     }
-    if (!getTopicBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topic_);
     }
     if (expireTime_ != null) {
       output.writeMessage(3, getExpireTime());
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        4);
     unknownFields.writeTo(output);
   }
 
@@ -468,24 +437,25 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
-    if (!getTopicBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_);
     }
     if (expireTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExpireTime());
-    }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getExpireTime());
+    }
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(4, labels__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -495,20 +465,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.pubsub.v1.Snapshot)) {
       return super.equals(obj);
     }
     com.google.pubsub.v1.Snapshot other = (com.google.pubsub.v1.Snapshot) 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 (hasExpireTime() != other.hasExpireTime()) return false;
     if (hasExpireTime()) {
-      if (!getExpireTime().equals(other.getExpireTime())) return false;
+      if (!getExpireTime()
+          .equals(other.getExpireTime())) return false;
     }
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -537,103 +511,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.pubsub.v1.Snapshot parseFrom(java.nio.ByteBuffer data)
+  public static com.google.pubsub.v1.Snapshot parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.Snapshot parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.pubsub.v1.Snapshot parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.pubsub.v1.Snapshot parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.Snapshot parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.Snapshot parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.Snapshot parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.Snapshot 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.pubsub.v1.Snapshot parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.Snapshot parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.pubsub.v1.Snapshot parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.pubsub.v1.Snapshot parseFrom(com.google.protobuf.CodedInputStream input)
+  public static com.google.pubsub.v1.Snapshot parseFrom(
+      com.google.protobuf.CodedInputStream 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.pubsub.v1.Snapshot parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.pubsub.v1.Snapshot prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 snapshot resource. Snapshots are used in
    * [Seek](https://cloud.google.com/pubsub/docs/replay-overview)
@@ -644,39 +612,41 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.pubsub.v1.Snapshot}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.pubsub.v1.Snapshot)
       com.google.pubsub.v1.SnapshotOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
       return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         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.pubsub.v1.PubsubProto
-          .internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable
+      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.pubsub.v1.Snapshot.class, com.google.pubsub.v1.Snapshot.Builder.class);
     }
@@ -686,15 +656,16 @@ 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) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -713,7 +684,8 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
       return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_descriptor;
     }
 
@@ -752,39 +724,38 @@ public com.google.pubsub.v1.Snapshot 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.pubsub.v1.Snapshot) {
-        return mergeFrom((com.google.pubsub.v1.Snapshot) other);
+        return mergeFrom((com.google.pubsub.v1.Snapshot)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -804,7 +775,8 @@ public Builder mergeFrom(com.google.pubsub.v1.Snapshot other) {
       if (other.hasExpireTime()) {
         mergeExpireTime(other.getExpireTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
       return this;
@@ -833,25 +805,22 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The name of the snapshot.
      * 
* * 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; @@ -860,21 +829,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the snapshot.
      * 
* * 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 { @@ -882,61 +850,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the snapshot.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The name of the snapshot.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The name of the snapshot.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -944,20 +905,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object topic_ = ""; /** - * - * *
      * The name of the topic from which this snapshot is retaining messages.
      * 
* * 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; @@ -966,21 +925,20 @@ public java.lang.String getTopic() { } } /** - * - * *
      * The name of the topic from which this snapshot is retaining messages.
      * 
* * 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 { @@ -988,61 +946,54 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
      * The name of the topic from which this snapshot is retaining messages.
      * 
* * 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) { + public Builder setTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topic_ = value; onChanged(); return this; } /** - * - * *
      * The name of the topic from which this snapshot is retaining messages.
      * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearTopic() { - + topic_ = getDefaultInstance().getTopic(); onChanged(); return this; } /** - * - * *
      * The name of the topic from which this snapshot is retaining messages.
      * 
* * 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) { + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; onChanged(); return this; @@ -1050,13 +1001,8 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * *
      * The snapshot is guaranteed to exist up until this time.
      * A newly-created snapshot expires no later than 7 days from the time of its
@@ -1071,15 +1017,12 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Timestamp expire_time = 3; - * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return expireTimeBuilder_ != null || expireTime_ != null; } /** - * - * *
      * The snapshot is guaranteed to exist up until this time.
      * A newly-created snapshot expires no later than 7 days from the time of its
@@ -1094,21 +1037,16 @@ public boolean hasExpireTime() {
      * 
* * .google.protobuf.Timestamp expire_time = 3; - * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** - * - * *
      * The snapshot is guaranteed to exist up until this time.
      * A newly-created snapshot expires no later than 7 days from the time of its
@@ -1138,8 +1076,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The snapshot is guaranteed to exist up until this time.
      * A newly-created snapshot expires no later than 7 days from the time of its
@@ -1155,7 +1091,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp expire_time = 3;
      */
-    public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setExpireTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (expireTimeBuilder_ == null) {
         expireTime_ = builderForValue.build();
         onChanged();
@@ -1166,8 +1103,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The snapshot is guaranteed to exist up until this time.
      * A newly-created snapshot expires no later than 7 days from the time of its
@@ -1187,7 +1122,7 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       if (expireTimeBuilder_ == null) {
         if (expireTime_ != null) {
           expireTime_ =
-              com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial();
         } else {
           expireTime_ = value;
         }
@@ -1199,8 +1134,6 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The snapshot is guaranteed to exist up until this time.
      * A newly-created snapshot expires no later than 7 days from the time of its
@@ -1228,8 +1161,6 @@ public Builder clearExpireTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The snapshot is guaranteed to exist up until this time.
      * A newly-created snapshot expires no later than 7 days from the time of its
@@ -1246,13 +1177,11 @@ public Builder clearExpireTime() {
      * .google.protobuf.Timestamp expire_time = 3;
      */
     public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
-
+      
       onChanged();
       return getExpireTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The snapshot is guaranteed to exist up until this time.
      * A newly-created snapshot expires no later than 7 days from the time of its
@@ -1272,14 +1201,11 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
       if (expireTimeBuilder_ != null) {
         return expireTimeBuilder_.getMessageOrBuilder();
       } else {
-        return expireTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : expireTime_;
+        return expireTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The snapshot is guaranteed to exist up until this time.
      * A newly-created snapshot expires no later than 7 days from the time of its
@@ -1296,37 +1222,35 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * .google.protobuf.Timestamp expire_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> 
         getExpireTimeFieldBuilder() {
       if (expireTimeBuilder_ == null) {
-        expireTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getExpireTime(), getParentForChildren(), isClean());
+        expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getExpireTime(),
+                getParentForChildren(),
+                isClean());
         expireTime_ = null;
       }
       return expireTimeBuilder_;
     }
 
-    private com.google.protobuf.MapField labels_;
-
-    private com.google.protobuf.MapField internalGetLabels() {
+    private com.google.protobuf.MapField<
+        java.lang.String, java.lang.String> labels_;
+    private com.google.protobuf.MapField
+    internalGetLabels() {
       if (labels_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
+        return com.google.protobuf.MapField.emptyMapField(
+            LabelsDefaultEntryHolder.defaultEntry);
       }
       return labels_;
     }
-
     private com.google.protobuf.MapField
-        internalGetMutableLabels() {
-      onChanged();
-      ;
+    internalGetMutableLabels() {
+      onChanged();;
       if (labels_ == null) {
-        labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+        labels_ = com.google.protobuf.MapField.newMapField(
+            LabelsDefaultEntryHolder.defaultEntry);
       }
       if (!labels_.isMutable()) {
         labels_ = labels_.copy();
@@ -1338,8 +1262,6 @@ public int getLabelsCount() {
       return internalGetLabels().getMap().size();
     }
     /**
-     *
-     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1347,22 +1269,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4;
      */
+
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1371,12 +1293,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1385,17 +1306,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1404,11 +1324,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1416,12 +1337,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1429,21 +1349,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+    getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1451,19 +1373,16 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 4;
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1471,13 +1390,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 4;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       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);
     }
 
@@ -1487,12 +1409,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.pubsub.v1.Snapshot)
   }
 
   // @@protoc_insertion_point(class_scope:google.pubsub.v1.Snapshot)
   private static final com.google.pubsub.v1.Snapshot DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.pubsub.v1.Snapshot();
   }
@@ -1501,16 +1423,16 @@ public static com.google.pubsub.v1.Snapshot getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Snapshot parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new Snapshot(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Snapshot parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new Snapshot(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1525,4 +1447,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.pubsub.v1.Snapshot getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java
similarity index 100%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java
similarity index 79%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java
index c8d3ed3ad..5cfe855d7 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java
@@ -1,81 +1,53 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/pubsub/v1/pubsub.proto
 
 package com.google.pubsub.v1;
 
-public interface SnapshotOrBuilder
-    extends
+public interface SnapshotOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.pubsub.v1.Snapshot)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The name of the snapshot.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the snapshot.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The name of the topic from which this snapshot is retaining messages.
    * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } - * * @return The topic. */ java.lang.String getTopic(); /** - * - * *
    * The name of the topic from which this snapshot is retaining messages.
    * 
* * string topic = 2 [(.google.api.resource_reference) = { ... } - * * @return The bytes for topic. */ - com.google.protobuf.ByteString getTopicBytes(); + com.google.protobuf.ByteString + getTopicBytes(); /** - * - * *
    * The snapshot is guaranteed to exist up until this time.
    * A newly-created snapshot expires no later than 7 days from the time of its
@@ -90,13 +62,10 @@ public interface SnapshotOrBuilder
    * 
* * .google.protobuf.Timestamp expire_time = 3; - * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * The snapshot is guaranteed to exist up until this time.
    * A newly-created snapshot expires no later than 7 days from the time of its
@@ -111,13 +80,10 @@ public interface SnapshotOrBuilder
    * 
* * .google.protobuf.Timestamp expire_time = 3; - * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * The snapshot is guaranteed to exist up until this time.
    * A newly-created snapshot expires no later than 7 days from the time of its
@@ -136,8 +102,6 @@ public interface SnapshotOrBuilder
   com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -147,8 +111,6 @@ public interface SnapshotOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -156,13 +118,15 @@ public interface SnapshotOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -170,10 +134,9 @@ public interface SnapshotOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -181,10 +144,11 @@ public interface SnapshotOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -192,5 +156,7 @@ public interface SnapshotOrBuilder
    *
    * map<string, string> labels = 4;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 }
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java
similarity index 81%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java
index d0c8d9a3f..4e662e9fc 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/pubsub/v1/pubsub.proto
 
 package com.google.pubsub.v1;
 
 /**
- *
- *
  * 
  * Request for the `StreamingPull` streaming RPC method. This request is used to
  * establish the initial stream as well as to stream acknowledgements and ack
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.pubsub.v1.StreamingPullRequest}
  */
-public final class StreamingPullRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class StreamingPullRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullRequest)
     StreamingPullRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use StreamingPullRequest.newBuilder() to construct.
   private StreamingPullRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private StreamingPullRequest() {
     subscription_ = "";
     ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -49,15 +31,16 @@ private StreamingPullRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new StreamingPullRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private StreamingPullRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -77,91 +60,86 @@ private StreamingPullRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              subscription_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                ackIds_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              ackIds_.add(s);
-              break;
+            subscription_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              ackIds_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 24:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                modifyDeadlineSeconds_ = newIntList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              modifyDeadlineSeconds_.addInt(input.readInt32());
-              break;
+            ackIds_.add(s);
+            break;
+          }
+          case 24: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              modifyDeadlineSeconds_ = newIntList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 26:
-            {
-              int length = input.readRawVarint32();
-              int limit = input.pushLimit(length);
-              if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
-                modifyDeadlineSeconds_ = newIntList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              while (input.getBytesUntilLimit() > 0) {
-                modifyDeadlineSeconds_.addInt(input.readInt32());
-              }
-              input.popLimit(limit);
-              break;
+            modifyDeadlineSeconds_.addInt(input.readInt32());
+            break;
+          }
+          case 26: {
+            int length = input.readRawVarint32();
+            int limit = input.pushLimit(length);
+            if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
+              modifyDeadlineSeconds_ = newIntList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-                modifyDeadlineAckIds_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000004;
-              }
-              modifyDeadlineAckIds_.add(s);
-              break;
+            while (input.getBytesUntilLimit() > 0) {
+              modifyDeadlineSeconds_.addInt(input.readInt32());
             }
-          case 40:
-            {
-              streamAckDeadlineSeconds_ = input.readInt32();
-              break;
+            input.popLimit(limit);
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+              modifyDeadlineAckIds_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000004;
             }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            modifyDeadlineAckIds_.add(s);
+            break;
+          }
+          case 40: {
 
-              clientId_ = s;
-              break;
-            }
-          case 56:
-            {
-              maxOutstandingMessages_ = input.readInt64();
-              break;
-            }
-          case 64:
-            {
-              maxOutstandingBytes_ = input.readInt64();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            streamAckDeadlineSeconds_ = input.readInt32();
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            clientId_ = s;
+            break;
+          }
+          case 56: {
+
+            maxOutstandingMessages_ = input.readInt64();
+            break;
+          }
+          case 64: {
+
+            maxOutstandingBytes_ = input.readInt64();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         ackIds_ = ackIds_.getUnmodifiableView();
@@ -176,27 +154,22 @@ private StreamingPullRequest(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.pubsub.v1.PubsubProto
-        .internal_static_google_pubsub_v1_StreamingPullRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.pubsub.v1.PubsubProto
-        .internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable
+    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.pubsub.v1.StreamingPullRequest.class,
-            com.google.pubsub.v1.StreamingPullRequest.Builder.class);
+            com.google.pubsub.v1.StreamingPullRequest.class, com.google.pubsub.v1.StreamingPullRequest.Builder.class);
   }
 
   public static final int SUBSCRIPTION_FIELD_NUMBER = 1;
   private volatile java.lang.Object subscription_;
   /**
-   *
-   *
    * 
    * Required. The subscription for which to initialize the new stream. This
    * must be provided in the first request on the stream, and must not be set in
@@ -204,10 +177,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The subscription. */ @java.lang.Override @@ -216,15 +186,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; } } /** - * - * *
    * Required. The subscription for which to initialize the new stream. This
    * must be provided in the first request on the stream, and must not be set in
@@ -232,18 +201,17 @@ public java.lang.String getSubscription() {
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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 { @@ -254,8 +222,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public static final int ACK_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList ackIds_; /** - * - * *
    * List of acknowledgement IDs for acknowledging previously received messages
    * (received on this stream or a different stream). If an ack ID has expired,
@@ -265,15 +231,13 @@ public com.google.protobuf.ByteString getSubscriptionBytes() {
    * 
* * repeated string ack_ids = 2; - * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList getAckIdsList() { + public com.google.protobuf.ProtocolStringList + getAckIdsList() { return ackIds_; } /** - * - * *
    * List of acknowledgement IDs for acknowledging previously received messages
    * (received on this stream or a different stream). If an ack ID has expired,
@@ -283,15 +247,12 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() {
    * 
* * repeated string ack_ids = 2; - * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** - * - * *
    * List of acknowledgement IDs for acknowledging previously received messages
    * (received on this stream or a different stream). If an ack ID has expired,
@@ -301,7 +262,6 @@ public int getAckIdsCount() {
    * 
* * repeated string ack_ids = 2; - * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -309,8 +269,6 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** - * - * *
    * List of acknowledgement IDs for acknowledging previously received messages
    * (received on this stream or a different stream). If an ack ID has expired,
@@ -320,19 +278,17 @@ public java.lang.String getAckIds(int index) {
    * 
* * repeated string ack_ids = 2; - * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. */ - public com.google.protobuf.ByteString getAckIdsBytes(int index) { + public com.google.protobuf.ByteString + getAckIdsBytes(int index) { return ackIds_.getByteString(index); } public static final int MODIFY_DEADLINE_SECONDS_FIELD_NUMBER = 3; private com.google.protobuf.Internal.IntList modifyDeadlineSeconds_; /** - * - * *
    * The list of new ack deadlines for the IDs listed in
    * `modify_deadline_ack_ids`. The size of this list must be the same as the
@@ -348,16 +304,14 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) {
    * 
* * repeated int32 modify_deadline_seconds = 3; - * * @return A list containing the modifyDeadlineSeconds. */ @java.lang.Override - public java.util.List getModifyDeadlineSecondsList() { + public java.util.List + getModifyDeadlineSecondsList() { return modifyDeadlineSeconds_; } /** - * - * *
    * The list of new ack deadlines for the IDs listed in
    * `modify_deadline_ack_ids`. The size of this list must be the same as the
@@ -373,15 +327,12 @@ public java.util.List getModifyDeadlineSecondsList() {
    * 
* * repeated int32 modify_deadline_seconds = 3; - * * @return The count of modifyDeadlineSeconds. */ public int getModifyDeadlineSecondsCount() { return modifyDeadlineSeconds_.size(); } /** - * - * *
    * The list of new ack deadlines for the IDs listed in
    * `modify_deadline_ack_ids`. The size of this list must be the same as the
@@ -397,21 +348,17 @@ public int getModifyDeadlineSecondsCount() {
    * 
* * repeated int32 modify_deadline_seconds = 3; - * * @param index The index of the element to return. * @return The modifyDeadlineSeconds at the given index. */ public int getModifyDeadlineSeconds(int index) { return modifyDeadlineSeconds_.getInt(index); } - private int modifyDeadlineSecondsMemoizedSerializedSize = -1; public static final int MODIFY_DEADLINE_ACK_IDS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList modifyDeadlineAckIds_; /** - * - * *
    * List of acknowledgement IDs whose deadline will be modified based on the
    * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -421,15 +368,13 @@ public int getModifyDeadlineSeconds(int index) {
    * 
* * repeated string modify_deadline_ack_ids = 4; - * * @return A list containing the modifyDeadlineAckIds. */ - public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() { + public com.google.protobuf.ProtocolStringList + getModifyDeadlineAckIdsList() { return modifyDeadlineAckIds_; } /** - * - * *
    * List of acknowledgement IDs whose deadline will be modified based on the
    * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -439,15 +384,12 @@ public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() {
    * 
* * repeated string modify_deadline_ack_ids = 4; - * * @return The count of modifyDeadlineAckIds. */ public int getModifyDeadlineAckIdsCount() { return modifyDeadlineAckIds_.size(); } /** - * - * *
    * List of acknowledgement IDs whose deadline will be modified based on the
    * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -457,7 +399,6 @@ public int getModifyDeadlineAckIdsCount() {
    * 
* * repeated string modify_deadline_ack_ids = 4; - * * @param index The index of the element to return. * @return The modifyDeadlineAckIds at the given index. */ @@ -465,8 +406,6 @@ public java.lang.String getModifyDeadlineAckIds(int index) { return modifyDeadlineAckIds_.get(index); } /** - * - * *
    * List of acknowledgement IDs whose deadline will be modified based on the
    * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -476,19 +415,17 @@ public java.lang.String getModifyDeadlineAckIds(int index) {
    * 
* * repeated string modify_deadline_ack_ids = 4; - * * @param index The index of the value to return. * @return The bytes of the modifyDeadlineAckIds at the given index. */ - public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) { + public com.google.protobuf.ByteString + getModifyDeadlineAckIdsBytes(int index) { return modifyDeadlineAckIds_.getByteString(index); } public static final int STREAM_ACK_DEADLINE_SECONDS_FIELD_NUMBER = 5; private int streamAckDeadlineSeconds_; /** - * - * *
    * Required. The ack deadline to use for the stream. This must be provided in
    * the first request on the stream, but it can also be updated on subsequent
@@ -497,7 +434,6 @@ public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) {
    * 
* * int32 stream_ack_deadline_seconds = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The streamAckDeadlineSeconds. */ @java.lang.Override @@ -508,8 +444,6 @@ public int getStreamAckDeadlineSeconds() { public static final int CLIENT_ID_FIELD_NUMBER = 6; private volatile java.lang.Object clientId_; /** - * - * *
    * A unique identifier that is used to distinguish client instances from each
    * other. Only needs to be provided on the initial request. When a stream
@@ -520,7 +454,6 @@ public int getStreamAckDeadlineSeconds() {
    * 
* * string client_id = 6; - * * @return The clientId. */ @java.lang.Override @@ -529,15 +462,14 @@ public java.lang.String getClientId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientId_ = s; return s; } } /** - * - * *
    * A unique identifier that is used to distinguish client instances from each
    * other. Only needs to be provided on the initial request. When a stream
@@ -548,15 +480,16 @@ public java.lang.String getClientId() {
    * 
* * string client_id = 6; - * * @return The bytes for clientId. */ @java.lang.Override - public com.google.protobuf.ByteString getClientIdBytes() { + public com.google.protobuf.ByteString + getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clientId_ = b; return b; } else { @@ -567,8 +500,6 @@ public com.google.protobuf.ByteString getClientIdBytes() { public static final int MAX_OUTSTANDING_MESSAGES_FIELD_NUMBER = 7; private long maxOutstandingMessages_; /** - * - * *
    * Flow control settings for the maximum number of outstanding messages. When
    * there are `max_outstanding_messages` or more currently sent to the
@@ -582,7 +513,6 @@ public com.google.protobuf.ByteString getClientIdBytes() {
    * 
* * int64 max_outstanding_messages = 7; - * * @return The maxOutstandingMessages. */ @java.lang.Override @@ -593,8 +523,6 @@ public long getMaxOutstandingMessages() { public static final int MAX_OUTSTANDING_BYTES_FIELD_NUMBER = 8; private long maxOutstandingBytes_; /** - * - * *
    * Flow control settings for the maximum number of outstanding bytes. When
    * there are `max_outstanding_bytes` or more worth of messages currently sent
@@ -608,7 +536,6 @@ public long getMaxOutstandingMessages() {
    * 
* * int64 max_outstanding_bytes = 8; - * * @return The maxOutstandingBytes. */ @java.lang.Override @@ -617,7 +544,6 @@ public long getMaxOutstandingBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -629,9 +555,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 { getSerializedSize(); - if (!getSubscriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); } for (int i = 0; i < ackIds_.size(); i++) { @@ -645,13 +572,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeInt32NoTag(modifyDeadlineSeconds_.getInt(i)); } for (int i = 0; i < modifyDeadlineAckIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 4, modifyDeadlineAckIds_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, modifyDeadlineAckIds_.getRaw(i)); } if (streamAckDeadlineSeconds_ != 0) { output.writeInt32(5, streamAckDeadlineSeconds_); } - if (!getClientIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, clientId_); } if (maxOutstandingMessages_ != 0L) { @@ -669,7 +595,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getSubscriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } { @@ -683,14 +609,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < modifyDeadlineSeconds_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( - modifyDeadlineSeconds_.getInt(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(modifyDeadlineSeconds_.getInt(i)); } size += dataSize; if (!getModifyDeadlineSecondsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } modifyDeadlineSecondsMemoizedSerializedSize = dataSize; } @@ -703,16 +629,19 @@ public int getSerializedSize() { size += 1 * getModifyDeadlineAckIdsList().size(); } if (streamAckDeadlineSeconds_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, streamAckDeadlineSeconds_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, streamAckDeadlineSeconds_); } - if (!getClientIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, clientId_); } if (maxOutstandingMessages_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, maxOutstandingMessages_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, maxOutstandingMessages_); } if (maxOutstandingBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, maxOutstandingBytes_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, maxOutstandingBytes_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -722,22 +651,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.pubsub.v1.StreamingPullRequest)) { return super.equals(obj); } - com.google.pubsub.v1.StreamingPullRequest other = - (com.google.pubsub.v1.StreamingPullRequest) obj; - - if (!getSubscription().equals(other.getSubscription())) return false; - if (!getAckIdsList().equals(other.getAckIdsList())) return false; - if (!getModifyDeadlineSecondsList().equals(other.getModifyDeadlineSecondsList())) return false; - if (!getModifyDeadlineAckIdsList().equals(other.getModifyDeadlineAckIdsList())) return false; - if (getStreamAckDeadlineSeconds() != other.getStreamAckDeadlineSeconds()) return false; - if (!getClientId().equals(other.getClientId())) return false; - if (getMaxOutstandingMessages() != other.getMaxOutstandingMessages()) return false; - if (getMaxOutstandingBytes() != other.getMaxOutstandingBytes()) return false; + com.google.pubsub.v1.StreamingPullRequest other = (com.google.pubsub.v1.StreamingPullRequest) obj; + + if (!getSubscription() + .equals(other.getSubscription())) return false; + if (!getAckIdsList() + .equals(other.getAckIdsList())) return false; + if (!getModifyDeadlineSecondsList() + .equals(other.getModifyDeadlineSecondsList())) return false; + if (!getModifyDeadlineAckIdsList() + .equals(other.getModifyDeadlineAckIdsList())) return false; + if (getStreamAckDeadlineSeconds() + != other.getStreamAckDeadlineSeconds()) return false; + if (!getClientId() + .equals(other.getClientId())) return false; + if (getMaxOutstandingMessages() + != other.getMaxOutstandingMessages()) return false; + if (getMaxOutstandingBytes() + != other.getMaxOutstandingBytes()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -768,112 +704,107 @@ public int hashCode() { hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; hash = (53 * hash) + getClientId().hashCode(); hash = (37 * hash) + MAX_OUTSTANDING_MESSAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxOutstandingMessages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxOutstandingMessages()); hash = (37 * hash) + MAX_OUTSTANDING_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxOutstandingBytes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxOutstandingBytes()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.pubsub.v1.StreamingPullRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.StreamingPullRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.StreamingPullRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.StreamingPullRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.StreamingPullRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.StreamingPullRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.StreamingPullRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.StreamingPullRequest 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.pubsub.v1.StreamingPullRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.pubsub.v1.StreamingPullRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.StreamingPullRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.StreamingPullRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.StreamingPullRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.StreamingPullRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.StreamingPullRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 the `StreamingPull` streaming RPC method. This request is used to
    * establish the initial stream as well as to stream acknowledgements and ack
@@ -882,23 +813,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.pubsub.v1.StreamingPullRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.pubsub.v1.StreamingPullRequest)
       com.google.pubsub.v1.StreamingPullRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.pubsub.v1.PubsubProto
-          .internal_static_google_pubsub_v1_StreamingPullRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.pubsub.v1.PubsubProto
-          .internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable
+      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.pubsub.v1.StreamingPullRequest.class,
-              com.google.pubsub.v1.StreamingPullRequest.Builder.class);
+              com.google.pubsub.v1.StreamingPullRequest.class, com.google.pubsub.v1.StreamingPullRequest.Builder.class);
     }
 
     // Construct using com.google.pubsub.v1.StreamingPullRequest.newBuilder()
@@ -906,15 +835,16 @@ 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) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -938,9 +868,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.pubsub.v1.PubsubProto
-          .internal_static_google_pubsub_v1_StreamingPullRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_descriptor;
     }
 
     @java.lang.Override
@@ -959,8 +889,7 @@ public com.google.pubsub.v1.StreamingPullRequest build() {
 
     @java.lang.Override
     public com.google.pubsub.v1.StreamingPullRequest buildPartial() {
-      com.google.pubsub.v1.StreamingPullRequest result =
-          new com.google.pubsub.v1.StreamingPullRequest(this);
+      com.google.pubsub.v1.StreamingPullRequest result = new com.google.pubsub.v1.StreamingPullRequest(this);
       int from_bitField0_ = bitField0_;
       result.subscription_ = subscription_;
       if (((bitField0_ & 0x00000001) != 0)) {
@@ -990,39 +919,38 @@ public com.google.pubsub.v1.StreamingPullRequest 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.pubsub.v1.StreamingPullRequest) {
-        return mergeFrom((com.google.pubsub.v1.StreamingPullRequest) other);
+        return mergeFrom((com.google.pubsub.v1.StreamingPullRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1106,13 +1034,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object subscription_ = "";
     /**
-     *
-     *
      * 
      * Required. The subscription for which to initialize the new stream. This
      * must be provided in the first request on the stream, and must not be set in
@@ -1120,16 +1045,14 @@ public Builder mergeFrom(
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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; @@ -1138,8 +1061,6 @@ public java.lang.String getSubscription() { } } /** - * - * *
      * Required. The subscription for which to initialize the new stream. This
      * must be provided in the first request on the stream, and must not be set in
@@ -1147,17 +1068,16 @@ public java.lang.String getSubscription() {
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @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 { @@ -1165,8 +1085,6 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } } /** - * - * *
      * Required. The subscription for which to initialize the new stream. This
      * must be provided in the first request on the stream, and must not be set in
@@ -1174,25 +1092,21 @@ public com.google.protobuf.ByteString getSubscriptionBytes() {
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The subscription to set. * @return This builder for chaining. */ - public Builder setSubscription(java.lang.String value) { + public Builder setSubscription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; onChanged(); return this; } /** - * - * *
      * Required. The subscription for which to initialize the new stream. This
      * must be provided in the first request on the stream, and must not be set in
@@ -1200,21 +1114,16 @@ public Builder setSubscription(java.lang.String value) {
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearSubscription() { - + subscription_ = getDefaultInstance().getSubscription(); onChanged(); return this; } /** - * - * *
      * Required. The subscription for which to initialize the new stream. This
      * must be provided in the first request on the stream, and must not be set in
@@ -1222,36 +1131,30 @@ public Builder clearSubscription() {
      * Format is `projects/{project}/subscriptions/{sub}`.
      * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for subscription to set. * @return This builder for chaining. */ - public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList ackIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAckIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * List of acknowledgement IDs for acknowledging previously received messages
      * (received on this stream or a different stream). If an ack ID has expired,
@@ -1261,15 +1164,13 @@ private void ensureAckIdsIsMutable() {
      * 
* * repeated string ack_ids = 2; - * * @return A list containing the ackIds. */ - public com.google.protobuf.ProtocolStringList getAckIdsList() { + public com.google.protobuf.ProtocolStringList + getAckIdsList() { return ackIds_.getUnmodifiableView(); } /** - * - * *
      * List of acknowledgement IDs for acknowledging previously received messages
      * (received on this stream or a different stream). If an ack ID has expired,
@@ -1279,15 +1180,12 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() {
      * 
* * repeated string ack_ids = 2; - * * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); } /** - * - * *
      * List of acknowledgement IDs for acknowledging previously received messages
      * (received on this stream or a different stream). If an ack ID has expired,
@@ -1297,7 +1195,6 @@ public int getAckIdsCount() {
      * 
* * repeated string ack_ids = 2; - * * @param index The index of the element to return. * @return The ackIds at the given index. */ @@ -1305,8 +1202,6 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** - * - * *
      * List of acknowledgement IDs for acknowledging previously received messages
      * (received on this stream or a different stream). If an ack ID has expired,
@@ -1316,16 +1211,14 @@ public java.lang.String getAckIds(int index) {
      * 
* * repeated string ack_ids = 2; - * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. */ - public com.google.protobuf.ByteString getAckIdsBytes(int index) { + public com.google.protobuf.ByteString + getAckIdsBytes(int index) { return ackIds_.getByteString(index); } /** - * - * *
      * List of acknowledgement IDs for acknowledging previously received messages
      * (received on this stream or a different stream). If an ack ID has expired,
@@ -1335,23 +1228,21 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) {
      * 
* * repeated string ack_ids = 2; - * * @param index The index to set the value at. * @param value The ackIds to set. * @return This builder for chaining. */ - public Builder setAckIds(int index, java.lang.String value) { + public Builder setAckIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.set(index, value); onChanged(); return this; } /** - * - * *
      * List of acknowledgement IDs for acknowledging previously received messages
      * (received on this stream or a different stream). If an ack ID has expired,
@@ -1361,22 +1252,20 @@ public Builder setAckIds(int index, java.lang.String value) {
      * 
* * repeated string ack_ids = 2; - * * @param value The ackIds to add. * @return This builder for chaining. */ - public Builder addAckIds(java.lang.String value) { + public Builder addAckIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); return this; } /** - * - * *
      * List of acknowledgement IDs for acknowledging previously received messages
      * (received on this stream or a different stream). If an ack ID has expired,
@@ -1386,19 +1275,18 @@ public Builder addAckIds(java.lang.String value) {
      * 
* * repeated string ack_ids = 2; - * * @param values The ackIds to add. * @return This builder for chaining. */ - public Builder addAllAckIds(java.lang.Iterable values) { + public Builder addAllAckIds( + java.lang.Iterable values) { ensureAckIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ackIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ackIds_); onChanged(); return this; } /** - * - * *
      * List of acknowledgement IDs for acknowledging previously received messages
      * (received on this stream or a different stream). If an ack ID has expired,
@@ -1408,7 +1296,6 @@ public Builder addAllAckIds(java.lang.Iterable values) {
      * 
* * repeated string ack_ids = 2; - * * @return This builder for chaining. */ public Builder clearAckIds() { @@ -1418,8 +1305,6 @@ public Builder clearAckIds() { return this; } /** - * - * *
      * List of acknowledgement IDs for acknowledging previously received messages
      * (received on this stream or a different stream). If an ack ID has expired,
@@ -1429,15 +1314,15 @@ public Builder clearAckIds() {
      * 
* * repeated string ack_ids = 2; - * * @param value The bytes of the ackIds to add. * @return This builder for chaining. */ - public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { + public Builder addAckIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); @@ -1445,16 +1330,13 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.Internal.IntList modifyDeadlineSeconds_ = emptyIntList(); - private void ensureModifyDeadlineSecondsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { modifyDeadlineSeconds_ = mutableCopy(modifyDeadlineSeconds_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * The list of new ack deadlines for the IDs listed in
      * `modify_deadline_ack_ids`. The size of this list must be the same as the
@@ -1470,17 +1352,14 @@ private void ensureModifyDeadlineSecondsIsMutable() {
      * 
* * repeated int32 modify_deadline_seconds = 3; - * * @return A list containing the modifyDeadlineSeconds. */ - public java.util.List getModifyDeadlineSecondsList() { - return ((bitField0_ & 0x00000002) != 0) - ? java.util.Collections.unmodifiableList(modifyDeadlineSeconds_) - : modifyDeadlineSeconds_; + public java.util.List + getModifyDeadlineSecondsList() { + return ((bitField0_ & 0x00000002) != 0) ? + java.util.Collections.unmodifiableList(modifyDeadlineSeconds_) : modifyDeadlineSeconds_; } /** - * - * *
      * The list of new ack deadlines for the IDs listed in
      * `modify_deadline_ack_ids`. The size of this list must be the same as the
@@ -1496,15 +1375,12 @@ public java.util.List getModifyDeadlineSecondsList() {
      * 
* * repeated int32 modify_deadline_seconds = 3; - * * @return The count of modifyDeadlineSeconds. */ public int getModifyDeadlineSecondsCount() { return modifyDeadlineSeconds_.size(); } /** - * - * *
      * The list of new ack deadlines for the IDs listed in
      * `modify_deadline_ack_ids`. The size of this list must be the same as the
@@ -1520,7 +1396,6 @@ public int getModifyDeadlineSecondsCount() {
      * 
* * repeated int32 modify_deadline_seconds = 3; - * * @param index The index of the element to return. * @return The modifyDeadlineSeconds at the given index. */ @@ -1528,8 +1403,6 @@ public int getModifyDeadlineSeconds(int index) { return modifyDeadlineSeconds_.getInt(index); } /** - * - * *
      * The list of new ack deadlines for the IDs listed in
      * `modify_deadline_ack_ids`. The size of this list must be the same as the
@@ -1545,20 +1418,18 @@ public int getModifyDeadlineSeconds(int index) {
      * 
* * repeated int32 modify_deadline_seconds = 3; - * * @param index The index to set the value at. * @param value The modifyDeadlineSeconds to set. * @return This builder for chaining. */ - public Builder setModifyDeadlineSeconds(int index, int value) { + public Builder setModifyDeadlineSeconds( + int index, int value) { ensureModifyDeadlineSecondsIsMutable(); modifyDeadlineSeconds_.setInt(index, value); onChanged(); return this; } /** - * - * *
      * The list of new ack deadlines for the IDs listed in
      * `modify_deadline_ack_ids`. The size of this list must be the same as the
@@ -1574,7 +1445,6 @@ public Builder setModifyDeadlineSeconds(int index, int value) {
      * 
* * repeated int32 modify_deadline_seconds = 3; - * * @param value The modifyDeadlineSeconds to add. * @return This builder for chaining. */ @@ -1585,8 +1455,6 @@ public Builder addModifyDeadlineSeconds(int value) { return this; } /** - * - * *
      * The list of new ack deadlines for the IDs listed in
      * `modify_deadline_ack_ids`. The size of this list must be the same as the
@@ -1602,20 +1470,18 @@ public Builder addModifyDeadlineSeconds(int value) {
      * 
* * repeated int32 modify_deadline_seconds = 3; - * * @param values The modifyDeadlineSeconds to add. * @return This builder for chaining. */ public Builder addAllModifyDeadlineSeconds( java.lang.Iterable values) { ensureModifyDeadlineSecondsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, modifyDeadlineSeconds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, modifyDeadlineSeconds_); onChanged(); return this; } /** - * - * *
      * The list of new ack deadlines for the IDs listed in
      * `modify_deadline_ack_ids`. The size of this list must be the same as the
@@ -1631,7 +1497,6 @@ public Builder addAllModifyDeadlineSeconds(
      * 
* * repeated int32 modify_deadline_seconds = 3; - * * @return This builder for chaining. */ public Builder clearModifyDeadlineSeconds() { @@ -1641,18 +1506,14 @@ public Builder clearModifyDeadlineSeconds() { return this; } - private com.google.protobuf.LazyStringList modifyDeadlineAckIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureModifyDeadlineAckIdsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { modifyDeadlineAckIds_ = new com.google.protobuf.LazyStringArrayList(modifyDeadlineAckIds_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * List of acknowledgement IDs whose deadline will be modified based on the
      * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -1662,15 +1523,13 @@ private void ensureModifyDeadlineAckIdsIsMutable() {
      * 
* * repeated string modify_deadline_ack_ids = 4; - * * @return A list containing the modifyDeadlineAckIds. */ - public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() { + public com.google.protobuf.ProtocolStringList + getModifyDeadlineAckIdsList() { return modifyDeadlineAckIds_.getUnmodifiableView(); } /** - * - * *
      * List of acknowledgement IDs whose deadline will be modified based on the
      * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -1680,15 +1539,12 @@ public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() {
      * 
* * repeated string modify_deadline_ack_ids = 4; - * * @return The count of modifyDeadlineAckIds. */ public int getModifyDeadlineAckIdsCount() { return modifyDeadlineAckIds_.size(); } /** - * - * *
      * List of acknowledgement IDs whose deadline will be modified based on the
      * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -1698,7 +1554,6 @@ public int getModifyDeadlineAckIdsCount() {
      * 
* * repeated string modify_deadline_ack_ids = 4; - * * @param index The index of the element to return. * @return The modifyDeadlineAckIds at the given index. */ @@ -1706,8 +1561,6 @@ public java.lang.String getModifyDeadlineAckIds(int index) { return modifyDeadlineAckIds_.get(index); } /** - * - * *
      * List of acknowledgement IDs whose deadline will be modified based on the
      * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -1717,16 +1570,14 @@ public java.lang.String getModifyDeadlineAckIds(int index) {
      * 
* * repeated string modify_deadline_ack_ids = 4; - * * @param index The index of the value to return. * @return The bytes of the modifyDeadlineAckIds at the given index. */ - public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) { + public com.google.protobuf.ByteString + getModifyDeadlineAckIdsBytes(int index) { return modifyDeadlineAckIds_.getByteString(index); } /** - * - * *
      * List of acknowledgement IDs whose deadline will be modified based on the
      * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -1736,23 +1587,21 @@ public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) {
      * 
* * repeated string modify_deadline_ack_ids = 4; - * * @param index The index to set the value at. * @param value The modifyDeadlineAckIds to set. * @return This builder for chaining. */ - public Builder setModifyDeadlineAckIds(int index, java.lang.String value) { + public Builder setModifyDeadlineAckIds( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureModifyDeadlineAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureModifyDeadlineAckIdsIsMutable(); modifyDeadlineAckIds_.set(index, value); onChanged(); return this; } /** - * - * *
      * List of acknowledgement IDs whose deadline will be modified based on the
      * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -1762,22 +1611,20 @@ public Builder setModifyDeadlineAckIds(int index, java.lang.String value) {
      * 
* * repeated string modify_deadline_ack_ids = 4; - * * @param value The modifyDeadlineAckIds to add. * @return This builder for chaining. */ - public Builder addModifyDeadlineAckIds(java.lang.String value) { + public Builder addModifyDeadlineAckIds( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureModifyDeadlineAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureModifyDeadlineAckIdsIsMutable(); modifyDeadlineAckIds_.add(value); onChanged(); return this; } /** - * - * *
      * List of acknowledgement IDs whose deadline will be modified based on the
      * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -1787,19 +1634,18 @@ public Builder addModifyDeadlineAckIds(java.lang.String value) {
      * 
* * repeated string modify_deadline_ack_ids = 4; - * * @param values The modifyDeadlineAckIds to add. * @return This builder for chaining. */ - public Builder addAllModifyDeadlineAckIds(java.lang.Iterable values) { + public Builder addAllModifyDeadlineAckIds( + java.lang.Iterable values) { ensureModifyDeadlineAckIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, modifyDeadlineAckIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, modifyDeadlineAckIds_); onChanged(); return this; } /** - * - * *
      * List of acknowledgement IDs whose deadline will be modified based on the
      * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -1809,7 +1655,6 @@ public Builder addAllModifyDeadlineAckIds(java.lang.Iterable v
      * 
* * repeated string modify_deadline_ack_ids = 4; - * * @return This builder for chaining. */ public Builder clearModifyDeadlineAckIds() { @@ -1819,8 +1664,6 @@ public Builder clearModifyDeadlineAckIds() { return this; } /** - * - * *
      * List of acknowledgement IDs whose deadline will be modified based on the
      * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -1830,25 +1673,23 @@ public Builder clearModifyDeadlineAckIds() {
      * 
* * repeated string modify_deadline_ack_ids = 4; - * * @param value The bytes of the modifyDeadlineAckIds to add. * @return This builder for chaining. */ - public Builder addModifyDeadlineAckIdsBytes(com.google.protobuf.ByteString value) { + public Builder addModifyDeadlineAckIdsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureModifyDeadlineAckIdsIsMutable(); modifyDeadlineAckIds_.add(value); onChanged(); return this; } - private int streamAckDeadlineSeconds_; + private int streamAckDeadlineSeconds_ ; /** - * - * *
      * Required. The ack deadline to use for the stream. This must be provided in
      * the first request on the stream, but it can also be updated on subsequent
@@ -1857,7 +1698,6 @@ public Builder addModifyDeadlineAckIdsBytes(com.google.protobuf.ByteString value
      * 
* * int32 stream_ack_deadline_seconds = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The streamAckDeadlineSeconds. */ @java.lang.Override @@ -1865,8 +1705,6 @@ public int getStreamAckDeadlineSeconds() { return streamAckDeadlineSeconds_; } /** - * - * *
      * Required. The ack deadline to use for the stream. This must be provided in
      * the first request on the stream, but it can also be updated on subsequent
@@ -1875,19 +1713,16 @@ public int getStreamAckDeadlineSeconds() {
      * 
* * int32 stream_ack_deadline_seconds = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The streamAckDeadlineSeconds to set. * @return This builder for chaining. */ public Builder setStreamAckDeadlineSeconds(int value) { - + streamAckDeadlineSeconds_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ack deadline to use for the stream. This must be provided in
      * the first request on the stream, but it can also be updated on subsequent
@@ -1896,11 +1731,10 @@ public Builder setStreamAckDeadlineSeconds(int value) {
      * 
* * int32 stream_ack_deadline_seconds = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearStreamAckDeadlineSeconds() { - + streamAckDeadlineSeconds_ = 0; onChanged(); return this; @@ -1908,8 +1742,6 @@ public Builder clearStreamAckDeadlineSeconds() { private java.lang.Object clientId_ = ""; /** - * - * *
      * A unique identifier that is used to distinguish client instances from each
      * other. Only needs to be provided on the initial request. When a stream
@@ -1920,13 +1752,13 @@ public Builder clearStreamAckDeadlineSeconds() {
      * 
* * string client_id = 6; - * * @return The clientId. */ public java.lang.String getClientId() { java.lang.Object ref = clientId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientId_ = s; return s; @@ -1935,8 +1767,6 @@ public java.lang.String getClientId() { } } /** - * - * *
      * A unique identifier that is used to distinguish client instances from each
      * other. Only needs to be provided on the initial request. When a stream
@@ -1947,14 +1777,15 @@ public java.lang.String getClientId() {
      * 
* * string client_id = 6; - * * @return The bytes for clientId. */ - public com.google.protobuf.ByteString getClientIdBytes() { + public com.google.protobuf.ByteString + getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clientId_ = b; return b; } else { @@ -1962,8 +1793,6 @@ public com.google.protobuf.ByteString getClientIdBytes() { } } /** - * - * *
      * A unique identifier that is used to distinguish client instances from each
      * other. Only needs to be provided on the initial request. When a stream
@@ -1974,22 +1803,20 @@ public com.google.protobuf.ByteString getClientIdBytes() {
      * 
* * string client_id = 6; - * * @param value The clientId to set. * @return This builder for chaining. */ - public Builder setClientId(java.lang.String value) { + public Builder setClientId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clientId_ = value; onChanged(); return this; } /** - * - * *
      * A unique identifier that is used to distinguish client instances from each
      * other. Only needs to be provided on the initial request. When a stream
@@ -2000,18 +1827,15 @@ public Builder setClientId(java.lang.String value) {
      * 
* * string client_id = 6; - * * @return This builder for chaining. */ public Builder clearClientId() { - + clientId_ = getDefaultInstance().getClientId(); onChanged(); return this; } /** - * - * *
      * A unique identifier that is used to distinguish client instances from each
      * other. Only needs to be provided on the initial request. When a stream
@@ -2022,25 +1846,23 @@ public Builder clearClientId() {
      * 
* * string client_id = 6; - * * @param value The bytes for clientId to set. * @return This builder for chaining. */ - public Builder setClientIdBytes(com.google.protobuf.ByteString value) { + public Builder setClientIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientId_ = value; onChanged(); return this; } - private long maxOutstandingMessages_; + private long maxOutstandingMessages_ ; /** - * - * *
      * Flow control settings for the maximum number of outstanding messages. When
      * there are `max_outstanding_messages` or more currently sent to the
@@ -2054,7 +1876,6 @@ public Builder setClientIdBytes(com.google.protobuf.ByteString value) {
      * 
* * int64 max_outstanding_messages = 7; - * * @return The maxOutstandingMessages. */ @java.lang.Override @@ -2062,8 +1883,6 @@ public long getMaxOutstandingMessages() { return maxOutstandingMessages_; } /** - * - * *
      * Flow control settings for the maximum number of outstanding messages. When
      * there are `max_outstanding_messages` or more currently sent to the
@@ -2077,19 +1896,16 @@ public long getMaxOutstandingMessages() {
      * 
* * int64 max_outstanding_messages = 7; - * * @param value The maxOutstandingMessages to set. * @return This builder for chaining. */ public Builder setMaxOutstandingMessages(long value) { - + maxOutstandingMessages_ = value; onChanged(); return this; } /** - * - * *
      * Flow control settings for the maximum number of outstanding messages. When
      * there are `max_outstanding_messages` or more currently sent to the
@@ -2103,20 +1919,17 @@ public Builder setMaxOutstandingMessages(long value) {
      * 
* * int64 max_outstanding_messages = 7; - * * @return This builder for chaining. */ public Builder clearMaxOutstandingMessages() { - + maxOutstandingMessages_ = 0L; onChanged(); return this; } - private long maxOutstandingBytes_; + private long maxOutstandingBytes_ ; /** - * - * *
      * Flow control settings for the maximum number of outstanding bytes. When
      * there are `max_outstanding_bytes` or more worth of messages currently sent
@@ -2130,7 +1943,6 @@ public Builder clearMaxOutstandingMessages() {
      * 
* * int64 max_outstanding_bytes = 8; - * * @return The maxOutstandingBytes. */ @java.lang.Override @@ -2138,8 +1950,6 @@ public long getMaxOutstandingBytes() { return maxOutstandingBytes_; } /** - * - * *
      * Flow control settings for the maximum number of outstanding bytes. When
      * there are `max_outstanding_bytes` or more worth of messages currently sent
@@ -2153,19 +1963,16 @@ public long getMaxOutstandingBytes() {
      * 
* * int64 max_outstanding_bytes = 8; - * * @param value The maxOutstandingBytes to set. * @return This builder for chaining. */ public Builder setMaxOutstandingBytes(long value) { - + maxOutstandingBytes_ = value; onChanged(); return this; } /** - * - * *
      * Flow control settings for the maximum number of outstanding bytes. When
      * there are `max_outstanding_bytes` or more worth of messages currently sent
@@ -2179,18 +1986,17 @@ public Builder setMaxOutstandingBytes(long value) {
      * 
* * int64 max_outstanding_bytes = 8; - * * @return This builder for chaining. */ public Builder clearMaxOutstandingBytes() { - + maxOutstandingBytes_ = 0L; 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); } @@ -2200,12 +2006,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.StreamingPullRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.StreamingPullRequest) private static final com.google.pubsub.v1.StreamingPullRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.StreamingPullRequest(); } @@ -2214,16 +2020,16 @@ public static com.google.pubsub.v1.StreamingPullRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingPullRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingPullRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingPullRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingPullRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2238,4 +2044,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.StreamingPullRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java similarity index 88% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index eca392820..fc77fa2d1 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; -public interface StreamingPullRequestOrBuilder - extends +public interface StreamingPullRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.StreamingPullRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The subscription for which to initialize the new stream. This
    * must be provided in the first request on the stream, and must not be set in
@@ -33,16 +15,11 @@ public interface StreamingPullRequestOrBuilder
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The subscription. */ java.lang.String getSubscription(); /** - * - * *
    * Required. The subscription for which to initialize the new stream. This
    * must be provided in the first request on the stream, and must not be set in
@@ -50,17 +27,13 @@ public interface StreamingPullRequestOrBuilder
    * Format is `projects/{project}/subscriptions/{sub}`.
    * 
* - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for subscription. */ - com.google.protobuf.ByteString getSubscriptionBytes(); + com.google.protobuf.ByteString + getSubscriptionBytes(); /** - * - * *
    * List of acknowledgement IDs for acknowledging previously received messages
    * (received on this stream or a different stream). If an ack ID has expired,
@@ -70,13 +43,11 @@ public interface StreamingPullRequestOrBuilder
    * 
* * repeated string ack_ids = 2; - * * @return A list containing the ackIds. */ - java.util.List getAckIdsList(); + java.util.List + getAckIdsList(); /** - * - * *
    * List of acknowledgement IDs for acknowledging previously received messages
    * (received on this stream or a different stream). If an ack ID has expired,
@@ -86,13 +57,10 @@ public interface StreamingPullRequestOrBuilder
    * 
* * repeated string ack_ids = 2; - * * @return The count of ackIds. */ int getAckIdsCount(); /** - * - * *
    * List of acknowledgement IDs for acknowledging previously received messages
    * (received on this stream or a different stream). If an ack ID has expired,
@@ -102,14 +70,11 @@ public interface StreamingPullRequestOrBuilder
    * 
* * repeated string ack_ids = 2; - * * @param index The index of the element to return. * @return The ackIds at the given index. */ java.lang.String getAckIds(int index); /** - * - * *
    * List of acknowledgement IDs for acknowledging previously received messages
    * (received on this stream or a different stream). If an ack ID has expired,
@@ -119,15 +84,13 @@ public interface StreamingPullRequestOrBuilder
    * 
* * repeated string ack_ids = 2; - * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. */ - com.google.protobuf.ByteString getAckIdsBytes(int index); + com.google.protobuf.ByteString + getAckIdsBytes(int index); /** - * - * *
    * The list of new ack deadlines for the IDs listed in
    * `modify_deadline_ack_ids`. The size of this list must be the same as the
@@ -143,13 +106,10 @@ public interface StreamingPullRequestOrBuilder
    * 
* * repeated int32 modify_deadline_seconds = 3; - * * @return A list containing the modifyDeadlineSeconds. */ java.util.List getModifyDeadlineSecondsList(); /** - * - * *
    * The list of new ack deadlines for the IDs listed in
    * `modify_deadline_ack_ids`. The size of this list must be the same as the
@@ -165,13 +125,10 @@ public interface StreamingPullRequestOrBuilder
    * 
* * repeated int32 modify_deadline_seconds = 3; - * * @return The count of modifyDeadlineSeconds. */ int getModifyDeadlineSecondsCount(); /** - * - * *
    * The list of new ack deadlines for the IDs listed in
    * `modify_deadline_ack_ids`. The size of this list must be the same as the
@@ -187,15 +144,12 @@ public interface StreamingPullRequestOrBuilder
    * 
* * repeated int32 modify_deadline_seconds = 3; - * * @param index The index of the element to return. * @return The modifyDeadlineSeconds at the given index. */ int getModifyDeadlineSeconds(int index); /** - * - * *
    * List of acknowledgement IDs whose deadline will be modified based on the
    * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -205,13 +159,11 @@ public interface StreamingPullRequestOrBuilder
    * 
* * repeated string modify_deadline_ack_ids = 4; - * * @return A list containing the modifyDeadlineAckIds. */ - java.util.List getModifyDeadlineAckIdsList(); + java.util.List + getModifyDeadlineAckIdsList(); /** - * - * *
    * List of acknowledgement IDs whose deadline will be modified based on the
    * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -221,13 +173,10 @@ public interface StreamingPullRequestOrBuilder
    * 
* * repeated string modify_deadline_ack_ids = 4; - * * @return The count of modifyDeadlineAckIds. */ int getModifyDeadlineAckIdsCount(); /** - * - * *
    * List of acknowledgement IDs whose deadline will be modified based on the
    * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -237,14 +186,11 @@ public interface StreamingPullRequestOrBuilder
    * 
* * repeated string modify_deadline_ack_ids = 4; - * * @param index The index of the element to return. * @return The modifyDeadlineAckIds at the given index. */ java.lang.String getModifyDeadlineAckIds(int index); /** - * - * *
    * List of acknowledgement IDs whose deadline will be modified based on the
    * corresponding element in `modify_deadline_seconds`. This field can be used
@@ -254,15 +200,13 @@ public interface StreamingPullRequestOrBuilder
    * 
* * repeated string modify_deadline_ack_ids = 4; - * * @param index The index of the value to return. * @return The bytes of the modifyDeadlineAckIds at the given index. */ - com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index); + com.google.protobuf.ByteString + getModifyDeadlineAckIdsBytes(int index); /** - * - * *
    * Required. The ack deadline to use for the stream. This must be provided in
    * the first request on the stream, but it can also be updated on subsequent
@@ -271,14 +215,11 @@ public interface StreamingPullRequestOrBuilder
    * 
* * int32 stream_ack_deadline_seconds = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The streamAckDeadlineSeconds. */ int getStreamAckDeadlineSeconds(); /** - * - * *
    * A unique identifier that is used to distinguish client instances from each
    * other. Only needs to be provided on the initial request. When a stream
@@ -289,13 +230,10 @@ public interface StreamingPullRequestOrBuilder
    * 
* * string client_id = 6; - * * @return The clientId. */ java.lang.String getClientId(); /** - * - * *
    * A unique identifier that is used to distinguish client instances from each
    * other. Only needs to be provided on the initial request. When a stream
@@ -306,14 +244,12 @@ public interface StreamingPullRequestOrBuilder
    * 
* * string client_id = 6; - * * @return The bytes for clientId. */ - com.google.protobuf.ByteString getClientIdBytes(); + com.google.protobuf.ByteString + getClientIdBytes(); /** - * - * *
    * Flow control settings for the maximum number of outstanding messages. When
    * there are `max_outstanding_messages` or more currently sent to the
@@ -327,14 +263,11 @@ public interface StreamingPullRequestOrBuilder
    * 
* * int64 max_outstanding_messages = 7; - * * @return The maxOutstandingMessages. */ long getMaxOutstandingMessages(); /** - * - * *
    * Flow control settings for the maximum number of outstanding bytes. When
    * there are `max_outstanding_bytes` or more worth of messages currently sent
@@ -348,7 +281,6 @@ public interface StreamingPullRequestOrBuilder
    * 
* * int64 max_outstanding_bytes = 8; - * * @return The maxOutstandingBytes. */ long getMaxOutstandingBytes(); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java similarity index 69% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 2183582d4..146ac1992 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Response for the `StreamingPull` method. This response is used to stream
  * messages from the server to the client.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.pubsub.v1.StreamingPullResponse}
  */
-public final class StreamingPullResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class StreamingPullResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse)
     StreamingPullResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use StreamingPullResponse.newBuilder() to construct.
   private StreamingPullResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private StreamingPullResponse() {
     receivedMessages_ = 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 StreamingPullResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private StreamingPullResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,48 +55,42 @@ private StreamingPullResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                receivedMessages_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              receivedMessages_.add(
-                  input.readMessage(
-                      com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              receivedMessages_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 34:
-            {
-              com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder subBuilder =
-                  null;
-              if (subscriptionProperties_ != null) {
-                subBuilder = subscriptionProperties_.toBuilder();
-              }
-              subscriptionProperties_ =
-                  input.readMessage(
-                      com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(subscriptionProperties_);
-                subscriptionProperties_ = subBuilder.buildPartial();
-              }
-
-              break;
+            receivedMessages_.add(
+                input.readMessage(com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry));
+            break;
+          }
+          case 34: {
+            com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder subBuilder = null;
+            if (subscriptionProperties_ != null) {
+              subBuilder = subscriptionProperties_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            subscriptionProperties_ = input.readMessage(com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(subscriptionProperties_);
+              subscriptionProperties_ = subBuilder.buildPartial();
             }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         receivedMessages_ = java.util.Collections.unmodifiableList(receivedMessages_);
@@ -122,72 +99,64 @@ private StreamingPullResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.pubsub.v1.PubsubProto
-        .internal_static_google_pubsub_v1_StreamingPullResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.pubsub.v1.PubsubProto
-        .internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable
+    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.pubsub.v1.StreamingPullResponse.class,
-            com.google.pubsub.v1.StreamingPullResponse.Builder.class);
+            com.google.pubsub.v1.StreamingPullResponse.class, com.google.pubsub.v1.StreamingPullResponse.Builder.class);
   }
 
-  public interface SubscriptionPropertiesOrBuilder
-      extends
+  public interface SubscriptionPropertiesOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * True iff message ordering is enabled for this subscription.
      * 
* * bool message_ordering_enabled = 2; - * * @return The messageOrderingEnabled. */ boolean getMessageOrderingEnabled(); } /** - * - * *
    * Subscription properties sent as part of the response.
    * 
* * Protobuf type {@code google.pubsub.v1.StreamingPullResponse.SubscriptionProperties} */ - public static final class SubscriptionProperties extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SubscriptionProperties extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) SubscriptionPropertiesOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SubscriptionProperties.newBuilder() to construct. private SubscriptionProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SubscriptionProperties() {} + private SubscriptionProperties() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SubscriptionProperties(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SubscriptionProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -206,56 +175,51 @@ private SubscriptionProperties( case 0: done = true; break; - case 16: - { - messageOrderingEnabled_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 16: { + + messageOrderingEnabled_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.class, - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder.class); + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.class, com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder.class); } public static final int MESSAGE_ORDERING_ENABLED_FIELD_NUMBER = 2; private boolean messageOrderingEnabled_; /** - * - * *
      * True iff message ordering is enabled for this subscription.
      * 
* * bool message_ordering_enabled = 2; - * * @return The messageOrderingEnabled. */ @java.lang.Override @@ -264,7 +228,6 @@ public boolean getMessageOrderingEnabled() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -276,7 +239,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 (messageOrderingEnabled_ != false) { output.writeBool(2, messageOrderingEnabled_); } @@ -290,7 +254,8 @@ public int getSerializedSize() { size = 0; if (messageOrderingEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, messageOrderingEnabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, messageOrderingEnabled_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -300,15 +265,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.pubsub.v1.StreamingPullResponse.SubscriptionProperties)) { return super.equals(obj); } - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties other = - (com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) obj; + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties other = (com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) obj; - if (getMessageOrderingEnabled() != other.getMessageOrderingEnabled()) return false; + if (getMessageOrderingEnabled() + != other.getMessageOrderingEnabled()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -321,102 +286,95 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MESSAGE_ORDERING_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMessageOrderingEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getMessageOrderingEnabled()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties - 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.pubsub.v1.StreamingPullResponse.SubscriptionProperties 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.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties prototype) { + public static Builder newBuilder(com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -426,49 +384,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Subscription properties sent as part of the response.
      * 
* * Protobuf type {@code google.pubsub.v1.StreamingPullResponse.SubscriptionProperties} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.class, - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder.class); + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.class, com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder.class); } - // Construct using - // com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.newBuilder() + // Construct using com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -478,16 +431,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; } @java.lang.Override - public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties - getDefaultInstanceForType() { - return com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties - .getDefaultInstance(); + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties getDefaultInstanceForType() { + return com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.getDefaultInstance(); } @java.lang.Override @@ -501,8 +452,7 @@ public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties build() @java.lang.Override public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties buildPartial() { - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties result = - new com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties(this); + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties result = new com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties(this); result.messageOrderingEnabled_ = messageOrderingEnabled_; onBuilt(); return result; @@ -512,53 +462,46 @@ public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.pubsub.v1.StreamingPullResponse.SubscriptionProperties) { - return mergeFrom( - (com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) other); + return mergeFrom((com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties other) { - if (other - == com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties other) { + if (other == com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.getDefaultInstance()) return this; if (other.getMessageOrderingEnabled() != false) { setMessageOrderingEnabled(other.getMessageOrderingEnabled()); } @@ -581,9 +524,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) - e.getUnfinishedMessage(); + parsedMessage = (com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -593,16 +534,13 @@ public Builder mergeFrom( return this; } - private boolean messageOrderingEnabled_; + private boolean messageOrderingEnabled_ ; /** - * - * *
        * True iff message ordering is enabled for this subscription.
        * 
* * bool message_ordering_enabled = 2; - * * @return The messageOrderingEnabled. */ @java.lang.Override @@ -610,41 +548,34 @@ public boolean getMessageOrderingEnabled() { return messageOrderingEnabled_; } /** - * - * *
        * True iff message ordering is enabled for this subscription.
        * 
* * bool message_ordering_enabled = 2; - * * @param value The messageOrderingEnabled to set. * @return This builder for chaining. */ public Builder setMessageOrderingEnabled(boolean value) { - + messageOrderingEnabled_ = value; onChanged(); return this; } /** - * - * *
        * True iff message ordering is enabled for this subscription.
        * 
* * bool message_ordering_enabled = 2; - * * @return This builder for chaining. */ public Builder clearMessageOrderingEnabled() { - + messageOrderingEnabled_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -657,32 +588,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) - private static final com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties - DEFAULT_INSTANCE; - + private static final com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties(); } - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties - getDefaultInstance() { + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubscriptionProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubscriptionProperties(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubscriptionProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubscriptionProperties(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -694,17 +623,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties - getDefaultInstanceForType() { + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int RECEIVED_MESSAGES_FIELD_NUMBER = 1; private java.util.List receivedMessages_; /** - * - * *
    * Received Pub/Sub messages. This will not be empty.
    * 
@@ -716,8 +643,6 @@ public java.util.List getReceivedMessagesL return receivedMessages_; } /** - * - * *
    * Received Pub/Sub messages. This will not be empty.
    * 
@@ -725,13 +650,11 @@ public java.util.List getReceivedMessagesL * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ @java.lang.Override - public java.util.List + public java.util.List getReceivedMessagesOrBuilderList() { return receivedMessages_; } /** - * - * *
    * Received Pub/Sub messages. This will not be empty.
    * 
@@ -743,8 +666,6 @@ public int getReceivedMessagesCount() { return receivedMessages_.size(); } /** - * - * *
    * Received Pub/Sub messages. This will not be empty.
    * 
@@ -756,8 +677,6 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { return receivedMessages_.get(index); } /** - * - * *
    * Received Pub/Sub messages. This will not be empty.
    * 
@@ -765,23 +684,19 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ @java.lang.Override - public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index) { + public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder( + int index) { return receivedMessages_.get(index); } public static final int SUBSCRIPTION_PROPERTIES_FIELD_NUMBER = 4; private com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscriptionProperties_; /** - * - * *
    * Properties associated with this subscription.
    * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; * @return Whether the subscriptionProperties field is set. */ @java.lang.Override @@ -789,44 +704,30 @@ public boolean hasSubscriptionProperties() { return subscriptionProperties_ != null; } /** - * - * *
    * Properties associated with this subscription.
    * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; * @return The subscriptionProperties. */ @java.lang.Override - public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties - getSubscriptionProperties() { - return subscriptionProperties_ == null - ? com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.getDefaultInstance() - : subscriptionProperties_; + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties getSubscriptionProperties() { + return subscriptionProperties_ == null ? com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.getDefaultInstance() : subscriptionProperties_; } /** - * - * *
    * Properties associated with this subscription.
    * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; */ @java.lang.Override - public com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder - getSubscriptionPropertiesOrBuilder() { + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder getSubscriptionPropertiesOrBuilder() { return getSubscriptionProperties(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -838,7 +739,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 < receivedMessages_.size(); i++) { output.writeMessage(1, receivedMessages_.get(i)); } @@ -855,11 +757,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < receivedMessages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, receivedMessages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, receivedMessages_.get(i)); } if (subscriptionProperties_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSubscriptionProperties()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getSubscriptionProperties()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -869,18 +772,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.pubsub.v1.StreamingPullResponse)) { return super.equals(obj); } - com.google.pubsub.v1.StreamingPullResponse other = - (com.google.pubsub.v1.StreamingPullResponse) obj; + com.google.pubsub.v1.StreamingPullResponse other = (com.google.pubsub.v1.StreamingPullResponse) obj; - if (!getReceivedMessagesList().equals(other.getReceivedMessagesList())) return false; + if (!getReceivedMessagesList() + .equals(other.getReceivedMessagesList())) return false; if (hasSubscriptionProperties() != other.hasSubscriptionProperties()) return false; if (hasSubscriptionProperties()) { - if (!getSubscriptionProperties().equals(other.getSubscriptionProperties())) return false; + if (!getSubscriptionProperties() + .equals(other.getSubscriptionProperties())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -906,104 +810,97 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.StreamingPullResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.StreamingPullResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.StreamingPullResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.StreamingPullResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.StreamingPullResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.StreamingPullResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.StreamingPullResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.StreamingPullResponse 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.pubsub.v1.StreamingPullResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.pubsub.v1.StreamingPullResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.StreamingPullResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.StreamingPullResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.StreamingPullResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.StreamingPullResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.StreamingPullResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 the `StreamingPull` method. This response is used to stream
    * messages from the server to the client.
@@ -1011,23 +908,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.pubsub.v1.StreamingPullResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.pubsub.v1.StreamingPullResponse)
       com.google.pubsub.v1.StreamingPullResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.pubsub.v1.PubsubProto
-          .internal_static_google_pubsub_v1_StreamingPullResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.pubsub.v1.PubsubProto
-          .internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable
+      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.pubsub.v1.StreamingPullResponse.class,
-              com.google.pubsub.v1.StreamingPullResponse.Builder.class);
+              com.google.pubsub.v1.StreamingPullResponse.class, com.google.pubsub.v1.StreamingPullResponse.Builder.class);
     }
 
     // Construct using com.google.pubsub.v1.StreamingPullResponse.newBuilder()
@@ -1035,17 +930,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) {
         getReceivedMessagesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1065,9 +960,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.pubsub.v1.PubsubProto
-          .internal_static_google_pubsub_v1_StreamingPullResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_descriptor;
     }
 
     @java.lang.Override
@@ -1086,8 +981,7 @@ public com.google.pubsub.v1.StreamingPullResponse build() {
 
     @java.lang.Override
     public com.google.pubsub.v1.StreamingPullResponse buildPartial() {
-      com.google.pubsub.v1.StreamingPullResponse result =
-          new com.google.pubsub.v1.StreamingPullResponse(this);
+      com.google.pubsub.v1.StreamingPullResponse result = new com.google.pubsub.v1.StreamingPullResponse(this);
       int from_bitField0_ = bitField0_;
       if (receivedMessagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -1111,39 +1005,38 @@ public com.google.pubsub.v1.StreamingPullResponse 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.pubsub.v1.StreamingPullResponse) {
-        return mergeFrom((com.google.pubsub.v1.StreamingPullResponse) other);
+        return mergeFrom((com.google.pubsub.v1.StreamingPullResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1170,10 +1063,9 @@ public Builder mergeFrom(com.google.pubsub.v1.StreamingPullResponse other) {
             receivedMessagesBuilder_ = null;
             receivedMessages_ = other.receivedMessages_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            receivedMessagesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getReceivedMessagesFieldBuilder()
-                    : null;
+            receivedMessagesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getReceivedMessagesFieldBuilder() : null;
           } else {
             receivedMessagesBuilder_.addAllMessages(other.receivedMessages_);
           }
@@ -1210,29 +1102,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List receivedMessages_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureReceivedMessagesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        receivedMessages_ =
-            new java.util.ArrayList(receivedMessages_);
+        receivedMessages_ = new java.util.ArrayList(receivedMessages_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.pubsub.v1.ReceivedMessage,
-            com.google.pubsub.v1.ReceivedMessage.Builder,
-            com.google.pubsub.v1.ReceivedMessageOrBuilder>
-        receivedMessagesBuilder_;
+        com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder> receivedMessagesBuilder_;
 
     /**
-     *
-     *
      * 
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -1247,8 +1131,6 @@ public java.util.List getReceivedMessagesL } } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -1263,8 +1145,6 @@ public int getReceivedMessagesCount() { } } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -1279,15 +1159,14 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { } } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - public Builder setReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessage value) { + public Builder setReceivedMessages( + int index, com.google.pubsub.v1.ReceivedMessage value) { if (receivedMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1301,8 +1180,6 @@ public Builder setReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa return this; } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -1321,8 +1198,6 @@ public Builder setReceivedMessages( return this; } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -1343,15 +1218,14 @@ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { return this; } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - public Builder addReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessage value) { + public Builder addReceivedMessages( + int index, com.google.pubsub.v1.ReceivedMessage value) { if (receivedMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1365,8 +1239,6 @@ public Builder addReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa return this; } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -1385,8 +1257,6 @@ public Builder addReceivedMessages( return this; } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -1405,8 +1275,6 @@ public Builder addReceivedMessages( return this; } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -1417,7 +1285,8 @@ public Builder addAllReceivedMessages( java.lang.Iterable values) { if (receivedMessagesBuilder_ == null) { ensureReceivedMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, receivedMessages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, receivedMessages_); onChanged(); } else { receivedMessagesBuilder_.addAllMessages(values); @@ -1425,8 +1294,6 @@ public Builder addAllReceivedMessages( return this; } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -1444,8 +1311,6 @@ public Builder clearReceivedMessages() { return this; } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -1463,44 +1328,39 @@ public Builder removeReceivedMessages(int index) { return this; } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(int index) { + public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder( + int index) { return getReceivedMessagesFieldBuilder().getBuilder(index); } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index) { + public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder( + int index) { if (receivedMessagesBuilder_ == null) { - return receivedMessages_.get(index); - } else { + return receivedMessages_.get(index); } else { return receivedMessagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - public java.util.List - getReceivedMessagesOrBuilderList() { + public java.util.List + getReceivedMessagesOrBuilderList() { if (receivedMessagesBuilder_ != null) { return receivedMessagesBuilder_.getMessageOrBuilderList(); } else { @@ -1508,8 +1368,6 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde } } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
@@ -1517,47 +1375,38 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() { - return getReceivedMessagesFieldBuilder() - .addBuilder(com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); + return getReceivedMessagesFieldBuilder().addBuilder( + com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(int index) { - return getReceivedMessagesFieldBuilder() - .addBuilder(index, com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); + public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder( + int index) { + return getReceivedMessagesFieldBuilder().addBuilder( + index, com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); } /** - * - * *
      * Received Pub/Sub messages. This will not be empty.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - public java.util.List - getReceivedMessagesBuilderList() { + public java.util.List + getReceivedMessagesBuilderList() { return getReceivedMessagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.ReceivedMessage, - com.google.pubsub.v1.ReceivedMessage.Builder, - com.google.pubsub.v1.ReceivedMessageOrBuilder> + com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder> getReceivedMessagesFieldBuilder() { if (receivedMessagesBuilder_ == null) { - receivedMessagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.ReceivedMessage, - com.google.pubsub.v1.ReceivedMessage.Builder, - com.google.pubsub.v1.ReceivedMessageOrBuilder>( + receivedMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder>( receivedMessages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1567,65 +1416,43 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i return receivedMessagesBuilder_; } - private com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties - subscriptionProperties_; + private com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscriptionProperties_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties, - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder, - com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder> - subscriptionPropertiesBuilder_; + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties, com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder, com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder> subscriptionPropertiesBuilder_; /** - * - * *
      * Properties associated with this subscription.
      * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; * @return Whether the subscriptionProperties field is set. */ public boolean hasSubscriptionProperties() { return subscriptionPropertiesBuilder_ != null || subscriptionProperties_ != null; } /** - * - * *
      * Properties associated with this subscription.
      * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; * @return The subscriptionProperties. */ - public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties - getSubscriptionProperties() { + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties getSubscriptionProperties() { if (subscriptionPropertiesBuilder_ == null) { - return subscriptionProperties_ == null - ? com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.getDefaultInstance() - : subscriptionProperties_; + return subscriptionProperties_ == null ? com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.getDefaultInstance() : subscriptionProperties_; } else { return subscriptionPropertiesBuilder_.getMessage(); } } /** - * - * *
      * Properties associated with this subscription.
      * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; */ - public Builder setSubscriptionProperties( - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties value) { + public Builder setSubscriptionProperties(com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties value) { if (subscriptionPropertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1639,15 +1466,11 @@ public Builder setSubscriptionProperties( return this; } /** - * - * *
      * Properties associated with this subscription.
      * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; */ public Builder setSubscriptionProperties( com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder builderForValue) { @@ -1661,25 +1484,17 @@ public Builder setSubscriptionProperties( return this; } /** - * - * *
      * Properties associated with this subscription.
      * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; */ - public Builder mergeSubscriptionProperties( - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties value) { + public Builder mergeSubscriptionProperties(com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties value) { if (subscriptionPropertiesBuilder_ == null) { if (subscriptionProperties_ != null) { subscriptionProperties_ = - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.newBuilder( - subscriptionProperties_) - .mergeFrom(value) - .buildPartial(); + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.newBuilder(subscriptionProperties_).mergeFrom(value).buildPartial(); } else { subscriptionProperties_ = value; } @@ -1691,15 +1506,11 @@ public Builder mergeSubscriptionProperties( return this; } /** - * - * *
      * Properties associated with this subscription.
      * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; */ public Builder clearSubscriptionProperties() { if (subscriptionPropertiesBuilder_ == null) { @@ -1713,73 +1524,55 @@ public Builder clearSubscriptionProperties() { return this; } /** - * - * *
      * Properties associated with this subscription.
      * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; */ - public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder - getSubscriptionPropertiesBuilder() { - + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder getSubscriptionPropertiesBuilder() { + onChanged(); return getSubscriptionPropertiesFieldBuilder().getBuilder(); } /** - * - * *
      * Properties associated with this subscription.
      * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; */ - public com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder - getSubscriptionPropertiesOrBuilder() { + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder getSubscriptionPropertiesOrBuilder() { if (subscriptionPropertiesBuilder_ != null) { return subscriptionPropertiesBuilder_.getMessageOrBuilder(); } else { - return subscriptionProperties_ == null - ? com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.getDefaultInstance() - : subscriptionProperties_; + return subscriptionProperties_ == null ? + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.getDefaultInstance() : subscriptionProperties_; } } /** - * - * *
      * Properties associated with this subscription.
      * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties, - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder, - com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder> + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties, com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder, com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder> getSubscriptionPropertiesFieldBuilder() { if (subscriptionPropertiesBuilder_ == null) { - subscriptionPropertiesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties, - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder, - com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder>( - getSubscriptionProperties(), getParentForChildren(), isClean()); + subscriptionPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties, com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder, com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder>( + getSubscriptionProperties(), + getParentForChildren(), + isClean()); subscriptionProperties_ = null; } return subscriptionPropertiesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1789,12 +1582,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.StreamingPullResponse) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.StreamingPullResponse) private static final com.google.pubsub.v1.StreamingPullResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.StreamingPullResponse(); } @@ -1803,16 +1596,16 @@ public static com.google.pubsub.v1.StreamingPullResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingPullResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingPullResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingPullResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingPullResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1827,4 +1620,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.StreamingPullResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java similarity index 61% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index acaeb4240..dbe121c96 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; -public interface StreamingPullResponseOrBuilder - extends +public interface StreamingPullResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.StreamingPullResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Received Pub/Sub messages. This will not be empty.
    * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - java.util.List getReceivedMessagesList(); + java.util.List + getReceivedMessagesList(); /** - * - * *
    * Received Pub/Sub messages. This will not be empty.
    * 
@@ -44,8 +25,6 @@ public interface StreamingPullResponseOrBuilder */ com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index); /** - * - * *
    * Received Pub/Sub messages. This will not be empty.
    * 
@@ -54,66 +33,48 @@ public interface StreamingPullResponseOrBuilder */ int getReceivedMessagesCount(); /** - * - * *
    * Received Pub/Sub messages. This will not be empty.
    * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - java.util.List + java.util.List getReceivedMessagesOrBuilderList(); /** - * - * *
    * Received Pub/Sub messages. This will not be empty.
    * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index); + com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder( + int index); /** - * - * *
    * Properties associated with this subscription.
    * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; * @return Whether the subscriptionProperties field is set. */ boolean hasSubscriptionProperties(); /** - * - * *
    * Properties associated with this subscription.
    * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; * @return The subscriptionProperties. */ com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties getSubscriptionProperties(); /** - * - * *
    * Properties associated with this subscription.
    * 
* - * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; */ - com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder - getSubscriptionPropertiesOrBuilder(); + com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder getSubscriptionPropertiesOrBuilder(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java similarity index 77% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index a4e0edaa8..24a8aeea0 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * A subscription resource.
  * 
* * Protobuf type {@code google.pubsub.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.pubsub.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,15 +27,16 @@ private Subscription() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Subscription(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Subscription( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,202 +56,182 @@ private Subscription( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - topic_ = s; - break; - } - case 34: - { - com.google.pubsub.v1.PushConfig.Builder subBuilder = null; - if (pushConfig_ != null) { - subBuilder = pushConfig_.toBuilder(); - } - pushConfig_ = - input.readMessage(com.google.pubsub.v1.PushConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pushConfig_); - pushConfig_ = subBuilder.buildPartial(); - } - - break; + topic_ = s; + break; + } + case 34: { + com.google.pubsub.v1.PushConfig.Builder subBuilder = null; + if (pushConfig_ != null) { + subBuilder = pushConfig_.toBuilder(); } - case 40: - { - ackDeadlineSeconds_ = input.readInt32(); - break; + pushConfig_ = input.readMessage(com.google.pubsub.v1.PushConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pushConfig_); + pushConfig_ = subBuilder.buildPartial(); } - case 56: - { - retainAckedMessages_ = input.readBool(); - break; + + break; + } + case 40: { + + ackDeadlineSeconds_ = input.readInt32(); + break; + } + case 56: { + + retainAckedMessages_ = input.readBool(); + break; + } + case 66: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (messageRetentionDuration_ != null) { + subBuilder = messageRetentionDuration_.toBuilder(); } - case 66: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (messageRetentionDuration_ != null) { - subBuilder = messageRetentionDuration_.toBuilder(); - } - messageRetentionDuration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(messageRetentionDuration_); - messageRetentionDuration_ = subBuilder.buildPartial(); - } - - break; + messageRetentionDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(messageRetentionDuration_); + messageRetentionDuration_ = subBuilder.buildPartial(); } - case 74: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 80: - { - enableMessageOrdering_ = input.readBool(); - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 80: { + + enableMessageOrdering_ = input.readBool(); + break; + } + case 90: { + com.google.pubsub.v1.ExpirationPolicy.Builder subBuilder = null; + if (expirationPolicy_ != null) { + subBuilder = expirationPolicy_.toBuilder(); } - case 90: - { - com.google.pubsub.v1.ExpirationPolicy.Builder subBuilder = null; - if (expirationPolicy_ != null) { - subBuilder = expirationPolicy_.toBuilder(); - } - expirationPolicy_ = - input.readMessage( - com.google.pubsub.v1.ExpirationPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expirationPolicy_); - expirationPolicy_ = subBuilder.buildPartial(); - } - - break; + expirationPolicy_ = input.readMessage(com.google.pubsub.v1.ExpirationPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expirationPolicy_); + expirationPolicy_ = subBuilder.buildPartial(); } - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 106: { + com.google.pubsub.v1.DeadLetterPolicy.Builder subBuilder = null; + if (deadLetterPolicy_ != null) { + subBuilder = deadLetterPolicy_.toBuilder(); } - case 106: - { - com.google.pubsub.v1.DeadLetterPolicy.Builder subBuilder = null; - if (deadLetterPolicy_ != null) { - subBuilder = deadLetterPolicy_.toBuilder(); - } - deadLetterPolicy_ = - input.readMessage( - com.google.pubsub.v1.DeadLetterPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deadLetterPolicy_); - deadLetterPolicy_ = subBuilder.buildPartial(); - } - - break; + deadLetterPolicy_ = input.readMessage(com.google.pubsub.v1.DeadLetterPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deadLetterPolicy_); + deadLetterPolicy_ = subBuilder.buildPartial(); + } + + break; + } + case 114: { + com.google.pubsub.v1.RetryPolicy.Builder subBuilder = null; + if (retryPolicy_ != null) { + subBuilder = retryPolicy_.toBuilder(); } - case 114: - { - com.google.pubsub.v1.RetryPolicy.Builder subBuilder = null; - if (retryPolicy_ != null) { - subBuilder = retryPolicy_.toBuilder(); - } - retryPolicy_ = - input.readMessage(com.google.pubsub.v1.RetryPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(retryPolicy_); - retryPolicy_ = subBuilder.buildPartial(); - } - - break; + retryPolicy_ = input.readMessage(com.google.pubsub.v1.RetryPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(retryPolicy_); + retryPolicy_ = subBuilder.buildPartial(); } - case 120: - { - detached_ = input.readBool(); - break; + + break; + } + case 120: { + + detached_ = input.readBool(); + break; + } + case 138: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (topicMessageRetentionDuration_ != null) { + subBuilder = topicMessageRetentionDuration_.toBuilder(); } - case 138: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (topicMessageRetentionDuration_ != null) { - subBuilder = topicMessageRetentionDuration_.toBuilder(); - } - topicMessageRetentionDuration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(topicMessageRetentionDuration_); - topicMessageRetentionDuration_ = subBuilder.buildPartial(); - } - - break; + topicMessageRetentionDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(topicMessageRetentionDuration_); + topicMessageRetentionDuration_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_Subscription_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 9: return internalGetLabels(); 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.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_Subscription_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.Subscription.class, - com.google.pubsub.v1.Subscription.Builder.class); + com.google.pubsub.v1.Subscription.class, com.google.pubsub.v1.Subscription.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the subscription. It must have the format
    * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -279,7 +242,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -288,15 +250,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; } } /** - * - * *
    * Required. The name of the subscription. It must have the format
    * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -307,15 +268,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -326,18 +288,13 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int TOPIC_FIELD_NUMBER = 2; private volatile java.lang.Object topic_; /** - * - * *
    * Required. The name of the topic from which this subscription is receiving
    * messages. Format is `projects/{project}/topics/{topic}`. The value of this
    * field will be `_deleted-topic_` if the topic has been deleted.
    * 
* - * - * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The topic. */ @java.lang.Override @@ -346,33 +303,31 @@ public java.lang.String getTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; } } /** - * - * *
    * Required. The name of the topic from which this subscription is receiving
    * messages. Format is `projects/{project}/topics/{topic}`. The value of this
    * field will be `_deleted-topic_` if the topic has been deleted.
    * 
* - * - * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 2 [(.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 { @@ -383,8 +338,6 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int PUSH_CONFIG_FIELD_NUMBER = 4; private com.google.pubsub.v1.PushConfig pushConfig_; /** - * - * *
    * If push delivery is used with this subscription, this field is
    * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -392,7 +345,6 @@ public com.google.protobuf.ByteString getTopicBytes() {
    * 
* * .google.pubsub.v1.PushConfig push_config = 4; - * * @return Whether the pushConfig field is set. */ @java.lang.Override @@ -400,8 +352,6 @@ public boolean hasPushConfig() { return pushConfig_ != null; } /** - * - * *
    * If push delivery is used with this subscription, this field is
    * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -409,7 +359,6 @@ public boolean hasPushConfig() {
    * 
* * .google.pubsub.v1.PushConfig push_config = 4; - * * @return The pushConfig. */ @java.lang.Override @@ -417,8 +366,6 @@ public com.google.pubsub.v1.PushConfig getPushConfig() { return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_; } /** - * - * *
    * If push delivery is used with this subscription, this field is
    * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -435,8 +382,6 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() {
   public static final int ACK_DEADLINE_SECONDS_FIELD_NUMBER = 5;
   private int ackDeadlineSeconds_;
   /**
-   *
-   *
    * 
    * The approximate amount of time (on a best-effort basis) Pub/Sub waits for
    * the subscriber to acknowledge receipt before resending the message. In the
@@ -458,7 +403,6 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() {
    * 
* * int32 ack_deadline_seconds = 5; - * * @return The ackDeadlineSeconds. */ @java.lang.Override @@ -469,8 +413,6 @@ public int getAckDeadlineSeconds() { public static final int RETAIN_ACKED_MESSAGES_FIELD_NUMBER = 7; private boolean retainAckedMessages_; /** - * - * *
    * Indicates whether to retain acknowledged messages. If true, then
    * messages are not expunged from the subscription's backlog, even if they are
@@ -481,7 +423,6 @@ public int getAckDeadlineSeconds() {
    * 
* * bool retain_acked_messages = 7; - * * @return The retainAckedMessages. */ @java.lang.Override @@ -492,8 +433,6 @@ public boolean getRetainAckedMessages() { public static final int MESSAGE_RETENTION_DURATION_FIELD_NUMBER = 8; private com.google.protobuf.Duration messageRetentionDuration_; /** - * - * *
    * How long to retain unacknowledged messages in the subscription's backlog,
    * from the moment a message is published.
@@ -504,7 +443,6 @@ public boolean getRetainAckedMessages() {
    * 
* * .google.protobuf.Duration message_retention_duration = 8; - * * @return Whether the messageRetentionDuration field is set. */ @java.lang.Override @@ -512,8 +450,6 @@ public boolean hasMessageRetentionDuration() { return messageRetentionDuration_ != null; } /** - * - * *
    * How long to retain unacknowledged messages in the subscription's backlog,
    * from the moment a message is published.
@@ -524,18 +460,13 @@ public boolean hasMessageRetentionDuration() {
    * 
* * .google.protobuf.Duration message_retention_duration = 8; - * * @return The messageRetentionDuration. */ @java.lang.Override public com.google.protobuf.Duration getMessageRetentionDuration() { - return messageRetentionDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : messageRetentionDuration_; + return messageRetentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : messageRetentionDuration_; } /** - * - * *
    * How long to retain unacknowledged messages in the subscription's backlog,
    * from the moment a message is published.
@@ -553,23 +484,24 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde
   }
 
   public static final int LABELS_FIELD_NUMBER = 9;
-
   private static final class LabelsDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry defaultEntry =
-        com.google.protobuf.MapEntry.newDefaultInstance(
-            com.google.pubsub.v1.PubsubProto
-                .internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor,
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "",
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "");
-  }
-
-  private com.google.protobuf.MapField labels_;
-
-  private com.google.protobuf.MapField internalGetLabels() {
+    static final com.google.protobuf.MapEntry<
+        java.lang.String, java.lang.String> defaultEntry =
+            com.google.protobuf.MapEntry
+            .newDefaultInstance(
+                com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "");
+  }
+  private com.google.protobuf.MapField<
+      java.lang.String, java.lang.String> labels_;
+  private com.google.protobuf.MapField
+  internalGetLabels() {
     if (labels_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          LabelsDefaultEntryHolder.defaultEntry);
     }
     return labels_;
   }
@@ -578,8 +510,6 @@ public int getLabelsCount() {
     return internalGetLabels().getMap().size();
   }
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -587,22 +517,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 9;
    */
+
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -611,12 +541,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 9;
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -625,16 +554,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 9;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -643,11 +572,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 9;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -657,8 +587,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int ENABLE_MESSAGE_ORDERING_FIELD_NUMBER = 10;
   private boolean enableMessageOrdering_;
   /**
-   *
-   *
    * 
    * If true, messages published with the same `ordering_key` in `PubsubMessage`
    * will be delivered to the subscribers in the order in which they
@@ -667,7 +595,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * 
* * bool enable_message_ordering = 10; - * * @return The enableMessageOrdering. */ @java.lang.Override @@ -678,8 +605,6 @@ public boolean getEnableMessageOrdering() { public static final int EXPIRATION_POLICY_FIELD_NUMBER = 11; private com.google.pubsub.v1.ExpirationPolicy expirationPolicy_; /** - * - * *
    * A policy that specifies the conditions for this subscription's expiration.
    * A subscription is considered active as long as any connected subscriber is
@@ -690,7 +615,6 @@ public boolean getEnableMessageOrdering() {
    * 
* * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; - * * @return Whether the expirationPolicy field is set. */ @java.lang.Override @@ -698,8 +622,6 @@ public boolean hasExpirationPolicy() { return expirationPolicy_ != null; } /** - * - * *
    * A policy that specifies the conditions for this subscription's expiration.
    * A subscription is considered active as long as any connected subscriber is
@@ -710,18 +632,13 @@ public boolean hasExpirationPolicy() {
    * 
* * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; - * * @return The expirationPolicy. */ @java.lang.Override public com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy() { - return expirationPolicy_ == null - ? com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance() - : expirationPolicy_; + return expirationPolicy_ == null ? com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance() : expirationPolicy_; } /** - * - * *
    * A policy that specifies the conditions for this subscription's expiration.
    * A subscription is considered active as long as any connected subscriber is
@@ -741,8 +658,6 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild
   public static final int FILTER_FIELD_NUMBER = 12;
   private volatile java.lang.Object filter_;
   /**
-   *
-   *
    * 
    * An expression written in the Pub/Sub [filter
    * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -752,7 +667,6 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild
    * 
* * string filter = 12; - * * @return The filter. */ @java.lang.Override @@ -761,15 +675,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * An expression written in the Pub/Sub [filter
    * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -779,15 +692,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 12; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -798,8 +712,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int DEAD_LETTER_POLICY_FIELD_NUMBER = 13; private com.google.pubsub.v1.DeadLetterPolicy deadLetterPolicy_; /** - * - * *
    * A policy that specifies the conditions for dead lettering messages in
    * this subscription. If dead_letter_policy is not set, dead lettering
@@ -811,7 +723,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; - * * @return Whether the deadLetterPolicy field is set. */ @java.lang.Override @@ -819,8 +730,6 @@ public boolean hasDeadLetterPolicy() { return deadLetterPolicy_ != null; } /** - * - * *
    * A policy that specifies the conditions for dead lettering messages in
    * this subscription. If dead_letter_policy is not set, dead lettering
@@ -832,18 +741,13 @@ public boolean hasDeadLetterPolicy() {
    * 
* * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; - * * @return The deadLetterPolicy. */ @java.lang.Override public com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy() { - return deadLetterPolicy_ == null - ? com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance() - : deadLetterPolicy_; + return deadLetterPolicy_ == null ? com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance() : deadLetterPolicy_; } /** - * - * *
    * A policy that specifies the conditions for dead lettering messages in
    * this subscription. If dead_letter_policy is not set, dead lettering
@@ -864,8 +768,6 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild
   public static final int RETRY_POLICY_FIELD_NUMBER = 14;
   private com.google.pubsub.v1.RetryPolicy retryPolicy_;
   /**
-   *
-   *
    * 
    * A policy that specifies how Pub/Sub retries message delivery for this
    * subscription.
@@ -876,7 +778,6 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild
    * 
* * .google.pubsub.v1.RetryPolicy retry_policy = 14; - * * @return Whether the retryPolicy field is set. */ @java.lang.Override @@ -884,8 +785,6 @@ public boolean hasRetryPolicy() { return retryPolicy_ != null; } /** - * - * *
    * A policy that specifies how Pub/Sub retries message delivery for this
    * subscription.
@@ -896,18 +795,13 @@ public boolean hasRetryPolicy() {
    * 
* * .google.pubsub.v1.RetryPolicy retry_policy = 14; - * * @return The retryPolicy. */ @java.lang.Override public com.google.pubsub.v1.RetryPolicy getRetryPolicy() { - return retryPolicy_ == null - ? com.google.pubsub.v1.RetryPolicy.getDefaultInstance() - : retryPolicy_; + return retryPolicy_ == null ? com.google.pubsub.v1.RetryPolicy.getDefaultInstance() : retryPolicy_; } /** - * - * *
    * A policy that specifies how Pub/Sub retries message delivery for this
    * subscription.
@@ -927,8 +821,6 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() {
   public static final int DETACHED_FIELD_NUMBER = 15;
   private boolean detached_;
   /**
-   *
-   *
    * 
    * Indicates whether the subscription is detached from its topic. Detached
    * subscriptions don't receive messages from their topic and don't retain any
@@ -938,7 +830,6 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() {
    * 
* * bool detached = 15; - * * @return The detached. */ @java.lang.Override @@ -949,8 +840,6 @@ public boolean getDetached() { public static final int TOPIC_MESSAGE_RETENTION_DURATION_FIELD_NUMBER = 17; private com.google.protobuf.Duration topicMessageRetentionDuration_; /** - * - * *
    * Output only. Indicates the minimum duration for which a message is retained
    * after it is published to the subscription's topic. If this field is set,
@@ -960,10 +849,7 @@ public boolean getDetached() {
    * in responses from the server; it is ignored if it is set in any requests.
    * 
* - * - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the topicMessageRetentionDuration field is set. */ @java.lang.Override @@ -971,8 +857,6 @@ public boolean hasTopicMessageRetentionDuration() { return topicMessageRetentionDuration_ != null; } /** - * - * *
    * Output only. Indicates the minimum duration for which a message is retained
    * after it is published to the subscription's topic. If this field is set,
@@ -982,21 +866,14 @@ public boolean hasTopicMessageRetentionDuration() {
    * in responses from the server; it is ignored if it is set in any requests.
    * 
* - * - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The topicMessageRetentionDuration. */ @java.lang.Override public com.google.protobuf.Duration getTopicMessageRetentionDuration() { - return topicMessageRetentionDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : topicMessageRetentionDuration_; + return topicMessageRetentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : topicMessageRetentionDuration_; } /** - * - * *
    * Output only. Indicates the minimum duration for which a message is retained
    * after it is published to the subscription's topic. If this field is set,
@@ -1006,9 +883,7 @@ public com.google.protobuf.Duration getTopicMessageRetentionDuration() {
    * in responses from the server; it is ignored if it is set in any requests.
    * 
* - * - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrBuilder() { @@ -1016,7 +891,6 @@ public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrB } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1028,11 +902,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + 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_); } - if (!getTopicBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topic_); } if (pushConfig_ != null) { @@ -1047,15 +922,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (messageRetentionDuration_ != null) { output.writeMessage(8, getMessageRetentionDuration()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 9); if (enableMessageOrdering_ != false) { output.writeBool(10, enableMessageOrdering_); } if (expirationPolicy_ != null) { output.writeMessage(11, getExpirationPolicy()); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, filter_); } if (deadLetterPolicy_ != null) { @@ -1079,58 +958,64 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getTopicBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_); } if (pushConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPushConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getPushConfig()); } if (ackDeadlineSeconds_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, ackDeadlineSeconds_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, ackDeadlineSeconds_); } if (retainAckedMessages_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, retainAckedMessages_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, retainAckedMessages_); } if (messageRetentionDuration_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, getMessageRetentionDuration()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getMessageRetentionDuration()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, labels__); } if (enableMessageOrdering_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, enableMessageOrdering_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(10, enableMessageOrdering_); } if (expirationPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getExpirationPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getExpirationPolicy()); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, filter_); } if (deadLetterPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDeadLetterPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getDeadLetterPolicy()); } if (retryPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getRetryPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getRetryPolicy()); } if (detached_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, detached_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(15, detached_); } if (topicMessageRetentionDuration_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 17, getTopicMessageRetentionDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getTopicMessageRetentionDuration()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1140,46 +1025,58 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.Subscription)) { return super.equals(obj); } com.google.pubsub.v1.Subscription other = (com.google.pubsub.v1.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 (hasPushConfig() != other.hasPushConfig()) return false; if (hasPushConfig()) { - if (!getPushConfig().equals(other.getPushConfig())) return false; + if (!getPushConfig() + .equals(other.getPushConfig())) return false; } - if (getAckDeadlineSeconds() != other.getAckDeadlineSeconds()) return false; - if (getRetainAckedMessages() != other.getRetainAckedMessages()) return false; + if (getAckDeadlineSeconds() + != other.getAckDeadlineSeconds()) return false; + if (getRetainAckedMessages() + != other.getRetainAckedMessages()) return false; if (hasMessageRetentionDuration() != other.hasMessageRetentionDuration()) return false; if (hasMessageRetentionDuration()) { - if (!getMessageRetentionDuration().equals(other.getMessageRetentionDuration())) return false; + if (!getMessageRetentionDuration() + .equals(other.getMessageRetentionDuration())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (getEnableMessageOrdering() != other.getEnableMessageOrdering()) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (getEnableMessageOrdering() + != other.getEnableMessageOrdering()) return false; if (hasExpirationPolicy() != other.hasExpirationPolicy()) return false; if (hasExpirationPolicy()) { - if (!getExpirationPolicy().equals(other.getExpirationPolicy())) return false; + if (!getExpirationPolicy() + .equals(other.getExpirationPolicy())) return false; } - if (!getFilter().equals(other.getFilter())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (hasDeadLetterPolicy() != other.hasDeadLetterPolicy()) return false; if (hasDeadLetterPolicy()) { - if (!getDeadLetterPolicy().equals(other.getDeadLetterPolicy())) return false; + if (!getDeadLetterPolicy() + .equals(other.getDeadLetterPolicy())) return false; } if (hasRetryPolicy() != other.hasRetryPolicy()) return false; if (hasRetryPolicy()) { - if (!getRetryPolicy().equals(other.getRetryPolicy())) return false; + if (!getRetryPolicy() + .equals(other.getRetryPolicy())) return false; } - if (getDetached() != other.getDetached()) return false; - if (hasTopicMessageRetentionDuration() != other.hasTopicMessageRetentionDuration()) - return false; + if (getDetached() + != other.getDetached()) return false; + if (hasTopicMessageRetentionDuration() != other.hasTopicMessageRetentionDuration()) return false; if (hasTopicMessageRetentionDuration()) { - if (!getTopicMessageRetentionDuration().equals(other.getTopicMessageRetentionDuration())) - return false; + if (!getTopicMessageRetentionDuration() + .equals(other.getTopicMessageRetentionDuration())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1203,7 +1100,8 @@ public int hashCode() { hash = (37 * hash) + ACK_DEADLINE_SECONDS_FIELD_NUMBER; hash = (53 * hash) + getAckDeadlineSeconds(); hash = (37 * hash) + RETAIN_ACKED_MESSAGES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRetainAckedMessages()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRetainAckedMessages()); if (hasMessageRetentionDuration()) { hash = (37 * hash) + MESSAGE_RETENTION_DURATION_FIELD_NUMBER; hash = (53 * hash) + getMessageRetentionDuration().hashCode(); @@ -1213,7 +1111,8 @@ public int hashCode() { hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + ENABLE_MESSAGE_ORDERING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableMessageOrdering()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableMessageOrdering()); if (hasExpirationPolicy()) { hash = (37 * hash) + EXPIRATION_POLICY_FIELD_NUMBER; hash = (53 * hash) + getExpirationPolicy().hashCode(); @@ -1229,7 +1128,8 @@ public int hashCode() { hash = (53 * hash) + getRetryPolicy().hashCode(); } hash = (37 * hash) + DETACHED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDetached()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDetached()); if (hasTopicMessageRetentionDuration()) { hash = (37 * hash) + TOPIC_MESSAGE_RETENTION_DURATION_FIELD_NUMBER; hash = (53 * hash) + getTopicMessageRetentionDuration().hashCode(); @@ -1239,146 +1139,140 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.Subscription parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.Subscription parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.Subscription parseFrom(com.google.protobuf.ByteString data) + public static com.google.pubsub.v1.Subscription parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.Subscription parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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.pubsub.v1.Subscription parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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; } /** - * - * *
    * A subscription resource.
    * 
* * Protobuf type {@code google.pubsub.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.pubsub.v1.Subscription) com.google.pubsub.v1.SubscriptionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_Subscription_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 9: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 9: return internalGetMutableLabels(); 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.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_Subscription_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.Subscription.class, - com.google.pubsub.v1.Subscription.Builder.class); + com.google.pubsub.v1.Subscription.class, com.google.pubsub.v1.Subscription.Builder.class); } // Construct using com.google.pubsub.v1.Subscription.newBuilder() @@ -1386,15 +1280,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1453,9 +1348,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_Subscription_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_descriptor; } @java.lang.Override @@ -1523,39 +1418,38 @@ public com.google.pubsub.v1.Subscription 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.pubsub.v1.Subscription) { - return mergeFrom((com.google.pubsub.v1.Subscription) other); + return mergeFrom((com.google.pubsub.v1.Subscription)other); } else { super.mergeFrom(other); return this; @@ -1584,7 +1478,8 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { if (other.hasMessageRetentionDuration()) { mergeMessageRetentionDuration(other.getMessageRetentionDuration()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (other.getEnableMessageOrdering() != false) { setEnableMessageOrdering(other.getEnableMessageOrdering()); } @@ -1635,13 +1530,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the subscription. It must have the format
      * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -1652,13 +1544,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -1667,8 +1559,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the subscription. It must have the format
      * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -1679,14 +1569,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -1694,8 +1585,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the subscription. It must have the format
      * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -1706,22 +1595,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the subscription. It must have the format
      * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -1732,18 +1619,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the subscription. It must have the format
      * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -1754,16 +1638,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1771,24 +1655,20 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object topic_ = ""; /** - * - * *
      * Required. The name of the topic from which this subscription is receiving
      * messages. Format is `projects/{project}/topics/{topic}`. The value of this
      * field will be `_deleted-topic_` if the topic has been deleted.
      * 
* - * - * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 2 [(.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; @@ -1797,25 +1677,22 @@ public java.lang.String getTopic() { } } /** - * - * *
      * Required. The name of the topic from which this subscription is receiving
      * messages. Format is `projects/{project}/topics/{topic}`. The value of this
      * field will be `_deleted-topic_` if the topic has been deleted.
      * 
* - * - * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 2 [(.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 { @@ -1823,73 +1700,60 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
      * Required. The name of the topic from which this subscription is receiving
      * messages. Format is `projects/{project}/topics/{topic}`. The value of this
      * field will be `_deleted-topic_` if the topic has been deleted.
      * 
* - * - * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 2 [(.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) { + public Builder setTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topic_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the topic from which this subscription is receiving
      * messages. Format is `projects/{project}/topics/{topic}`. The value of this
      * field will be `_deleted-topic_` if the topic has been deleted.
      * 
* - * - * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearTopic() { - + topic_ = getDefaultInstance().getTopic(); onChanged(); return this; } /** - * - * *
      * Required. The name of the topic from which this subscription is receiving
      * messages. Format is `projects/{project}/topics/{topic}`. The value of this
      * field will be `_deleted-topic_` if the topic has been deleted.
      * 
* - * - * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 2 [(.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) { + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; onChanged(); return this; @@ -1897,13 +1761,8 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { private com.google.pubsub.v1.PushConfig pushConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PushConfig, - com.google.pubsub.v1.PushConfig.Builder, - com.google.pubsub.v1.PushConfigOrBuilder> - pushConfigBuilder_; + com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder> pushConfigBuilder_; /** - * - * *
      * If push delivery is used with this subscription, this field is
      * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -1911,15 +1770,12 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.pubsub.v1.PushConfig push_config = 4; - * * @return Whether the pushConfig field is set. */ public boolean hasPushConfig() { return pushConfigBuilder_ != null || pushConfig_ != null; } /** - * - * *
      * If push delivery is used with this subscription, this field is
      * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -1927,21 +1783,16 @@ public boolean hasPushConfig() {
      * 
* * .google.pubsub.v1.PushConfig push_config = 4; - * * @return The pushConfig. */ public com.google.pubsub.v1.PushConfig getPushConfig() { if (pushConfigBuilder_ == null) { - return pushConfig_ == null - ? com.google.pubsub.v1.PushConfig.getDefaultInstance() - : pushConfig_; + return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_; } else { return pushConfigBuilder_.getMessage(); } } /** - * - * *
      * If push delivery is used with this subscription, this field is
      * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -1964,8 +1815,6 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If push delivery is used with this subscription, this field is
      * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -1974,7 +1823,8 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) {
      *
      * .google.pubsub.v1.PushConfig push_config = 4;
      */
-    public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForValue) {
+    public Builder setPushConfig(
+        com.google.pubsub.v1.PushConfig.Builder builderForValue) {
       if (pushConfigBuilder_ == null) {
         pushConfig_ = builderForValue.build();
         onChanged();
@@ -1985,8 +1835,6 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForV
       return this;
     }
     /**
-     *
-     *
      * 
      * If push delivery is used with this subscription, this field is
      * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -1999,9 +1847,7 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) {
       if (pushConfigBuilder_ == null) {
         if (pushConfig_ != null) {
           pushConfig_ =
-              com.google.pubsub.v1.PushConfig.newBuilder(pushConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.pubsub.v1.PushConfig.newBuilder(pushConfig_).mergeFrom(value).buildPartial();
         } else {
           pushConfig_ = value;
         }
@@ -2013,8 +1859,6 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If push delivery is used with this subscription, this field is
      * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -2035,8 +1879,6 @@ public Builder clearPushConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If push delivery is used with this subscription, this field is
      * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -2046,13 +1888,11 @@ public Builder clearPushConfig() {
      * .google.pubsub.v1.PushConfig push_config = 4;
      */
     public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() {
-
+      
       onChanged();
       return getPushConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If push delivery is used with this subscription, this field is
      * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -2065,14 +1905,11 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() {
       if (pushConfigBuilder_ != null) {
         return pushConfigBuilder_.getMessageOrBuilder();
       } else {
-        return pushConfig_ == null
-            ? com.google.pubsub.v1.PushConfig.getDefaultInstance()
-            : pushConfig_;
+        return pushConfig_ == null ?
+            com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * If push delivery is used with this subscription, this field is
      * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -2082,26 +1919,21 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() {
      * .google.pubsub.v1.PushConfig push_config = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.pubsub.v1.PushConfig,
-            com.google.pubsub.v1.PushConfig.Builder,
-            com.google.pubsub.v1.PushConfigOrBuilder>
+        com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder> 
         getPushConfigFieldBuilder() {
       if (pushConfigBuilder_ == null) {
-        pushConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.pubsub.v1.PushConfig,
-                com.google.pubsub.v1.PushConfig.Builder,
-                com.google.pubsub.v1.PushConfigOrBuilder>(
-                getPushConfig(), getParentForChildren(), isClean());
+        pushConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder>(
+                getPushConfig(),
+                getParentForChildren(),
+                isClean());
         pushConfig_ = null;
       }
       return pushConfigBuilder_;
     }
 
-    private int ackDeadlineSeconds_;
+    private int ackDeadlineSeconds_ ;
     /**
-     *
-     *
      * 
      * The approximate amount of time (on a best-effort basis) Pub/Sub waits for
      * the subscriber to acknowledge receipt before resending the message. In the
@@ -2123,7 +1955,6 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() {
      * 
* * int32 ack_deadline_seconds = 5; - * * @return The ackDeadlineSeconds. */ @java.lang.Override @@ -2131,8 +1962,6 @@ public int getAckDeadlineSeconds() { return ackDeadlineSeconds_; } /** - * - * *
      * The approximate amount of time (on a best-effort basis) Pub/Sub waits for
      * the subscriber to acknowledge receipt before resending the message. In the
@@ -2154,19 +1983,16 @@ public int getAckDeadlineSeconds() {
      * 
* * int32 ack_deadline_seconds = 5; - * * @param value The ackDeadlineSeconds to set. * @return This builder for chaining. */ public Builder setAckDeadlineSeconds(int value) { - + ackDeadlineSeconds_ = value; onChanged(); return this; } /** - * - * *
      * The approximate amount of time (on a best-effort basis) Pub/Sub waits for
      * the subscriber to acknowledge receipt before resending the message. In the
@@ -2188,20 +2014,17 @@ public Builder setAckDeadlineSeconds(int value) {
      * 
* * int32 ack_deadline_seconds = 5; - * * @return This builder for chaining. */ public Builder clearAckDeadlineSeconds() { - + ackDeadlineSeconds_ = 0; onChanged(); return this; } - private boolean retainAckedMessages_; + private boolean retainAckedMessages_ ; /** - * - * *
      * Indicates whether to retain acknowledged messages. If true, then
      * messages are not expunged from the subscription's backlog, even if they are
@@ -2212,7 +2035,6 @@ public Builder clearAckDeadlineSeconds() {
      * 
* * bool retain_acked_messages = 7; - * * @return The retainAckedMessages. */ @java.lang.Override @@ -2220,8 +2042,6 @@ public boolean getRetainAckedMessages() { return retainAckedMessages_; } /** - * - * *
      * Indicates whether to retain acknowledged messages. If true, then
      * messages are not expunged from the subscription's backlog, even if they are
@@ -2232,19 +2052,16 @@ public boolean getRetainAckedMessages() {
      * 
* * bool retain_acked_messages = 7; - * * @param value The retainAckedMessages to set. * @return This builder for chaining. */ public Builder setRetainAckedMessages(boolean value) { - + retainAckedMessages_ = value; onChanged(); return this; } /** - * - * *
      * Indicates whether to retain acknowledged messages. If true, then
      * messages are not expunged from the subscription's backlog, even if they are
@@ -2255,11 +2072,10 @@ public Builder setRetainAckedMessages(boolean value) {
      * 
* * bool retain_acked_messages = 7; - * * @return This builder for chaining. */ public Builder clearRetainAckedMessages() { - + retainAckedMessages_ = false; onChanged(); return this; @@ -2267,13 +2083,8 @@ public Builder clearRetainAckedMessages() { private com.google.protobuf.Duration messageRetentionDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - messageRetentionDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> messageRetentionDurationBuilder_; /** - * - * *
      * How long to retain unacknowledged messages in the subscription's backlog,
      * from the moment a message is published.
@@ -2284,15 +2095,12 @@ public Builder clearRetainAckedMessages() {
      * 
* * .google.protobuf.Duration message_retention_duration = 8; - * * @return Whether the messageRetentionDuration field is set. */ public boolean hasMessageRetentionDuration() { return messageRetentionDurationBuilder_ != null || messageRetentionDuration_ != null; } /** - * - * *
      * How long to retain unacknowledged messages in the subscription's backlog,
      * from the moment a message is published.
@@ -2303,21 +2111,16 @@ public boolean hasMessageRetentionDuration() {
      * 
* * .google.protobuf.Duration message_retention_duration = 8; - * * @return The messageRetentionDuration. */ public com.google.protobuf.Duration getMessageRetentionDuration() { if (messageRetentionDurationBuilder_ == null) { - return messageRetentionDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : messageRetentionDuration_; + return messageRetentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : messageRetentionDuration_; } else { return messageRetentionDurationBuilder_.getMessage(); } } /** - * - * *
      * How long to retain unacknowledged messages in the subscription's backlog,
      * from the moment a message is published.
@@ -2343,8 +2146,6 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * How long to retain unacknowledged messages in the subscription's backlog,
      * from the moment a message is published.
@@ -2368,8 +2169,6 @@ public Builder setMessageRetentionDuration(
       return this;
     }
     /**
-     *
-     *
      * 
      * How long to retain unacknowledged messages in the subscription's backlog,
      * from the moment a message is published.
@@ -2385,9 +2184,7 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value)
       if (messageRetentionDurationBuilder_ == null) {
         if (messageRetentionDuration_ != null) {
           messageRetentionDuration_ =
-              com.google.protobuf.Duration.newBuilder(messageRetentionDuration_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(messageRetentionDuration_).mergeFrom(value).buildPartial();
         } else {
           messageRetentionDuration_ = value;
         }
@@ -2399,8 +2196,6 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value)
       return this;
     }
     /**
-     *
-     *
      * 
      * How long to retain unacknowledged messages in the subscription's backlog,
      * from the moment a message is published.
@@ -2424,8 +2219,6 @@ public Builder clearMessageRetentionDuration() {
       return this;
     }
     /**
-     *
-     *
      * 
      * How long to retain unacknowledged messages in the subscription's backlog,
      * from the moment a message is published.
@@ -2438,13 +2231,11 @@ public Builder clearMessageRetentionDuration() {
      * .google.protobuf.Duration message_retention_duration = 8;
      */
     public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() {
-
+      
       onChanged();
       return getMessageRetentionDurationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * How long to retain unacknowledged messages in the subscription's backlog,
      * from the moment a message is published.
@@ -2460,14 +2251,11 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde
       if (messageRetentionDurationBuilder_ != null) {
         return messageRetentionDurationBuilder_.getMessageOrBuilder();
       } else {
-        return messageRetentionDuration_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : messageRetentionDuration_;
+        return messageRetentionDuration_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : messageRetentionDuration_;
       }
     }
     /**
-     *
-     *
      * 
      * How long to retain unacknowledged messages in the subscription's backlog,
      * from the moment a message is published.
@@ -2480,37 +2268,35 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde
      * .google.protobuf.Duration message_retention_duration = 8;
      */
     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> 
         getMessageRetentionDurationFieldBuilder() {
       if (messageRetentionDurationBuilder_ == null) {
-        messageRetentionDurationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getMessageRetentionDuration(), getParentForChildren(), isClean());
+        messageRetentionDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getMessageRetentionDuration(),
+                getParentForChildren(),
+                isClean());
         messageRetentionDuration_ = null;
       }
       return messageRetentionDurationBuilder_;
     }
 
-    private com.google.protobuf.MapField labels_;
-
-    private com.google.protobuf.MapField internalGetLabels() {
+    private com.google.protobuf.MapField<
+        java.lang.String, java.lang.String> labels_;
+    private com.google.protobuf.MapField
+    internalGetLabels() {
       if (labels_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
+        return com.google.protobuf.MapField.emptyMapField(
+            LabelsDefaultEntryHolder.defaultEntry);
       }
       return labels_;
     }
-
     private com.google.protobuf.MapField
-        internalGetMutableLabels() {
-      onChanged();
-      ;
+    internalGetMutableLabels() {
+      onChanged();;
       if (labels_ == null) {
-        labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+        labels_ = com.google.protobuf.MapField.newMapField(
+            LabelsDefaultEntryHolder.defaultEntry);
       }
       if (!labels_.isMutable()) {
         labels_ = labels_.copy();
@@ -2522,8 +2308,6 @@ public int getLabelsCount() {
       return internalGetLabels().getMap().size();
     }
     /**
-     *
-     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -2531,22 +2315,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 9;
      */
+
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -2555,12 +2339,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 9;
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -2569,17 +2352,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 9;
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -2588,11 +2370,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 9;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2600,12 +2383,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -2613,21 +2395,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 9;
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+    getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -2635,19 +2419,16 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 9;
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
      * managing labels</a>.
@@ -2655,15 +2436,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 9;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       return this;
     }
 
-    private boolean enableMessageOrdering_;
+    private boolean enableMessageOrdering_ ;
     /**
-     *
-     *
      * 
      * If true, messages published with the same `ordering_key` in `PubsubMessage`
      * will be delivered to the subscribers in the order in which they
@@ -2672,7 +2454,6 @@ public Builder putAllLabels(java.util.Map va
      * 
* * bool enable_message_ordering = 10; - * * @return The enableMessageOrdering. */ @java.lang.Override @@ -2680,8 +2461,6 @@ public boolean getEnableMessageOrdering() { return enableMessageOrdering_; } /** - * - * *
      * If true, messages published with the same `ordering_key` in `PubsubMessage`
      * will be delivered to the subscribers in the order in which they
@@ -2690,19 +2469,16 @@ public boolean getEnableMessageOrdering() {
      * 
* * bool enable_message_ordering = 10; - * * @param value The enableMessageOrdering to set. * @return This builder for chaining. */ public Builder setEnableMessageOrdering(boolean value) { - + enableMessageOrdering_ = value; onChanged(); return this; } /** - * - * *
      * If true, messages published with the same `ordering_key` in `PubsubMessage`
      * will be delivered to the subscribers in the order in which they
@@ -2711,11 +2487,10 @@ public Builder setEnableMessageOrdering(boolean value) {
      * 
* * bool enable_message_ordering = 10; - * * @return This builder for chaining. */ public Builder clearEnableMessageOrdering() { - + enableMessageOrdering_ = false; onChanged(); return this; @@ -2723,13 +2498,8 @@ public Builder clearEnableMessageOrdering() { private com.google.pubsub.v1.ExpirationPolicy expirationPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.ExpirationPolicy, - com.google.pubsub.v1.ExpirationPolicy.Builder, - com.google.pubsub.v1.ExpirationPolicyOrBuilder> - expirationPolicyBuilder_; + com.google.pubsub.v1.ExpirationPolicy, com.google.pubsub.v1.ExpirationPolicy.Builder, com.google.pubsub.v1.ExpirationPolicyOrBuilder> expirationPolicyBuilder_; /** - * - * *
      * A policy that specifies the conditions for this subscription's expiration.
      * A subscription is considered active as long as any connected subscriber is
@@ -2740,15 +2510,12 @@ public Builder clearEnableMessageOrdering() {
      * 
* * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; - * * @return Whether the expirationPolicy field is set. */ public boolean hasExpirationPolicy() { return expirationPolicyBuilder_ != null || expirationPolicy_ != null; } /** - * - * *
      * A policy that specifies the conditions for this subscription's expiration.
      * A subscription is considered active as long as any connected subscriber is
@@ -2759,21 +2526,16 @@ public boolean hasExpirationPolicy() {
      * 
* * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; - * * @return The expirationPolicy. */ public com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy() { if (expirationPolicyBuilder_ == null) { - return expirationPolicy_ == null - ? com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance() - : expirationPolicy_; + return expirationPolicy_ == null ? com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance() : expirationPolicy_; } else { return expirationPolicyBuilder_.getMessage(); } } /** - * - * *
      * A policy that specifies the conditions for this subscription's expiration.
      * A subscription is considered active as long as any connected subscriber is
@@ -2799,8 +2561,6 @@ public Builder setExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value)
       return this;
     }
     /**
-     *
-     *
      * 
      * A policy that specifies the conditions for this subscription's expiration.
      * A subscription is considered active as long as any connected subscriber is
@@ -2824,8 +2584,6 @@ public Builder setExpirationPolicy(
       return this;
     }
     /**
-     *
-     *
      * 
      * A policy that specifies the conditions for this subscription's expiration.
      * A subscription is considered active as long as any connected subscriber is
@@ -2841,9 +2599,7 @@ public Builder mergeExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value
       if (expirationPolicyBuilder_ == null) {
         if (expirationPolicy_ != null) {
           expirationPolicy_ =
-              com.google.pubsub.v1.ExpirationPolicy.newBuilder(expirationPolicy_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.pubsub.v1.ExpirationPolicy.newBuilder(expirationPolicy_).mergeFrom(value).buildPartial();
         } else {
           expirationPolicy_ = value;
         }
@@ -2855,8 +2611,6 @@ public Builder mergeExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value
       return this;
     }
     /**
-     *
-     *
      * 
      * A policy that specifies the conditions for this subscription's expiration.
      * A subscription is considered active as long as any connected subscriber is
@@ -2880,8 +2634,6 @@ public Builder clearExpirationPolicy() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A policy that specifies the conditions for this subscription's expiration.
      * A subscription is considered active as long as any connected subscriber is
@@ -2894,13 +2646,11 @@ public Builder clearExpirationPolicy() {
      * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11;
      */
     public com.google.pubsub.v1.ExpirationPolicy.Builder getExpirationPolicyBuilder() {
-
+      
       onChanged();
       return getExpirationPolicyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A policy that specifies the conditions for this subscription's expiration.
      * A subscription is considered active as long as any connected subscriber is
@@ -2916,14 +2666,11 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild
       if (expirationPolicyBuilder_ != null) {
         return expirationPolicyBuilder_.getMessageOrBuilder();
       } else {
-        return expirationPolicy_ == null
-            ? com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance()
-            : expirationPolicy_;
+        return expirationPolicy_ == null ?
+            com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance() : expirationPolicy_;
       }
     }
     /**
-     *
-     *
      * 
      * A policy that specifies the conditions for this subscription's expiration.
      * A subscription is considered active as long as any connected subscriber is
@@ -2936,17 +2683,14 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild
      * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.pubsub.v1.ExpirationPolicy,
-            com.google.pubsub.v1.ExpirationPolicy.Builder,
-            com.google.pubsub.v1.ExpirationPolicyOrBuilder>
+        com.google.pubsub.v1.ExpirationPolicy, com.google.pubsub.v1.ExpirationPolicy.Builder, com.google.pubsub.v1.ExpirationPolicyOrBuilder> 
         getExpirationPolicyFieldBuilder() {
       if (expirationPolicyBuilder_ == null) {
-        expirationPolicyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.pubsub.v1.ExpirationPolicy,
-                com.google.pubsub.v1.ExpirationPolicy.Builder,
-                com.google.pubsub.v1.ExpirationPolicyOrBuilder>(
-                getExpirationPolicy(), getParentForChildren(), isClean());
+        expirationPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.pubsub.v1.ExpirationPolicy, com.google.pubsub.v1.ExpirationPolicy.Builder, com.google.pubsub.v1.ExpirationPolicyOrBuilder>(
+                getExpirationPolicy(),
+                getParentForChildren(),
+                isClean());
         expirationPolicy_ = null;
       }
       return expirationPolicyBuilder_;
@@ -2954,8 +2698,6 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild
 
     private java.lang.Object filter_ = "";
     /**
-     *
-     *
      * 
      * An expression written in the Pub/Sub [filter
      * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -2965,13 +2707,13 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild
      * 
* * string filter = 12; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -2980,8 +2722,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * An expression written in the Pub/Sub [filter
      * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -2991,14 +2731,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 12; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -3006,8 +2747,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * An expression written in the Pub/Sub [filter
      * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -3017,22 +2756,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 12; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * An expression written in the Pub/Sub [filter
      * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -3042,18 +2779,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 12; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * An expression written in the Pub/Sub [filter
      * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -3063,16 +2797,16 @@ public Builder clearFilter() {
      * 
* * string filter = 12; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -3080,13 +2814,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private com.google.pubsub.v1.DeadLetterPolicy deadLetterPolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.DeadLetterPolicy, - com.google.pubsub.v1.DeadLetterPolicy.Builder, - com.google.pubsub.v1.DeadLetterPolicyOrBuilder> - deadLetterPolicyBuilder_; + com.google.pubsub.v1.DeadLetterPolicy, com.google.pubsub.v1.DeadLetterPolicy.Builder, com.google.pubsub.v1.DeadLetterPolicyOrBuilder> deadLetterPolicyBuilder_; /** - * - * *
      * A policy that specifies the conditions for dead lettering messages in
      * this subscription. If dead_letter_policy is not set, dead lettering
@@ -3098,15 +2827,12 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; - * * @return Whether the deadLetterPolicy field is set. */ public boolean hasDeadLetterPolicy() { return deadLetterPolicyBuilder_ != null || deadLetterPolicy_ != null; } /** - * - * *
      * A policy that specifies the conditions for dead lettering messages in
      * this subscription. If dead_letter_policy is not set, dead lettering
@@ -3118,21 +2844,16 @@ public boolean hasDeadLetterPolicy() {
      * 
* * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; - * * @return The deadLetterPolicy. */ public com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy() { if (deadLetterPolicyBuilder_ == null) { - return deadLetterPolicy_ == null - ? com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance() - : deadLetterPolicy_; + return deadLetterPolicy_ == null ? com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance() : deadLetterPolicy_; } else { return deadLetterPolicyBuilder_.getMessage(); } } /** - * - * *
      * A policy that specifies the conditions for dead lettering messages in
      * this subscription. If dead_letter_policy is not set, dead lettering
@@ -3159,8 +2880,6 @@ public Builder setDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value)
       return this;
     }
     /**
-     *
-     *
      * 
      * A policy that specifies the conditions for dead lettering messages in
      * this subscription. If dead_letter_policy is not set, dead lettering
@@ -3185,8 +2904,6 @@ public Builder setDeadLetterPolicy(
       return this;
     }
     /**
-     *
-     *
      * 
      * A policy that specifies the conditions for dead lettering messages in
      * this subscription. If dead_letter_policy is not set, dead lettering
@@ -3203,9 +2920,7 @@ public Builder mergeDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value
       if (deadLetterPolicyBuilder_ == null) {
         if (deadLetterPolicy_ != null) {
           deadLetterPolicy_ =
-              com.google.pubsub.v1.DeadLetterPolicy.newBuilder(deadLetterPolicy_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.pubsub.v1.DeadLetterPolicy.newBuilder(deadLetterPolicy_).mergeFrom(value).buildPartial();
         } else {
           deadLetterPolicy_ = value;
         }
@@ -3217,8 +2932,6 @@ public Builder mergeDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value
       return this;
     }
     /**
-     *
-     *
      * 
      * A policy that specifies the conditions for dead lettering messages in
      * this subscription. If dead_letter_policy is not set, dead lettering
@@ -3243,8 +2956,6 @@ public Builder clearDeadLetterPolicy() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A policy that specifies the conditions for dead lettering messages in
      * this subscription. If dead_letter_policy is not set, dead lettering
@@ -3258,13 +2969,11 @@ public Builder clearDeadLetterPolicy() {
      * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13;
      */
     public com.google.pubsub.v1.DeadLetterPolicy.Builder getDeadLetterPolicyBuilder() {
-
+      
       onChanged();
       return getDeadLetterPolicyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A policy that specifies the conditions for dead lettering messages in
      * this subscription. If dead_letter_policy is not set, dead lettering
@@ -3281,14 +2990,11 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild
       if (deadLetterPolicyBuilder_ != null) {
         return deadLetterPolicyBuilder_.getMessageOrBuilder();
       } else {
-        return deadLetterPolicy_ == null
-            ? com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance()
-            : deadLetterPolicy_;
+        return deadLetterPolicy_ == null ?
+            com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance() : deadLetterPolicy_;
       }
     }
     /**
-     *
-     *
      * 
      * A policy that specifies the conditions for dead lettering messages in
      * this subscription. If dead_letter_policy is not set, dead lettering
@@ -3302,17 +3008,14 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild
      * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.pubsub.v1.DeadLetterPolicy,
-            com.google.pubsub.v1.DeadLetterPolicy.Builder,
-            com.google.pubsub.v1.DeadLetterPolicyOrBuilder>
+        com.google.pubsub.v1.DeadLetterPolicy, com.google.pubsub.v1.DeadLetterPolicy.Builder, com.google.pubsub.v1.DeadLetterPolicyOrBuilder> 
         getDeadLetterPolicyFieldBuilder() {
       if (deadLetterPolicyBuilder_ == null) {
-        deadLetterPolicyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.pubsub.v1.DeadLetterPolicy,
-                com.google.pubsub.v1.DeadLetterPolicy.Builder,
-                com.google.pubsub.v1.DeadLetterPolicyOrBuilder>(
-                getDeadLetterPolicy(), getParentForChildren(), isClean());
+        deadLetterPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.pubsub.v1.DeadLetterPolicy, com.google.pubsub.v1.DeadLetterPolicy.Builder, com.google.pubsub.v1.DeadLetterPolicyOrBuilder>(
+                getDeadLetterPolicy(),
+                getParentForChildren(),
+                isClean());
         deadLetterPolicy_ = null;
       }
       return deadLetterPolicyBuilder_;
@@ -3320,13 +3023,8 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild
 
     private com.google.pubsub.v1.RetryPolicy retryPolicy_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.pubsub.v1.RetryPolicy,
-            com.google.pubsub.v1.RetryPolicy.Builder,
-            com.google.pubsub.v1.RetryPolicyOrBuilder>
-        retryPolicyBuilder_;
+        com.google.pubsub.v1.RetryPolicy, com.google.pubsub.v1.RetryPolicy.Builder, com.google.pubsub.v1.RetryPolicyOrBuilder> retryPolicyBuilder_;
     /**
-     *
-     *
      * 
      * A policy that specifies how Pub/Sub retries message delivery for this
      * subscription.
@@ -3337,15 +3035,12 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild
      * 
* * .google.pubsub.v1.RetryPolicy retry_policy = 14; - * * @return Whether the retryPolicy field is set. */ public boolean hasRetryPolicy() { return retryPolicyBuilder_ != null || retryPolicy_ != null; } /** - * - * *
      * A policy that specifies how Pub/Sub retries message delivery for this
      * subscription.
@@ -3356,21 +3051,16 @@ public boolean hasRetryPolicy() {
      * 
* * .google.pubsub.v1.RetryPolicy retry_policy = 14; - * * @return The retryPolicy. */ public com.google.pubsub.v1.RetryPolicy getRetryPolicy() { if (retryPolicyBuilder_ == null) { - return retryPolicy_ == null - ? com.google.pubsub.v1.RetryPolicy.getDefaultInstance() - : retryPolicy_; + return retryPolicy_ == null ? com.google.pubsub.v1.RetryPolicy.getDefaultInstance() : retryPolicy_; } else { return retryPolicyBuilder_.getMessage(); } } /** - * - * *
      * A policy that specifies how Pub/Sub retries message delivery for this
      * subscription.
@@ -3396,8 +3086,6 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A policy that specifies how Pub/Sub retries message delivery for this
      * subscription.
@@ -3409,7 +3097,8 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy value) {
      *
      * .google.pubsub.v1.RetryPolicy retry_policy = 14;
      */
-    public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy.Builder builderForValue) {
+    public Builder setRetryPolicy(
+        com.google.pubsub.v1.RetryPolicy.Builder builderForValue) {
       if (retryPolicyBuilder_ == null) {
         retryPolicy_ = builderForValue.build();
         onChanged();
@@ -3420,8 +3109,6 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * A policy that specifies how Pub/Sub retries message delivery for this
      * subscription.
@@ -3437,9 +3124,7 @@ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) {
       if (retryPolicyBuilder_ == null) {
         if (retryPolicy_ != null) {
           retryPolicy_ =
-              com.google.pubsub.v1.RetryPolicy.newBuilder(retryPolicy_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.pubsub.v1.RetryPolicy.newBuilder(retryPolicy_).mergeFrom(value).buildPartial();
         } else {
           retryPolicy_ = value;
         }
@@ -3451,8 +3136,6 @@ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A policy that specifies how Pub/Sub retries message delivery for this
      * subscription.
@@ -3476,8 +3159,6 @@ public Builder clearRetryPolicy() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A policy that specifies how Pub/Sub retries message delivery for this
      * subscription.
@@ -3490,13 +3171,11 @@ public Builder clearRetryPolicy() {
      * .google.pubsub.v1.RetryPolicy retry_policy = 14;
      */
     public com.google.pubsub.v1.RetryPolicy.Builder getRetryPolicyBuilder() {
-
+      
       onChanged();
       return getRetryPolicyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A policy that specifies how Pub/Sub retries message delivery for this
      * subscription.
@@ -3512,14 +3191,11 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() {
       if (retryPolicyBuilder_ != null) {
         return retryPolicyBuilder_.getMessageOrBuilder();
       } else {
-        return retryPolicy_ == null
-            ? com.google.pubsub.v1.RetryPolicy.getDefaultInstance()
-            : retryPolicy_;
+        return retryPolicy_ == null ?
+            com.google.pubsub.v1.RetryPolicy.getDefaultInstance() : retryPolicy_;
       }
     }
     /**
-     *
-     *
      * 
      * A policy that specifies how Pub/Sub retries message delivery for this
      * subscription.
@@ -3532,26 +3208,21 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() {
      * .google.pubsub.v1.RetryPolicy retry_policy = 14;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.pubsub.v1.RetryPolicy,
-            com.google.pubsub.v1.RetryPolicy.Builder,
-            com.google.pubsub.v1.RetryPolicyOrBuilder>
+        com.google.pubsub.v1.RetryPolicy, com.google.pubsub.v1.RetryPolicy.Builder, com.google.pubsub.v1.RetryPolicyOrBuilder> 
         getRetryPolicyFieldBuilder() {
       if (retryPolicyBuilder_ == null) {
-        retryPolicyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.pubsub.v1.RetryPolicy,
-                com.google.pubsub.v1.RetryPolicy.Builder,
-                com.google.pubsub.v1.RetryPolicyOrBuilder>(
-                getRetryPolicy(), getParentForChildren(), isClean());
+        retryPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.pubsub.v1.RetryPolicy, com.google.pubsub.v1.RetryPolicy.Builder, com.google.pubsub.v1.RetryPolicyOrBuilder>(
+                getRetryPolicy(),
+                getParentForChildren(),
+                isClean());
         retryPolicy_ = null;
       }
       return retryPolicyBuilder_;
     }
 
-    private boolean detached_;
+    private boolean detached_ ;
     /**
-     *
-     *
      * 
      * Indicates whether the subscription is detached from its topic. Detached
      * subscriptions don't receive messages from their topic and don't retain any
@@ -3561,7 +3232,6 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() {
      * 
* * bool detached = 15; - * * @return The detached. */ @java.lang.Override @@ -3569,8 +3239,6 @@ public boolean getDetached() { return detached_; } /** - * - * *
      * Indicates whether the subscription is detached from its topic. Detached
      * subscriptions don't receive messages from their topic and don't retain any
@@ -3580,19 +3248,16 @@ public boolean getDetached() {
      * 
* * bool detached = 15; - * * @param value The detached to set. * @return This builder for chaining. */ public Builder setDetached(boolean value) { - + detached_ = value; onChanged(); return this; } /** - * - * *
      * Indicates whether the subscription is detached from its topic. Detached
      * subscriptions don't receive messages from their topic and don't retain any
@@ -3602,11 +3267,10 @@ public Builder setDetached(boolean value) {
      * 
* * bool detached = 15; - * * @return This builder for chaining. */ public Builder clearDetached() { - + detached_ = false; onChanged(); return this; @@ -3614,13 +3278,8 @@ public Builder clearDetached() { private com.google.protobuf.Duration topicMessageRetentionDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - topicMessageRetentionDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> topicMessageRetentionDurationBuilder_; /** - * - * *
      * Output only. Indicates the minimum duration for which a message is retained
      * after it is published to the subscription's topic. If this field is set,
@@ -3630,19 +3289,13 @@ public Builder clearDetached() {
      * in responses from the server; it is ignored if it is set in any requests.
      * 
* - * - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the topicMessageRetentionDuration field is set. */ public boolean hasTopicMessageRetentionDuration() { - return topicMessageRetentionDurationBuilder_ != null - || topicMessageRetentionDuration_ != null; + return topicMessageRetentionDurationBuilder_ != null || topicMessageRetentionDuration_ != null; } /** - * - * *
      * Output only. Indicates the minimum duration for which a message is retained
      * after it is published to the subscription's topic. If this field is set,
@@ -3652,24 +3305,17 @@ public boolean hasTopicMessageRetentionDuration() {
      * in responses from the server; it is ignored if it is set in any requests.
      * 
* - * - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The topicMessageRetentionDuration. */ public com.google.protobuf.Duration getTopicMessageRetentionDuration() { if (topicMessageRetentionDurationBuilder_ == null) { - return topicMessageRetentionDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : topicMessageRetentionDuration_; + return topicMessageRetentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : topicMessageRetentionDuration_; } else { return topicMessageRetentionDurationBuilder_.getMessage(); } } /** - * - * *
      * Output only. Indicates the minimum duration for which a message is retained
      * after it is published to the subscription's topic. If this field is set,
@@ -3679,9 +3325,7 @@ public com.google.protobuf.Duration getTopicMessageRetentionDuration() {
      * in responses from the server; it is ignored if it is set in any requests.
      * 
* - * - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTopicMessageRetentionDuration(com.google.protobuf.Duration value) { if (topicMessageRetentionDurationBuilder_ == null) { @@ -3697,8 +3341,6 @@ public Builder setTopicMessageRetentionDuration(com.google.protobuf.Duration val return this; } /** - * - * *
      * Output only. Indicates the minimum duration for which a message is retained
      * after it is published to the subscription's topic. If this field is set,
@@ -3708,9 +3350,7 @@ public Builder setTopicMessageRetentionDuration(com.google.protobuf.Duration val
      * in responses from the server; it is ignored if it is set in any requests.
      * 
* - * - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTopicMessageRetentionDuration( com.google.protobuf.Duration.Builder builderForValue) { @@ -3724,8 +3364,6 @@ public Builder setTopicMessageRetentionDuration( return this; } /** - * - * *
      * Output only. Indicates the minimum duration for which a message is retained
      * after it is published to the subscription's topic. If this field is set,
@@ -3735,17 +3373,13 @@ public Builder setTopicMessageRetentionDuration(
      * in responses from the server; it is ignored if it is set in any requests.
      * 
* - * - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeTopicMessageRetentionDuration(com.google.protobuf.Duration value) { if (topicMessageRetentionDurationBuilder_ == null) { if (topicMessageRetentionDuration_ != null) { topicMessageRetentionDuration_ = - com.google.protobuf.Duration.newBuilder(topicMessageRetentionDuration_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Duration.newBuilder(topicMessageRetentionDuration_).mergeFrom(value).buildPartial(); } else { topicMessageRetentionDuration_ = value; } @@ -3757,8 +3391,6 @@ public Builder mergeTopicMessageRetentionDuration(com.google.protobuf.Duration v return this; } /** - * - * *
      * Output only. Indicates the minimum duration for which a message is retained
      * after it is published to the subscription's topic. If this field is set,
@@ -3768,9 +3400,7 @@ public Builder mergeTopicMessageRetentionDuration(com.google.protobuf.Duration v
      * in responses from the server; it is ignored if it is set in any requests.
      * 
* - * - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearTopicMessageRetentionDuration() { if (topicMessageRetentionDurationBuilder_ == null) { @@ -3784,8 +3414,6 @@ public Builder clearTopicMessageRetentionDuration() { return this; } /** - * - * *
      * Output only. Indicates the minimum duration for which a message is retained
      * after it is published to the subscription's topic. If this field is set,
@@ -3795,18 +3423,14 @@ public Builder clearTopicMessageRetentionDuration() {
      * in responses from the server; it is ignored if it is set in any requests.
      * 
* - * - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Duration.Builder getTopicMessageRetentionDurationBuilder() { - + onChanged(); return getTopicMessageRetentionDurationFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Indicates the minimum duration for which a message is retained
      * after it is published to the subscription's topic. If this field is set,
@@ -3816,22 +3440,17 @@ public com.google.protobuf.Duration.Builder getTopicMessageRetentionDurationBuil
      * in responses from the server; it is ignored if it is set in any requests.
      * 
* - * - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrBuilder() { if (topicMessageRetentionDurationBuilder_ != null) { return topicMessageRetentionDurationBuilder_.getMessageOrBuilder(); } else { - return topicMessageRetentionDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : topicMessageRetentionDuration_; + return topicMessageRetentionDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : topicMessageRetentionDuration_; } } /** - * - * *
      * Output only. Indicates the minimum duration for which a message is retained
      * after it is published to the subscription's topic. If this field is set,
@@ -3841,29 +3460,24 @@ public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrB
      * in responses from the server; it is ignored if it is set in any requests.
      * 
* - * - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getTopicMessageRetentionDurationFieldBuilder() { if (topicMessageRetentionDurationBuilder_ == null) { - topicMessageRetentionDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getTopicMessageRetentionDuration(), getParentForChildren(), isClean()); + topicMessageRetentionDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTopicMessageRetentionDuration(), + getParentForChildren(), + isClean()); topicMessageRetentionDuration_ = null; } return topicMessageRetentionDurationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3873,12 +3487,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.Subscription) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.Subscription) private static final com.google.pubsub.v1.Subscription DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.Subscription(); } @@ -3887,16 +3501,16 @@ public static com.google.pubsub.v1.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 { - return new Subscription(input, extensionRegistry); - } - }; + 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 { + return new Subscription(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3911,4 +3525,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.Subscription getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java similarity index 100% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java similarity index 88% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 329ab1284..be98f0848 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; -public interface SubscriptionOrBuilder - extends +public interface SubscriptionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.Subscription) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the subscription. It must have the format
    * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -36,13 +18,10 @@ public interface SubscriptionOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the subscription. It must have the format
    * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -53,47 +32,36 @@ public interface SubscriptionOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The name of the topic from which this subscription is receiving
    * messages. Format is `projects/{project}/topics/{topic}`. The value of this
    * field will be `_deleted-topic_` if the topic has been deleted.
    * 
* - * - * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The topic. */ java.lang.String getTopic(); /** - * - * *
    * Required. The name of the topic from which this subscription is receiving
    * messages. Format is `projects/{project}/topics/{topic}`. The value of this
    * field will be `_deleted-topic_` if the topic has been deleted.
    * 
* - * - * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for topic. */ - com.google.protobuf.ByteString getTopicBytes(); + com.google.protobuf.ByteString + getTopicBytes(); /** - * - * *
    * If push delivery is used with this subscription, this field is
    * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -101,13 +69,10 @@ public interface SubscriptionOrBuilder
    * 
* * .google.pubsub.v1.PushConfig push_config = 4; - * * @return Whether the pushConfig field is set. */ boolean hasPushConfig(); /** - * - * *
    * If push delivery is used with this subscription, this field is
    * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -115,13 +80,10 @@ public interface SubscriptionOrBuilder
    * 
* * .google.pubsub.v1.PushConfig push_config = 4; - * * @return The pushConfig. */ com.google.pubsub.v1.PushConfig getPushConfig(); /** - * - * *
    * If push delivery is used with this subscription, this field is
    * used to configure it. An empty `pushConfig` signifies that the subscriber
@@ -133,8 +95,6 @@ public interface SubscriptionOrBuilder
   com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * The approximate amount of time (on a best-effort basis) Pub/Sub waits for
    * the subscriber to acknowledge receipt before resending the message. In the
@@ -156,14 +116,11 @@ public interface SubscriptionOrBuilder
    * 
* * int32 ack_deadline_seconds = 5; - * * @return The ackDeadlineSeconds. */ int getAckDeadlineSeconds(); /** - * - * *
    * Indicates whether to retain acknowledged messages. If true, then
    * messages are not expunged from the subscription's backlog, even if they are
@@ -174,14 +131,11 @@ public interface SubscriptionOrBuilder
    * 
* * bool retain_acked_messages = 7; - * * @return The retainAckedMessages. */ boolean getRetainAckedMessages(); /** - * - * *
    * How long to retain unacknowledged messages in the subscription's backlog,
    * from the moment a message is published.
@@ -192,13 +146,10 @@ public interface SubscriptionOrBuilder
    * 
* * .google.protobuf.Duration message_retention_duration = 8; - * * @return Whether the messageRetentionDuration field is set. */ boolean hasMessageRetentionDuration(); /** - * - * *
    * How long to retain unacknowledged messages in the subscription's backlog,
    * from the moment a message is published.
@@ -209,13 +160,10 @@ public interface SubscriptionOrBuilder
    * 
* * .google.protobuf.Duration message_retention_duration = 8; - * * @return The messageRetentionDuration. */ com.google.protobuf.Duration getMessageRetentionDuration(); /** - * - * *
    * How long to retain unacknowledged messages in the subscription's backlog,
    * from the moment a message is published.
@@ -230,8 +178,6 @@ public interface SubscriptionOrBuilder
   com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder();
 
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -241,8 +187,6 @@ public interface SubscriptionOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -250,13 +194,15 @@ public interface SubscriptionOrBuilder
    *
    * map<string, string> labels = 9;
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -264,10 +210,9 @@ public interface SubscriptionOrBuilder
    *
    * map<string, string> labels = 9;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -275,10 +220,11 @@ public interface SubscriptionOrBuilder
    *
    * map<string, string> labels = 9;
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    * managing labels</a>.
@@ -286,11 +232,11 @@ public interface SubscriptionOrBuilder
    *
    * map<string, string> labels = 9;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * If true, messages published with the same `ordering_key` in `PubsubMessage`
    * will be delivered to the subscribers in the order in which they
@@ -299,14 +245,11 @@ public interface SubscriptionOrBuilder
    * 
* * bool enable_message_ordering = 10; - * * @return The enableMessageOrdering. */ boolean getEnableMessageOrdering(); /** - * - * *
    * A policy that specifies the conditions for this subscription's expiration.
    * A subscription is considered active as long as any connected subscriber is
@@ -317,13 +260,10 @@ public interface SubscriptionOrBuilder
    * 
* * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; - * * @return Whether the expirationPolicy field is set. */ boolean hasExpirationPolicy(); /** - * - * *
    * A policy that specifies the conditions for this subscription's expiration.
    * A subscription is considered active as long as any connected subscriber is
@@ -334,13 +274,10 @@ public interface SubscriptionOrBuilder
    * 
* * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; - * * @return The expirationPolicy. */ com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy(); /** - * - * *
    * A policy that specifies the conditions for this subscription's expiration.
    * A subscription is considered active as long as any connected subscriber is
@@ -355,8 +292,6 @@ public interface SubscriptionOrBuilder
   com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuilder();
 
   /**
-   *
-   *
    * 
    * An expression written in the Pub/Sub [filter
    * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -366,13 +301,10 @@ public interface SubscriptionOrBuilder
    * 
* * string filter = 12; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * An expression written in the Pub/Sub [filter
    * language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
@@ -382,14 +314,12 @@ public interface SubscriptionOrBuilder
    * 
* * string filter = 12; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * A policy that specifies the conditions for dead lettering messages in
    * this subscription. If dead_letter_policy is not set, dead lettering
@@ -401,13 +331,10 @@ public interface SubscriptionOrBuilder
    * 
* * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; - * * @return Whether the deadLetterPolicy field is set. */ boolean hasDeadLetterPolicy(); /** - * - * *
    * A policy that specifies the conditions for dead lettering messages in
    * this subscription. If dead_letter_policy is not set, dead lettering
@@ -419,13 +346,10 @@ public interface SubscriptionOrBuilder
    * 
* * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; - * * @return The deadLetterPolicy. */ com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy(); /** - * - * *
    * A policy that specifies the conditions for dead lettering messages in
    * this subscription. If dead_letter_policy is not set, dead lettering
@@ -441,8 +365,6 @@ public interface SubscriptionOrBuilder
   com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuilder();
 
   /**
-   *
-   *
    * 
    * A policy that specifies how Pub/Sub retries message delivery for this
    * subscription.
@@ -453,13 +375,10 @@ public interface SubscriptionOrBuilder
    * 
* * .google.pubsub.v1.RetryPolicy retry_policy = 14; - * * @return Whether the retryPolicy field is set. */ boolean hasRetryPolicy(); /** - * - * *
    * A policy that specifies how Pub/Sub retries message delivery for this
    * subscription.
@@ -470,13 +389,10 @@ public interface SubscriptionOrBuilder
    * 
* * .google.pubsub.v1.RetryPolicy retry_policy = 14; - * * @return The retryPolicy. */ com.google.pubsub.v1.RetryPolicy getRetryPolicy(); /** - * - * *
    * A policy that specifies how Pub/Sub retries message delivery for this
    * subscription.
@@ -491,8 +407,6 @@ public interface SubscriptionOrBuilder
   com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder();
 
   /**
-   *
-   *
    * 
    * Indicates whether the subscription is detached from its topic. Detached
    * subscriptions don't receive messages from their topic and don't retain any
@@ -502,14 +416,11 @@ public interface SubscriptionOrBuilder
    * 
* * bool detached = 15; - * * @return The detached. */ boolean getDetached(); /** - * - * *
    * Output only. Indicates the minimum duration for which a message is retained
    * after it is published to the subscription's topic. If this field is set,
@@ -519,16 +430,11 @@ public interface SubscriptionOrBuilder
    * in responses from the server; it is ignored if it is set in any requests.
    * 
* - * - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the topicMessageRetentionDuration field is set. */ boolean hasTopicMessageRetentionDuration(); /** - * - * *
    * Output only. Indicates the minimum duration for which a message is retained
    * after it is published to the subscription's topic. If this field is set,
@@ -538,16 +444,11 @@ public interface SubscriptionOrBuilder
    * in responses from the server; it is ignored if it is set in any requests.
    * 
* - * - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The topicMessageRetentionDuration. */ com.google.protobuf.Duration getTopicMessageRetentionDuration(); /** - * - * *
    * Output only. Indicates the minimum duration for which a message is retained
    * after it is published to the subscription's topic. If this field is set,
@@ -557,9 +458,7 @@ public interface SubscriptionOrBuilder
    * in responses from the server; it is ignored if it is set in any requests.
    * 
* - * - * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrBuilder(); } diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java similarity index 74% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index f2d2bb19f..c94b6f443 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * A topic resource.
  * 
* * Protobuf type {@code google.pubsub.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.pubsub.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_ = ""; kmsKeyName_ = ""; @@ -44,15 +26,16 @@ private Topic() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Topic(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Topic( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,124 +55,115 @@ private Topic( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 26: { + com.google.pubsub.v1.MessageStoragePolicy.Builder subBuilder = null; + if (messageStoragePolicy_ != null) { + subBuilder = messageStoragePolicy_.toBuilder(); } - case 26: - { - com.google.pubsub.v1.MessageStoragePolicy.Builder subBuilder = null; - if (messageStoragePolicy_ != null) { - subBuilder = messageStoragePolicy_.toBuilder(); - } - messageStoragePolicy_ = - input.readMessage( - com.google.pubsub.v1.MessageStoragePolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(messageStoragePolicy_); - messageStoragePolicy_ = subBuilder.buildPartial(); - } - - break; + messageStoragePolicy_ = input.readMessage(com.google.pubsub.v1.MessageStoragePolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(messageStoragePolicy_); + messageStoragePolicy_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - kmsKeyName_ = s; - break; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + kmsKeyName_ = s; + break; + } + case 50: { + com.google.pubsub.v1.SchemaSettings.Builder subBuilder = null; + if (schemaSettings_ != null) { + subBuilder = schemaSettings_.toBuilder(); } - case 50: - { - com.google.pubsub.v1.SchemaSettings.Builder subBuilder = null; - if (schemaSettings_ != null) { - subBuilder = schemaSettings_.toBuilder(); - } - schemaSettings_ = - input.readMessage( - com.google.pubsub.v1.SchemaSettings.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(schemaSettings_); - schemaSettings_ = subBuilder.buildPartial(); - } - - break; + schemaSettings_ = input.readMessage(com.google.pubsub.v1.SchemaSettings.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(schemaSettings_); + schemaSettings_ = subBuilder.buildPartial(); } - case 56: - { - satisfiesPzs_ = input.readBool(); - break; + + break; + } + case 56: { + + satisfiesPzs_ = input.readBool(); + break; + } + case 66: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (messageRetentionDuration_ != null) { + subBuilder = messageRetentionDuration_.toBuilder(); } - case 66: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (messageRetentionDuration_ != null) { - subBuilder = messageRetentionDuration_.toBuilder(); - } - messageRetentionDuration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(messageRetentionDuration_); - messageRetentionDuration_ = subBuilder.buildPartial(); - } - - break; + messageRetentionDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(messageRetentionDuration_); + messageRetentionDuration_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetLabels(); 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.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_Topic_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.pubsub.v1.Topic.class, com.google.pubsub.v1.Topic.Builder.class); } @@ -197,8 +171,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the topic. It must have the format
    * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
@@ -209,7 +181,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -218,15 +189,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; } } /** - * - * *
    * Required. The name of the topic. It must have the format
    * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
@@ -237,15 +207,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -254,23 +225,24 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LABELS_FIELD_NUMBER = 2; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -279,8 +251,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -288,22 +258,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 2;
    */
+
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -312,12 +282,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 2;
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -326,16 +295,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 2;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -344,11 +313,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 2;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -358,8 +328,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int MESSAGE_STORAGE_POLICY_FIELD_NUMBER = 3;
   private com.google.pubsub.v1.MessageStoragePolicy messageStoragePolicy_;
   /**
-   *
-   *
    * 
    * Policy constraining the set of Google Cloud Platform regions where messages
    * published to the topic may be stored. If not present, then no constraints
@@ -367,7 +335,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * 
* * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; - * * @return Whether the messageStoragePolicy field is set. */ @java.lang.Override @@ -375,8 +342,6 @@ public boolean hasMessageStoragePolicy() { return messageStoragePolicy_ != null; } /** - * - * *
    * Policy constraining the set of Google Cloud Platform regions where messages
    * published to the topic may be stored. If not present, then no constraints
@@ -384,18 +349,13 @@ public boolean hasMessageStoragePolicy() {
    * 
* * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; - * * @return The messageStoragePolicy. */ @java.lang.Override public com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy() { - return messageStoragePolicy_ == null - ? com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance() - : messageStoragePolicy_; + return messageStoragePolicy_ == null ? com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance() : messageStoragePolicy_; } /** - * - * *
    * Policy constraining the set of Google Cloud Platform regions where messages
    * published to the topic may be stored. If not present, then no constraints
@@ -412,8 +372,6 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic
   public static final int KMS_KEY_NAME_FIELD_NUMBER = 5;
   private volatile java.lang.Object kmsKeyName_;
   /**
-   *
-   *
    * 
    * The resource name of the Cloud KMS CryptoKey to be used to protect access
    * to messages published on this topic.
@@ -421,7 +379,6 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic
    * 
* * string kms_key_name = 5; - * * @return The kmsKeyName. */ @java.lang.Override @@ -430,15 +387,14 @@ public java.lang.String getKmsKeyName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; } } /** - * - * *
    * The resource name of the Cloud KMS CryptoKey to be used to protect access
    * to messages published on this topic.
@@ -446,15 +402,16 @@ public java.lang.String getKmsKeyName() {
    * 
* * string kms_key_name = 5; - * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -465,14 +422,11 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { public static final int SCHEMA_SETTINGS_FIELD_NUMBER = 6; private com.google.pubsub.v1.SchemaSettings schemaSettings_; /** - * - * *
    * Settings for validating messages published against a schema.
    * 
* * .google.pubsub.v1.SchemaSettings schema_settings = 6; - * * @return Whether the schemaSettings field is set. */ @java.lang.Override @@ -480,25 +434,18 @@ public boolean hasSchemaSettings() { return schemaSettings_ != null; } /** - * - * *
    * Settings for validating messages published against a schema.
    * 
* * .google.pubsub.v1.SchemaSettings schema_settings = 6; - * * @return The schemaSettings. */ @java.lang.Override public com.google.pubsub.v1.SchemaSettings getSchemaSettings() { - return schemaSettings_ == null - ? com.google.pubsub.v1.SchemaSettings.getDefaultInstance() - : schemaSettings_; + return schemaSettings_ == null ? com.google.pubsub.v1.SchemaSettings.getDefaultInstance() : schemaSettings_; } /** - * - * *
    * Settings for validating messages published against a schema.
    * 
@@ -513,15 +460,12 @@ public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() public static final int SATISFIES_PZS_FIELD_NUMBER = 7; private boolean satisfiesPzs_; /** - * - * *
    * Reserved for future use. This field is set only in responses from the
    * server; it is ignored if it is set in any requests.
    * 
* * bool satisfies_pzs = 7; - * * @return The satisfiesPzs. */ @java.lang.Override @@ -532,8 +476,6 @@ public boolean getSatisfiesPzs() { public static final int MESSAGE_RETENTION_DURATION_FIELD_NUMBER = 8; private com.google.protobuf.Duration messageRetentionDuration_; /** - * - * *
    * Indicates the minimum duration to retain a message after it is published to
    * the topic. If this field is set, messages published to the topic in the
@@ -546,7 +488,6 @@ public boolean getSatisfiesPzs() {
    * 
* * .google.protobuf.Duration message_retention_duration = 8; - * * @return Whether the messageRetentionDuration field is set. */ @java.lang.Override @@ -554,8 +495,6 @@ public boolean hasMessageRetentionDuration() { return messageRetentionDuration_ != null; } /** - * - * *
    * Indicates the minimum duration to retain a message after it is published to
    * the topic. If this field is set, messages published to the topic in the
@@ -568,18 +507,13 @@ public boolean hasMessageRetentionDuration() {
    * 
* * .google.protobuf.Duration message_retention_duration = 8; - * * @return The messageRetentionDuration. */ @java.lang.Override public com.google.protobuf.Duration getMessageRetentionDuration() { - return messageRetentionDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : messageRetentionDuration_; + return messageRetentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : messageRetentionDuration_; } /** - * - * *
    * Indicates the minimum duration to retain a message after it is published to
    * the topic. If this field is set, messages published to the topic in the
@@ -599,7 +533,6 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -611,16 +544,21 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (!getNameBytes().isEmpty()) {
+  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_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        2);
     if (messageStoragePolicy_ != null) {
       output.writeMessage(3, getMessageStoragePolicy());
     }
-    if (!getKmsKeyNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 5, kmsKeyName_);
     }
     if (schemaSettings_ != null) {
@@ -641,36 +579,37 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (!getNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labels__);
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(2, labels__);
     }
     if (messageStoragePolicy_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMessageStoragePolicy());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getMessageStoragePolicy());
     }
-    if (!getKmsKeyNameBytes().isEmpty()) {
+    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, kmsKeyName_);
     }
     if (schemaSettings_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSchemaSettings());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, getSchemaSettings());
     }
     if (satisfiesPzs_ != false) {
-      size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, satisfiesPzs_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBoolSize(7, satisfiesPzs_);
     }
     if (messageRetentionDuration_ != null) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              8, getMessageRetentionDuration());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, getMessageRetentionDuration());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -680,28 +619,35 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.pubsub.v1.Topic)) {
       return super.equals(obj);
     }
     com.google.pubsub.v1.Topic other = (com.google.pubsub.v1.Topic) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (hasMessageStoragePolicy() != other.hasMessageStoragePolicy()) return false;
     if (hasMessageStoragePolicy()) {
-      if (!getMessageStoragePolicy().equals(other.getMessageStoragePolicy())) return false;
+      if (!getMessageStoragePolicy()
+          .equals(other.getMessageStoragePolicy())) return false;
     }
-    if (!getKmsKeyName().equals(other.getKmsKeyName())) return false;
+    if (!getKmsKeyName()
+        .equals(other.getKmsKeyName())) return false;
     if (hasSchemaSettings() != other.hasSchemaSettings()) return false;
     if (hasSchemaSettings()) {
-      if (!getSchemaSettings().equals(other.getSchemaSettings())) return false;
+      if (!getSchemaSettings()
+          .equals(other.getSchemaSettings())) return false;
     }
-    if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false;
+    if (getSatisfiesPzs()
+        != other.getSatisfiesPzs()) return false;
     if (hasMessageRetentionDuration() != other.hasMessageRetentionDuration()) return false;
     if (hasMessageRetentionDuration()) {
-      if (!getMessageRetentionDuration().equals(other.getMessageRetentionDuration())) return false;
+      if (!getMessageRetentionDuration()
+          .equals(other.getMessageRetentionDuration())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -731,7 +677,8 @@ public int hashCode() {
       hash = (53 * hash) + getSchemaSettings().hashCode();
     }
     hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+        getSatisfiesPzs());
     if (hasMessageRetentionDuration()) {
       hash = (37 * hash) + MESSAGE_RETENTION_DURATION_FIELD_NUMBER;
       hash = (53 * hash) + getMessageRetentionDuration().hashCode();
@@ -741,142 +688,138 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.pubsub.v1.Topic parseFrom(java.nio.ByteBuffer data)
+  public static com.google.pubsub.v1.Topic parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.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.pubsub.v1.Topic parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.pubsub.v1.Topic parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.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.pubsub.v1.Topic parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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.pubsub.v1.Topic parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.pubsub.v1.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.pubsub.v1.Topic parseFrom(com.google.protobuf.CodedInputStream input)
+  public static com.google.pubsub.v1.Topic parseFrom(
+      com.google.protobuf.CodedInputStream 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.pubsub.v1.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.pubsub.v1.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;
   }
   /**
-   *
-   *
    * 
    * A topic resource.
    * 
* * Protobuf type {@code google.pubsub.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.pubsub.v1.Topic) com.google.pubsub.v1.TopicOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 2: return internalGetMutableLabels(); 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.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_Topic_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.pubsub.v1.Topic.class, com.google.pubsub.v1.Topic.Builder.class); } @@ -886,15 +829,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -927,7 +871,8 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_descriptor; } @@ -977,39 +922,38 @@ public com.google.pubsub.v1.Topic 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.pubsub.v1.Topic) { - return mergeFrom((com.google.pubsub.v1.Topic) other); + return mergeFrom((com.google.pubsub.v1.Topic)other); } else { super.mergeFrom(other); return this; @@ -1022,7 +966,8 @@ public Builder mergeFrom(com.google.pubsub.v1.Topic other) { name_ = other.name_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (other.hasMessageStoragePolicy()) { mergeMessageStoragePolicy(other.getMessageStoragePolicy()); } @@ -1067,13 +1012,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the topic. It must have the format
      * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
@@ -1084,13 +1026,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -1099,8 +1041,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the topic. It must have the format
      * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
@@ -1111,14 +1051,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -1126,8 +1067,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the topic. It must have the format
      * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
@@ -1138,22 +1077,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the topic. It must have the format
      * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
@@ -1164,18 +1101,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the topic. It must have the format
      * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
@@ -1186,36 +1120,37 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1227,8 +1162,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1236,22 +1169,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 2;
      */
+
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1260,12 +1193,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 2;
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1274,17 +1206,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 2;
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1293,11 +1224,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 2;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1305,12 +1237,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1318,21 +1249,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 2;
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+    getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1340,19 +1273,16 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 2;
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * See [Creating and managing labels]
      * (https://cloud.google.com/pubsub/docs/labels).
@@ -1360,20 +1290,18 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 2;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private com.google.pubsub.v1.MessageStoragePolicy messageStoragePolicy_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.pubsub.v1.MessageStoragePolicy,
-            com.google.pubsub.v1.MessageStoragePolicy.Builder,
-            com.google.pubsub.v1.MessageStoragePolicyOrBuilder>
-        messageStoragePolicyBuilder_;
+        com.google.pubsub.v1.MessageStoragePolicy, com.google.pubsub.v1.MessageStoragePolicy.Builder, com.google.pubsub.v1.MessageStoragePolicyOrBuilder> messageStoragePolicyBuilder_;
     /**
-     *
-     *
      * 
      * Policy constraining the set of Google Cloud Platform regions where messages
      * published to the topic may be stored. If not present, then no constraints
@@ -1381,15 +1309,12 @@ public Builder putAllLabels(java.util.Map va
      * 
* * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; - * * @return Whether the messageStoragePolicy field is set. */ public boolean hasMessageStoragePolicy() { return messageStoragePolicyBuilder_ != null || messageStoragePolicy_ != null; } /** - * - * *
      * Policy constraining the set of Google Cloud Platform regions where messages
      * published to the topic may be stored. If not present, then no constraints
@@ -1397,21 +1322,16 @@ public boolean hasMessageStoragePolicy() {
      * 
* * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; - * * @return The messageStoragePolicy. */ public com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy() { if (messageStoragePolicyBuilder_ == null) { - return messageStoragePolicy_ == null - ? com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance() - : messageStoragePolicy_; + return messageStoragePolicy_ == null ? com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance() : messageStoragePolicy_; } else { return messageStoragePolicyBuilder_.getMessage(); } } /** - * - * *
      * Policy constraining the set of Google Cloud Platform regions where messages
      * published to the topic may be stored. If not present, then no constraints
@@ -1434,8 +1354,6 @@ public Builder setMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePolicy
       return this;
     }
     /**
-     *
-     *
      * 
      * Policy constraining the set of Google Cloud Platform regions where messages
      * published to the topic may be stored. If not present, then no constraints
@@ -1456,8 +1374,6 @@ public Builder setMessageStoragePolicy(
       return this;
     }
     /**
-     *
-     *
      * 
      * Policy constraining the set of Google Cloud Platform regions where messages
      * published to the topic may be stored. If not present, then no constraints
@@ -1470,9 +1386,7 @@ public Builder mergeMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePoli
       if (messageStoragePolicyBuilder_ == null) {
         if (messageStoragePolicy_ != null) {
           messageStoragePolicy_ =
-              com.google.pubsub.v1.MessageStoragePolicy.newBuilder(messageStoragePolicy_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.pubsub.v1.MessageStoragePolicy.newBuilder(messageStoragePolicy_).mergeFrom(value).buildPartial();
         } else {
           messageStoragePolicy_ = value;
         }
@@ -1484,8 +1398,6 @@ public Builder mergeMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePoli
       return this;
     }
     /**
-     *
-     *
      * 
      * Policy constraining the set of Google Cloud Platform regions where messages
      * published to the topic may be stored. If not present, then no constraints
@@ -1506,8 +1418,6 @@ public Builder clearMessageStoragePolicy() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Policy constraining the set of Google Cloud Platform regions where messages
      * published to the topic may be stored. If not present, then no constraints
@@ -1517,13 +1427,11 @@ public Builder clearMessageStoragePolicy() {
      * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3;
      */
     public com.google.pubsub.v1.MessageStoragePolicy.Builder getMessageStoragePolicyBuilder() {
-
+      
       onChanged();
       return getMessageStoragePolicyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Policy constraining the set of Google Cloud Platform regions where messages
      * published to the topic may be stored. If not present, then no constraints
@@ -1536,14 +1444,11 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic
       if (messageStoragePolicyBuilder_ != null) {
         return messageStoragePolicyBuilder_.getMessageOrBuilder();
       } else {
-        return messageStoragePolicy_ == null
-            ? com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance()
-            : messageStoragePolicy_;
+        return messageStoragePolicy_ == null ?
+            com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance() : messageStoragePolicy_;
       }
     }
     /**
-     *
-     *
      * 
      * Policy constraining the set of Google Cloud Platform regions where messages
      * published to the topic may be stored. If not present, then no constraints
@@ -1553,17 +1458,14 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic
      * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.pubsub.v1.MessageStoragePolicy,
-            com.google.pubsub.v1.MessageStoragePolicy.Builder,
-            com.google.pubsub.v1.MessageStoragePolicyOrBuilder>
+        com.google.pubsub.v1.MessageStoragePolicy, com.google.pubsub.v1.MessageStoragePolicy.Builder, com.google.pubsub.v1.MessageStoragePolicyOrBuilder> 
         getMessageStoragePolicyFieldBuilder() {
       if (messageStoragePolicyBuilder_ == null) {
-        messageStoragePolicyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.pubsub.v1.MessageStoragePolicy,
-                com.google.pubsub.v1.MessageStoragePolicy.Builder,
-                com.google.pubsub.v1.MessageStoragePolicyOrBuilder>(
-                getMessageStoragePolicy(), getParentForChildren(), isClean());
+        messageStoragePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.pubsub.v1.MessageStoragePolicy, com.google.pubsub.v1.MessageStoragePolicy.Builder, com.google.pubsub.v1.MessageStoragePolicyOrBuilder>(
+                getMessageStoragePolicy(),
+                getParentForChildren(),
+                isClean());
         messageStoragePolicy_ = null;
       }
       return messageStoragePolicyBuilder_;
@@ -1571,8 +1473,6 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic
 
     private java.lang.Object kmsKeyName_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the Cloud KMS CryptoKey to be used to protect access
      * to messages published on this topic.
@@ -1580,13 +1480,13 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic
      * 
* * string kms_key_name = 5; - * * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; @@ -1595,8 +1495,6 @@ public java.lang.String getKmsKeyName() { } } /** - * - * *
      * The resource name of the Cloud KMS CryptoKey to be used to protect access
      * to messages published on this topic.
@@ -1604,14 +1502,15 @@ public java.lang.String getKmsKeyName() {
      * 
* * string kms_key_name = 5; - * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -1619,8 +1518,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } /** - * - * *
      * The resource name of the Cloud KMS CryptoKey to be used to protect access
      * to messages published on this topic.
@@ -1628,22 +1525,20 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
      * 
* * string kms_key_name = 5; - * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName(java.lang.String value) { + public Builder setKmsKeyName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsKeyName_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the Cloud KMS CryptoKey to be used to protect access
      * to messages published on this topic.
@@ -1651,18 +1546,15 @@ public Builder setKmsKeyName(java.lang.String value) {
      * 
* * string kms_key_name = 5; - * * @return This builder for chaining. */ public Builder clearKmsKeyName() { - + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); onChanged(); return this; } /** - * - * *
      * The resource name of the Cloud KMS CryptoKey to be used to protect access
      * to messages published on this topic.
@@ -1670,16 +1562,16 @@ public Builder clearKmsKeyName() {
      * 
* * string kms_key_name = 5; - * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + public Builder setKmsKeyNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; onChanged(); return this; @@ -1687,47 +1579,34 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { private com.google.pubsub.v1.SchemaSettings schemaSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.SchemaSettings, - com.google.pubsub.v1.SchemaSettings.Builder, - com.google.pubsub.v1.SchemaSettingsOrBuilder> - schemaSettingsBuilder_; + com.google.pubsub.v1.SchemaSettings, com.google.pubsub.v1.SchemaSettings.Builder, com.google.pubsub.v1.SchemaSettingsOrBuilder> schemaSettingsBuilder_; /** - * - * *
      * Settings for validating messages published against a schema.
      * 
* * .google.pubsub.v1.SchemaSettings schema_settings = 6; - * * @return Whether the schemaSettings field is set. */ public boolean hasSchemaSettings() { return schemaSettingsBuilder_ != null || schemaSettings_ != null; } /** - * - * *
      * Settings for validating messages published against a schema.
      * 
* * .google.pubsub.v1.SchemaSettings schema_settings = 6; - * * @return The schemaSettings. */ public com.google.pubsub.v1.SchemaSettings getSchemaSettings() { if (schemaSettingsBuilder_ == null) { - return schemaSettings_ == null - ? com.google.pubsub.v1.SchemaSettings.getDefaultInstance() - : schemaSettings_; + return schemaSettings_ == null ? com.google.pubsub.v1.SchemaSettings.getDefaultInstance() : schemaSettings_; } else { return schemaSettingsBuilder_.getMessage(); } } /** - * - * *
      * Settings for validating messages published against a schema.
      * 
@@ -1748,15 +1627,14 @@ public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { return this; } /** - * - * *
      * Settings for validating messages published against a schema.
      * 
* * .google.pubsub.v1.SchemaSettings schema_settings = 6; */ - public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings.Builder builderForValue) { + public Builder setSchemaSettings( + com.google.pubsub.v1.SchemaSettings.Builder builderForValue) { if (schemaSettingsBuilder_ == null) { schemaSettings_ = builderForValue.build(); onChanged(); @@ -1767,8 +1645,6 @@ public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings.Builder bui return this; } /** - * - * *
      * Settings for validating messages published against a schema.
      * 
@@ -1779,9 +1655,7 @@ public Builder mergeSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { if (schemaSettingsBuilder_ == null) { if (schemaSettings_ != null) { schemaSettings_ = - com.google.pubsub.v1.SchemaSettings.newBuilder(schemaSettings_) - .mergeFrom(value) - .buildPartial(); + com.google.pubsub.v1.SchemaSettings.newBuilder(schemaSettings_).mergeFrom(value).buildPartial(); } else { schemaSettings_ = value; } @@ -1793,8 +1667,6 @@ public Builder mergeSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { return this; } /** - * - * *
      * Settings for validating messages published against a schema.
      * 
@@ -1813,8 +1685,6 @@ public Builder clearSchemaSettings() { return this; } /** - * - * *
      * Settings for validating messages published against a schema.
      * 
@@ -1822,13 +1692,11 @@ public Builder clearSchemaSettings() { * .google.pubsub.v1.SchemaSettings schema_settings = 6; */ public com.google.pubsub.v1.SchemaSettings.Builder getSchemaSettingsBuilder() { - + onChanged(); return getSchemaSettingsFieldBuilder().getBuilder(); } /** - * - * *
      * Settings for validating messages published against a schema.
      * 
@@ -1839,14 +1707,11 @@ public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() if (schemaSettingsBuilder_ != null) { return schemaSettingsBuilder_.getMessageOrBuilder(); } else { - return schemaSettings_ == null - ? com.google.pubsub.v1.SchemaSettings.getDefaultInstance() - : schemaSettings_; + return schemaSettings_ == null ? + com.google.pubsub.v1.SchemaSettings.getDefaultInstance() : schemaSettings_; } } /** - * - * *
      * Settings for validating messages published against a schema.
      * 
@@ -1854,33 +1719,27 @@ public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() * .google.pubsub.v1.SchemaSettings schema_settings = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.SchemaSettings, - com.google.pubsub.v1.SchemaSettings.Builder, - com.google.pubsub.v1.SchemaSettingsOrBuilder> + com.google.pubsub.v1.SchemaSettings, com.google.pubsub.v1.SchemaSettings.Builder, com.google.pubsub.v1.SchemaSettingsOrBuilder> getSchemaSettingsFieldBuilder() { if (schemaSettingsBuilder_ == null) { - schemaSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.SchemaSettings, - com.google.pubsub.v1.SchemaSettings.Builder, - com.google.pubsub.v1.SchemaSettingsOrBuilder>( - getSchemaSettings(), getParentForChildren(), isClean()); + schemaSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.SchemaSettings, com.google.pubsub.v1.SchemaSettings.Builder, com.google.pubsub.v1.SchemaSettingsOrBuilder>( + getSchemaSettings(), + getParentForChildren(), + isClean()); schemaSettings_ = null; } return schemaSettingsBuilder_; } - private boolean satisfiesPzs_; + private boolean satisfiesPzs_ ; /** - * - * *
      * Reserved for future use. This field is set only in responses from the
      * server; it is ignored if it is set in any requests.
      * 
* * bool satisfies_pzs = 7; - * * @return The satisfiesPzs. */ @java.lang.Override @@ -1888,38 +1747,32 @@ public boolean getSatisfiesPzs() { return satisfiesPzs_; } /** - * - * *
      * Reserved for future use. This field is set only in responses from the
      * server; it is ignored if it is set in any requests.
      * 
* * bool satisfies_pzs = 7; - * * @param value The satisfiesPzs to set. * @return This builder for chaining. */ public Builder setSatisfiesPzs(boolean value) { - + satisfiesPzs_ = value; onChanged(); return this; } /** - * - * *
      * Reserved for future use. This field is set only in responses from the
      * server; it is ignored if it is set in any requests.
      * 
* * bool satisfies_pzs = 7; - * * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { - + satisfiesPzs_ = false; onChanged(); return this; @@ -1927,13 +1780,8 @@ public Builder clearSatisfiesPzs() { private com.google.protobuf.Duration messageRetentionDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - messageRetentionDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> messageRetentionDurationBuilder_; /** - * - * *
      * Indicates the minimum duration to retain a message after it is published to
      * the topic. If this field is set, messages published to the topic in the
@@ -1946,15 +1794,12 @@ public Builder clearSatisfiesPzs() {
      * 
* * .google.protobuf.Duration message_retention_duration = 8; - * * @return Whether the messageRetentionDuration field is set. */ public boolean hasMessageRetentionDuration() { return messageRetentionDurationBuilder_ != null || messageRetentionDuration_ != null; } /** - * - * *
      * Indicates the minimum duration to retain a message after it is published to
      * the topic. If this field is set, messages published to the topic in the
@@ -1967,21 +1812,16 @@ public boolean hasMessageRetentionDuration() {
      * 
* * .google.protobuf.Duration message_retention_duration = 8; - * * @return The messageRetentionDuration. */ public com.google.protobuf.Duration getMessageRetentionDuration() { if (messageRetentionDurationBuilder_ == null) { - return messageRetentionDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : messageRetentionDuration_; + return messageRetentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : messageRetentionDuration_; } else { return messageRetentionDurationBuilder_.getMessage(); } } /** - * - * *
      * Indicates the minimum duration to retain a message after it is published to
      * the topic. If this field is set, messages published to the topic in the
@@ -2009,8 +1849,6 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Indicates the minimum duration to retain a message after it is published to
      * the topic. If this field is set, messages published to the topic in the
@@ -2036,8 +1874,6 @@ public Builder setMessageRetentionDuration(
       return this;
     }
     /**
-     *
-     *
      * 
      * Indicates the minimum duration to retain a message after it is published to
      * the topic. If this field is set, messages published to the topic in the
@@ -2055,9 +1891,7 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value)
       if (messageRetentionDurationBuilder_ == null) {
         if (messageRetentionDuration_ != null) {
           messageRetentionDuration_ =
-              com.google.protobuf.Duration.newBuilder(messageRetentionDuration_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(messageRetentionDuration_).mergeFrom(value).buildPartial();
         } else {
           messageRetentionDuration_ = value;
         }
@@ -2069,8 +1903,6 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Indicates the minimum duration to retain a message after it is published to
      * the topic. If this field is set, messages published to the topic in the
@@ -2096,8 +1928,6 @@ public Builder clearMessageRetentionDuration() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Indicates the minimum duration to retain a message after it is published to
      * the topic. If this field is set, messages published to the topic in the
@@ -2112,13 +1942,11 @@ public Builder clearMessageRetentionDuration() {
      * .google.protobuf.Duration message_retention_duration = 8;
      */
     public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() {
-
+      
       onChanged();
       return getMessageRetentionDurationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Indicates the minimum duration to retain a message after it is published to
      * the topic. If this field is set, messages published to the topic in the
@@ -2136,14 +1964,11 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde
       if (messageRetentionDurationBuilder_ != null) {
         return messageRetentionDurationBuilder_.getMessageOrBuilder();
       } else {
-        return messageRetentionDuration_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : messageRetentionDuration_;
+        return messageRetentionDuration_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : messageRetentionDuration_;
       }
     }
     /**
-     *
-     *
      * 
      * Indicates the minimum duration to retain a message after it is published to
      * the topic. If this field is set, messages published to the topic in the
@@ -2158,24 +1983,21 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde
      * .google.protobuf.Duration message_retention_duration = 8;
      */
     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> 
         getMessageRetentionDurationFieldBuilder() {
       if (messageRetentionDurationBuilder_ == null) {
-        messageRetentionDurationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getMessageRetentionDuration(), getParentForChildren(), isClean());
+        messageRetentionDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getMessageRetentionDuration(),
+                getParentForChildren(),
+                isClean());
         messageRetentionDuration_ = null;
       }
       return messageRetentionDurationBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2185,12 +2007,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.pubsub.v1.Topic)
   }
 
   // @@protoc_insertion_point(class_scope:google.pubsub.v1.Topic)
   private static final com.google.pubsub.v1.Topic DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.pubsub.v1.Topic();
   }
@@ -2199,16 +2021,16 @@ public static com.google.pubsub.v1.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 {
-          return new Topic(input, extensionRegistry);
-        }
-      };
+  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 {
+      return new Topic(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2223,4 +2045,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.pubsub.v1.Topic getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java
similarity index 100%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java
similarity index 85%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java
index e9e3dae79..688daec34 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/pubsub/v1/pubsub.proto
 
 package com.google.pubsub.v1;
 
-public interface TopicOrBuilder
-    extends
+public interface TopicOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.pubsub.v1.Topic)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The name of the topic. It must have the format
    * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
@@ -36,13 +18,10 @@ public interface TopicOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the topic. It must have the format
    * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
@@ -53,14 +32,12 @@ public interface TopicOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -70,8 +47,6 @@ public interface TopicOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -79,13 +54,15 @@ public interface TopicOrBuilder
    *
    * map<string, string> labels = 2;
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -93,10 +70,9 @@ public interface TopicOrBuilder
    *
    * map<string, string> labels = 2;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -104,10 +80,11 @@ public interface TopicOrBuilder
    *
    * map<string, string> labels = 2;
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * See [Creating and managing labels]
    * (https://cloud.google.com/pubsub/docs/labels).
@@ -115,11 +92,11 @@ public interface TopicOrBuilder
    *
    * map<string, string> labels = 2;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Policy constraining the set of Google Cloud Platform regions where messages
    * published to the topic may be stored. If not present, then no constraints
@@ -127,13 +104,10 @@ public interface TopicOrBuilder
    * 
* * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; - * * @return Whether the messageStoragePolicy field is set. */ boolean hasMessageStoragePolicy(); /** - * - * *
    * Policy constraining the set of Google Cloud Platform regions where messages
    * published to the topic may be stored. If not present, then no constraints
@@ -141,13 +115,10 @@ public interface TopicOrBuilder
    * 
* * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; - * * @return The messageStoragePolicy. */ com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy(); /** - * - * *
    * Policy constraining the set of Google Cloud Platform regions where messages
    * published to the topic may be stored. If not present, then no constraints
@@ -159,8 +130,6 @@ public interface TopicOrBuilder
   com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolicyOrBuilder();
 
   /**
-   *
-   *
    * 
    * The resource name of the Cloud KMS CryptoKey to be used to protect access
    * to messages published on this topic.
@@ -168,13 +137,10 @@ public interface TopicOrBuilder
    * 
* * string kms_key_name = 5; - * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** - * - * *
    * The resource name of the Cloud KMS CryptoKey to be used to protect access
    * to messages published on this topic.
@@ -182,38 +148,30 @@ public interface TopicOrBuilder
    * 
* * string kms_key_name = 5; - * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString getKmsKeyNameBytes(); + com.google.protobuf.ByteString + getKmsKeyNameBytes(); /** - * - * *
    * Settings for validating messages published against a schema.
    * 
* * .google.pubsub.v1.SchemaSettings schema_settings = 6; - * * @return Whether the schemaSettings field is set. */ boolean hasSchemaSettings(); /** - * - * *
    * Settings for validating messages published against a schema.
    * 
* * .google.pubsub.v1.SchemaSettings schema_settings = 6; - * * @return The schemaSettings. */ com.google.pubsub.v1.SchemaSettings getSchemaSettings(); /** - * - * *
    * Settings for validating messages published against a schema.
    * 
@@ -223,22 +181,17 @@ public interface TopicOrBuilder com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder(); /** - * - * *
    * Reserved for future use. This field is set only in responses from the
    * server; it is ignored if it is set in any requests.
    * 
* * bool satisfies_pzs = 7; - * * @return The satisfiesPzs. */ boolean getSatisfiesPzs(); /** - * - * *
    * Indicates the minimum duration to retain a message after it is published to
    * the topic. If this field is set, messages published to the topic in the
@@ -251,13 +204,10 @@ public interface TopicOrBuilder
    * 
* * .google.protobuf.Duration message_retention_duration = 8; - * * @return Whether the messageRetentionDuration field is set. */ boolean hasMessageRetentionDuration(); /** - * - * *
    * Indicates the minimum duration to retain a message after it is published to
    * the topic. If this field is set, messages published to the topic in the
@@ -270,13 +220,10 @@ public interface TopicOrBuilder
    * 
* * .google.protobuf.Duration message_retention_duration = 8; - * * @return The messageRetentionDuration. */ com.google.protobuf.Duration getMessageRetentionDuration(); /** - * - * *
    * Indicates the minimum duration to retain a message after it is published to
    * the topic. If this field is set, messages published to the topic in the
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java
similarity index 69%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java
index 078d0d1be..e2e270ace 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/pubsub/v1/pubsub.proto
 
 package com.google.pubsub.v1;
 
 /**
- *
- *
  * 
  * Request for the UpdateSnapshot method.
  * 
* * Protobuf type {@code google.pubsub.v1.UpdateSnapshotRequest} */ -public final class UpdateSnapshotRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateSnapshotRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.UpdateSnapshotRequest) UpdateSnapshotRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateSnapshotRequest.newBuilder() to construct. private UpdateSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateSnapshotRequest() {} + private UpdateSnapshotRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateSnapshotRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateSnapshotRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,81 +52,72 @@ private UpdateSnapshotRequest( case 0: done = true; break; - case 10: - { - com.google.pubsub.v1.Snapshot.Builder subBuilder = null; - if (snapshot_ != null) { - subBuilder = snapshot_.toBuilder(); - } - snapshot_ = - input.readMessage(com.google.pubsub.v1.Snapshot.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(snapshot_); - snapshot_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.pubsub.v1.Snapshot.Builder subBuilder = null; + if (snapshot_ != null) { + subBuilder = snapshot_.toBuilder(); + } + snapshot_ = input.readMessage(com.google.pubsub.v1.Snapshot.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(snapshot_); + snapshot_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.UpdateSnapshotRequest.class, - com.google.pubsub.v1.UpdateSnapshotRequest.Builder.class); + com.google.pubsub.v1.UpdateSnapshotRequest.class, com.google.pubsub.v1.UpdateSnapshotRequest.Builder.class); } public static final int SNAPSHOT_FIELD_NUMBER = 1; private com.google.pubsub.v1.Snapshot snapshot_; /** - * - * *
    * Required. The updated snapshot object.
    * 
* * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the snapshot field is set. */ @java.lang.Override @@ -150,14 +125,11 @@ public boolean hasSnapshot() { return snapshot_ != null; } /** - * - * *
    * Required. The updated snapshot object.
    * 
* * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The snapshot. */ @java.lang.Override @@ -165,8 +137,6 @@ public com.google.pubsub.v1.Snapshot getSnapshot() { return snapshot_ == null ? com.google.pubsub.v1.Snapshot.getDefaultInstance() : snapshot_; } /** - * - * *
    * Required. The updated snapshot object.
    * 
@@ -181,16 +151,12 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Indicates which fields in the provided snapshot to update.
    * Must be specified and non-empty.
    * 
* - * .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 @@ -198,16 +164,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Indicates which fields in the provided snapshot to update.
    * Must be specified and non-empty.
    * 
* - * .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 @@ -215,15 +177,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Indicates which fields in the provided snapshot to update.
    * Must be specified and non-empty.
    * 
* - * .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() { @@ -231,7 +190,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,7 +201,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (snapshot_ != null) { output.writeMessage(1, getSnapshot()); } @@ -260,10 +219,12 @@ public int getSerializedSize() { size = 0; if (snapshot_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSnapshot()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSnapshot()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -273,21 +234,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.UpdateSnapshotRequest)) { return super.equals(obj); } - com.google.pubsub.v1.UpdateSnapshotRequest other = - (com.google.pubsub.v1.UpdateSnapshotRequest) obj; + com.google.pubsub.v1.UpdateSnapshotRequest other = (com.google.pubsub.v1.UpdateSnapshotRequest) obj; if (hasSnapshot() != other.hasSnapshot()) return false; if (hasSnapshot()) { - if (!getSnapshot().equals(other.getSnapshot())) return false; + if (!getSnapshot() + .equals(other.getSnapshot())) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -313,127 +275,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.UpdateSnapshotRequest 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.pubsub.v1.UpdateSnapshotRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.pubsub.v1.UpdateSnapshotRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.UpdateSnapshotRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.UpdateSnapshotRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.UpdateSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 the UpdateSnapshot method.
    * 
* * Protobuf type {@code google.pubsub.v1.UpdateSnapshotRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.UpdateSnapshotRequest) com.google.pubsub.v1.UpdateSnapshotRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.UpdateSnapshotRequest.class, - com.google.pubsub.v1.UpdateSnapshotRequest.Builder.class); + com.google.pubsub.v1.UpdateSnapshotRequest.class, com.google.pubsub.v1.UpdateSnapshotRequest.Builder.class); } // Construct using com.google.pubsub.v1.UpdateSnapshotRequest.newBuilder() @@ -441,15 +394,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -469,9 +423,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; } @java.lang.Override @@ -490,8 +444,7 @@ public com.google.pubsub.v1.UpdateSnapshotRequest build() { @java.lang.Override public com.google.pubsub.v1.UpdateSnapshotRequest buildPartial() { - com.google.pubsub.v1.UpdateSnapshotRequest result = - new com.google.pubsub.v1.UpdateSnapshotRequest(this); + com.google.pubsub.v1.UpdateSnapshotRequest result = new com.google.pubsub.v1.UpdateSnapshotRequest(this); if (snapshotBuilder_ == null) { result.snapshot_ = snapshot_; } else { @@ -510,39 +463,38 @@ public com.google.pubsub.v1.UpdateSnapshotRequest 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.pubsub.v1.UpdateSnapshotRequest) { - return mergeFrom((com.google.pubsub.v1.UpdateSnapshotRequest) other); + return mergeFrom((com.google.pubsub.v1.UpdateSnapshotRequest)other); } else { super.mergeFrom(other); return this; @@ -588,35 +540,24 @@ public Builder mergeFrom( private com.google.pubsub.v1.Snapshot snapshot_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Snapshot, - com.google.pubsub.v1.Snapshot.Builder, - com.google.pubsub.v1.SnapshotOrBuilder> - snapshotBuilder_; + com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder> snapshotBuilder_; /** - * - * *
      * Required. The updated snapshot object.
      * 
* - * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the snapshot field is set. */ public boolean hasSnapshot() { return snapshotBuilder_ != null || snapshot_ != null; } /** - * - * *
      * Required. The updated snapshot object.
      * 
* - * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The snapshot. */ public com.google.pubsub.v1.Snapshot getSnapshot() { @@ -627,14 +568,11 @@ public com.google.pubsub.v1.Snapshot getSnapshot() { } } /** - * - * *
      * Required. The updated snapshot object.
      * 
* - * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSnapshot(com.google.pubsub.v1.Snapshot value) { if (snapshotBuilder_ == null) { @@ -650,16 +588,14 @@ public Builder setSnapshot(com.google.pubsub.v1.Snapshot value) { return this; } /** - * - * *
      * Required. The updated snapshot object.
      * 
* - * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSnapshot(com.google.pubsub.v1.Snapshot.Builder builderForValue) { + public Builder setSnapshot( + com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotBuilder_ == null) { snapshot_ = builderForValue.build(); onChanged(); @@ -670,20 +606,17 @@ public Builder setSnapshot(com.google.pubsub.v1.Snapshot.Builder builderForValue return this; } /** - * - * *
      * Required. The updated snapshot object.
      * 
* - * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSnapshot(com.google.pubsub.v1.Snapshot value) { if (snapshotBuilder_ == null) { if (snapshot_ != null) { snapshot_ = - com.google.pubsub.v1.Snapshot.newBuilder(snapshot_).mergeFrom(value).buildPartial(); + com.google.pubsub.v1.Snapshot.newBuilder(snapshot_).mergeFrom(value).buildPartial(); } else { snapshot_ = value; } @@ -695,14 +628,11 @@ public Builder mergeSnapshot(com.google.pubsub.v1.Snapshot value) { return this; } /** - * - * *
      * Required. The updated snapshot object.
      * 
* - * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSnapshot() { if (snapshotBuilder_ == null) { @@ -716,59 +646,48 @@ public Builder clearSnapshot() { return this; } /** - * - * *
      * Required. The updated snapshot object.
      * 
* - * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.pubsub.v1.Snapshot.Builder getSnapshotBuilder() { - + onChanged(); return getSnapshotFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The updated snapshot object.
      * 
* - * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { if (snapshotBuilder_ != null) { return snapshotBuilder_.getMessageOrBuilder(); } else { - return snapshot_ == null ? com.google.pubsub.v1.Snapshot.getDefaultInstance() : snapshot_; + return snapshot_ == null ? + com.google.pubsub.v1.Snapshot.getDefaultInstance() : snapshot_; } } /** - * - * *
      * Required. The updated snapshot object.
      * 
* - * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Snapshot, - com.google.pubsub.v1.Snapshot.Builder, - com.google.pubsub.v1.SnapshotOrBuilder> + com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder> getSnapshotFieldBuilder() { if (snapshotBuilder_ == null) { - snapshotBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Snapshot, - com.google.pubsub.v1.Snapshot.Builder, - com.google.pubsub.v1.SnapshotOrBuilder>( - getSnapshot(), getParentForChildren(), isClean()); + snapshotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder>( + getSnapshot(), + getParentForChildren(), + isClean()); snapshot_ = null; } return snapshotBuilder_; @@ -776,58 +695,42 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { 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. Indicates which fields in the provided snapshot to update.
      * Must be specified and non-empty.
      * 
* - * .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 updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. Indicates which fields in the provided snapshot to update.
      * Must be specified and non-empty.
      * 
* - * .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. Indicates which fields in the provided snapshot to update.
      * Must be specified and non-empty.
      * 
* - * .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) { @@ -843,17 +746,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Indicates which fields in the provided snapshot to update.
      * Must be specified and non-empty.
      * 
* - * .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(); onChanged(); @@ -864,21 +765,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Indicates which fields in the provided snapshot to update.
      * Must be specified and non-empty.
      * 
* - * .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 (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -890,15 +788,12 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Indicates which fields in the provided snapshot to update.
      * Must be specified and non-empty.
      * 
* - * .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() { if (updateMaskBuilder_ == null) { @@ -912,71 +807,58 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Indicates which fields in the provided snapshot to update.
      * Must be specified and non-empty.
      * 
* - * .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() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Indicates which fields in the provided snapshot to update.
      * Must be specified and non-empty.
      * 
* - * .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. Indicates which fields in the provided snapshot to update.
      * Must be specified and non-empty.
      * 
* - * .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); } @@ -986,12 +868,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.UpdateSnapshotRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.UpdateSnapshotRequest) private static final com.google.pubsub.v1.UpdateSnapshotRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.UpdateSnapshotRequest(); } @@ -1000,16 +882,16 @@ public static com.google.pubsub.v1.UpdateSnapshotRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSnapshotRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateSnapshotRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSnapshotRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateSnapshotRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1024,4 +906,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.UpdateSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java similarity index 68% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java index 2acbd1120..53e7d7fe9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; -public interface UpdateSnapshotRequestOrBuilder - extends +public interface UpdateSnapshotRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.UpdateSnapshotRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The updated snapshot object.
    * 
* * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the snapshot field is set. */ boolean hasSnapshot(); /** - * - * *
    * Required. The updated snapshot object.
    * 
* * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The snapshot. */ com.google.pubsub.v1.Snapshot getSnapshot(); /** - * - * *
    * Required. The updated snapshot object.
    * 
@@ -59,43 +35,32 @@ public interface UpdateSnapshotRequestOrBuilder com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder(); /** - * - * *
    * Required. Indicates which fields in the provided snapshot to update.
    * Must be specified and non-empty.
    * 
* - * .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. Indicates which fields in the provided snapshot to update.
    * Must be specified and non-empty.
    * 
* - * .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. Indicates which fields in the provided snapshot to update.
    * Must be specified and non-empty.
    * 
* - * .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-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java similarity index 65% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index ffed68bcf..3c920d1de 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Request for the UpdateSubscription method.
  * 
* * Protobuf type {@code google.pubsub.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.pubsub.v1.UpdateSubscriptionRequest) UpdateSubscriptionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateSubscriptionRequest.newBuilder() to construct. private UpdateSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateSubscriptionRequest() {} + private UpdateSubscriptionRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateSubscriptionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateSubscriptionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,83 +52,72 @@ private UpdateSubscriptionRequest( case 0: done = true; break; - case 10: - { - com.google.pubsub.v1.Subscription.Builder subBuilder = null; - if (subscription_ != null) { - subBuilder = subscription_.toBuilder(); - } - subscription_ = - input.readMessage(com.google.pubsub.v1.Subscription.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(subscription_); - subscription_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.pubsub.v1.Subscription.Builder subBuilder = null; + if (subscription_ != null) { + subBuilder = subscription_.toBuilder(); + } + subscription_ = input.readMessage(com.google.pubsub.v1.Subscription.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(subscription_); + subscription_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.UpdateSubscriptionRequest.class, - com.google.pubsub.v1.UpdateSubscriptionRequest.Builder.class); + com.google.pubsub.v1.UpdateSubscriptionRequest.class, com.google.pubsub.v1.UpdateSubscriptionRequest.Builder.class); } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; private com.google.pubsub.v1.Subscription subscription_; /** - * - * *
    * Required. The updated subscription object.
    * 
* - * - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subscription field is set. */ @java.lang.Override @@ -152,34 +125,23 @@ public boolean hasSubscription() { return subscription_ != null; } /** - * - * *
    * Required. The updated subscription object.
    * 
* - * - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The subscription. */ @java.lang.Override public com.google.pubsub.v1.Subscription getSubscription() { - return subscription_ == null - ? com.google.pubsub.v1.Subscription.getDefaultInstance() - : subscription_; + return subscription_ == null ? com.google.pubsub.v1.Subscription.getDefaultInstance() : subscription_; } /** - * - * *
    * Required. The updated subscription object.
    * 
* - * - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { @@ -189,16 +151,12 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Indicates which fields in the provided subscription to update.
    * Must be specified and non-empty.
    * 
* - * .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 @@ -206,16 +164,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Indicates which fields in the provided subscription to update.
    * Must be specified and non-empty.
    * 
* - * .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 @@ -223,15 +177,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Indicates which fields in the provided subscription to update.
    * Must be specified and non-empty.
    * 
* - * .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() { @@ -239,7 +190,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } 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 (subscription_ != null) { output.writeMessage(1, getSubscription()); } @@ -268,10 +219,12 @@ public int getSerializedSize() { size = 0; if (subscription_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubscription()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSubscription()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -281,21 +234,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.UpdateSubscriptionRequest)) { return super.equals(obj); } - com.google.pubsub.v1.UpdateSubscriptionRequest other = - (com.google.pubsub.v1.UpdateSubscriptionRequest) obj; + com.google.pubsub.v1.UpdateSubscriptionRequest other = (com.google.pubsub.v1.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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -321,127 +275,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.UpdateSubscriptionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.UpdateSubscriptionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.UpdateSubscriptionRequest 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.pubsub.v1.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.pubsub.v1.UpdateSubscriptionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.UpdateSubscriptionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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 the UpdateSubscription method.
    * 
* * Protobuf type {@code google.pubsub.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.pubsub.v1.UpdateSubscriptionRequest) com.google.pubsub.v1.UpdateSubscriptionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.UpdateSubscriptionRequest.class, - com.google.pubsub.v1.UpdateSubscriptionRequest.Builder.class); + com.google.pubsub.v1.UpdateSubscriptionRequest.class, com.google.pubsub.v1.UpdateSubscriptionRequest.Builder.class); } // Construct using com.google.pubsub.v1.UpdateSubscriptionRequest.newBuilder() @@ -449,15 +394,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -477,9 +423,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; } @java.lang.Override @@ -498,8 +444,7 @@ public com.google.pubsub.v1.UpdateSubscriptionRequest build() { @java.lang.Override public com.google.pubsub.v1.UpdateSubscriptionRequest buildPartial() { - com.google.pubsub.v1.UpdateSubscriptionRequest result = - new com.google.pubsub.v1.UpdateSubscriptionRequest(this); + com.google.pubsub.v1.UpdateSubscriptionRequest result = new com.google.pubsub.v1.UpdateSubscriptionRequest(this); if (subscriptionBuilder_ == null) { result.subscription_ = subscription_; } else { @@ -518,39 +463,38 @@ public com.google.pubsub.v1.UpdateSubscriptionRequest 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.pubsub.v1.UpdateSubscriptionRequest) { - return mergeFrom((com.google.pubsub.v1.UpdateSubscriptionRequest) other); + return mergeFrom((com.google.pubsub.v1.UpdateSubscriptionRequest)other); } else { super.mergeFrom(other); return this; @@ -596,58 +540,39 @@ public Builder mergeFrom( private com.google.pubsub.v1.Subscription subscription_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Subscription, - com.google.pubsub.v1.Subscription.Builder, - com.google.pubsub.v1.SubscriptionOrBuilder> - subscriptionBuilder_; + com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder> subscriptionBuilder_; /** - * - * *
      * Required. The updated subscription object.
      * 
* - * - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subscription field is set. */ public boolean hasSubscription() { return subscriptionBuilder_ != null || subscription_ != null; } /** - * - * *
      * Required. The updated subscription object.
      * 
* - * - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The subscription. */ public com.google.pubsub.v1.Subscription getSubscription() { if (subscriptionBuilder_ == null) { - return subscription_ == null - ? com.google.pubsub.v1.Subscription.getDefaultInstance() - : subscription_; + return subscription_ == null ? com.google.pubsub.v1.Subscription.getDefaultInstance() : subscription_; } else { return subscriptionBuilder_.getMessage(); } } /** - * - * *
      * Required. The updated subscription object.
      * 
* - * - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSubscription(com.google.pubsub.v1.Subscription value) { if (subscriptionBuilder_ == null) { @@ -663,17 +588,14 @@ public Builder setSubscription(com.google.pubsub.v1.Subscription value) { return this; } /** - * - * *
      * Required. The updated subscription object.
      * 
* - * - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSubscription(com.google.pubsub.v1.Subscription.Builder builderForValue) { + public Builder setSubscription( + com.google.pubsub.v1.Subscription.Builder builderForValue) { if (subscriptionBuilder_ == null) { subscription_ = builderForValue.build(); onChanged(); @@ -684,23 +606,17 @@ public Builder setSubscription(com.google.pubsub.v1.Subscription.Builder builder return this; } /** - * - * *
      * Required. The updated subscription object.
      * 
* - * - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSubscription(com.google.pubsub.v1.Subscription value) { if (subscriptionBuilder_ == null) { if (subscription_ != null) { subscription_ = - com.google.pubsub.v1.Subscription.newBuilder(subscription_) - .mergeFrom(value) - .buildPartial(); + com.google.pubsub.v1.Subscription.newBuilder(subscription_).mergeFrom(value).buildPartial(); } else { subscription_ = value; } @@ -712,15 +628,11 @@ public Builder mergeSubscription(com.google.pubsub.v1.Subscription value) { return this; } /** - * - * *
      * Required. The updated subscription object.
      * 
* - * - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSubscription() { if (subscriptionBuilder_ == null) { @@ -734,64 +646,48 @@ public Builder clearSubscription() { return this; } /** - * - * *
      * Required. The updated subscription object.
      * 
* - * - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.pubsub.v1.Subscription.Builder getSubscriptionBuilder() { - + onChanged(); return getSubscriptionFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The updated subscription object.
      * 
* - * - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { if (subscriptionBuilder_ != null) { return subscriptionBuilder_.getMessageOrBuilder(); } else { - return subscription_ == null - ? com.google.pubsub.v1.Subscription.getDefaultInstance() - : subscription_; + return subscription_ == null ? + com.google.pubsub.v1.Subscription.getDefaultInstance() : subscription_; } } /** - * - * *
      * Required. The updated subscription object.
      * 
* - * - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Subscription, - com.google.pubsub.v1.Subscription.Builder, - com.google.pubsub.v1.SubscriptionOrBuilder> + com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder> getSubscriptionFieldBuilder() { if (subscriptionBuilder_ == null) { - subscriptionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Subscription, - com.google.pubsub.v1.Subscription.Builder, - com.google.pubsub.v1.SubscriptionOrBuilder>( - getSubscription(), getParentForChildren(), isClean()); + subscriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder>( + getSubscription(), + getParentForChildren(), + isClean()); subscription_ = null; } return subscriptionBuilder_; @@ -799,58 +695,42 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { 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. Indicates which fields in the provided subscription to update.
      * Must be specified and non-empty.
      * 
* - * .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 updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. Indicates which fields in the provided subscription to update.
      * Must be specified and non-empty.
      * 
* - * .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. Indicates which fields in the provided subscription to update.
      * Must be specified and non-empty.
      * 
* - * .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) { @@ -866,17 +746,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Indicates which fields in the provided subscription to update.
      * Must be specified and non-empty.
      * 
* - * .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(); onChanged(); @@ -887,21 +765,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Indicates which fields in the provided subscription to update.
      * Must be specified and non-empty.
      * 
* - * .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 (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -913,15 +788,12 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Indicates which fields in the provided subscription to update.
      * Must be specified and non-empty.
      * 
* - * .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() { if (updateMaskBuilder_ == null) { @@ -935,71 +807,58 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Indicates which fields in the provided subscription to update.
      * Must be specified and non-empty.
      * 
* - * .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() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Indicates which fields in the provided subscription to update.
      * Must be specified and non-empty.
      * 
* - * .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. Indicates which fields in the provided subscription to update.
      * Must be specified and non-empty.
      * 
* - * .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); } @@ -1009,12 +868,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.UpdateSubscriptionRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.UpdateSubscriptionRequest) private static final com.google.pubsub.v1.UpdateSubscriptionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.UpdateSubscriptionRequest(); } @@ -1023,16 +882,16 @@ public static com.google.pubsub.v1.UpdateSubscriptionRequest getDefaultInstance( 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 { - return new UpdateSubscriptionRequest(input, extensionRegistry); - } - }; + 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 { + return new UpdateSubscriptionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1047,4 +906,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.pubsub.v1.UpdateSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java index 730dc304b..812f8da0d 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java @@ -1,107 +1,66 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; -public interface UpdateSubscriptionRequestOrBuilder - extends +public interface UpdateSubscriptionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.UpdateSubscriptionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The updated subscription object.
    * 
* - * - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the subscription field is set. */ boolean hasSubscription(); /** - * - * *
    * Required. The updated subscription object.
    * 
* - * - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The subscription. */ com.google.pubsub.v1.Subscription getSubscription(); /** - * - * *
    * Required. The updated subscription object.
    * 
* - * - * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder(); /** - * - * *
    * Required. Indicates which fields in the provided subscription to update.
    * Must be specified and non-empty.
    * 
* - * .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. Indicates which fields in the provided subscription to update.
    * Must be specified and non-empty.
    * 
* - * .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. Indicates which fields in the provided subscription to update.
    * Must be specified and non-empty.
    * 
* - * .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-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java similarity index 73% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index 7458cb8ad..3d63ab915 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; /** - * - * *
  * Request for the UpdateTopic method.
  * 
* * Protobuf type {@code google.pubsub.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.pubsub.v1.UpdateTopicRequest) UpdateTopicRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateTopicRequest.newBuilder() to construct. private UpdateTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateTopicRequest() {} + private UpdateTopicRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateTopicRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateTopicRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,80 +52,72 @@ private UpdateTopicRequest( case 0: done = true; break; - case 10: - { - com.google.pubsub.v1.Topic.Builder subBuilder = null; - if (topic_ != null) { - subBuilder = topic_.toBuilder(); - } - topic_ = input.readMessage(com.google.pubsub.v1.Topic.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(topic_); - topic_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.pubsub.v1.Topic.Builder subBuilder = null; + if (topic_ != null) { + subBuilder = topic_.toBuilder(); + } + topic_ = input.readMessage(com.google.pubsub.v1.Topic.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(topic_); + topic_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.UpdateTopicRequest.class, - com.google.pubsub.v1.UpdateTopicRequest.Builder.class); + com.google.pubsub.v1.UpdateTopicRequest.class, com.google.pubsub.v1.UpdateTopicRequest.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; private com.google.pubsub.v1.Topic topic_; /** - * - * *
    * Required. The updated topic object.
    * 
* * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the topic field is set. */ @java.lang.Override @@ -149,14 +125,11 @@ public boolean hasTopic() { return topic_ != null; } /** - * - * *
    * Required. The updated topic object.
    * 
* * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The topic. */ @java.lang.Override @@ -164,8 +137,6 @@ public com.google.pubsub.v1.Topic getTopic() { return topic_ == null ? com.google.pubsub.v1.Topic.getDefaultInstance() : topic_; } /** - * - * *
    * Required. The updated topic object.
    * 
@@ -180,8 +151,6 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Indicates which fields in the provided topic to update. Must be
    * specified and non-empty. Note that if `update_mask` contains
@@ -190,9 +159,7 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() {
    * policy configured at the project or organization level.
    * 
* - * .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 @@ -200,8 +167,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Indicates which fields in the provided topic to update. Must be
    * specified and non-empty. Note that if `update_mask` contains
@@ -210,9 +175,7 @@ public boolean hasUpdateMask() {
    * policy configured at the project or organization level.
    * 
* - * .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 @@ -220,8 +183,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Indicates which fields in the provided topic to update. Must be
    * specified and non-empty. Note that if `update_mask` contains
@@ -230,8 +191,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * policy configured at the project or organization level.
    * 
* - * .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() { @@ -239,7 +199,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,7 +210,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (topic_ != null) { output.writeMessage(1, getTopic()); } @@ -268,10 +228,12 @@ public int getSerializedSize() { size = 0; if (topic_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTopic()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTopic()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -281,7 +243,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.UpdateTopicRequest)) { return super.equals(obj); @@ -290,11 +252,13 @@ public boolean equals(final java.lang.Object 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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -320,127 +284,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.UpdateTopicRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.UpdateTopicRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.UpdateTopicRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.UpdateTopicRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.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.pubsub.v1.UpdateTopicRequest 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.pubsub.v1.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.pubsub.v1.UpdateTopicRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.UpdateTopicRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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.pubsub.v1.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 the UpdateTopic method.
    * 
* * Protobuf type {@code google.pubsub.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.pubsub.v1.UpdateTopicRequest) com.google.pubsub.v1.UpdateTopicRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.UpdateTopicRequest.class, - com.google.pubsub.v1.UpdateTopicRequest.Builder.class); + com.google.pubsub.v1.UpdateTopicRequest.class, com.google.pubsub.v1.UpdateTopicRequest.Builder.class); } // Construct using com.google.pubsub.v1.UpdateTopicRequest.newBuilder() @@ -448,15 +403,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -476,9 +432,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; } @java.lang.Override @@ -497,8 +453,7 @@ public com.google.pubsub.v1.UpdateTopicRequest build() { @java.lang.Override public com.google.pubsub.v1.UpdateTopicRequest buildPartial() { - com.google.pubsub.v1.UpdateTopicRequest result = - new com.google.pubsub.v1.UpdateTopicRequest(this); + com.google.pubsub.v1.UpdateTopicRequest result = new com.google.pubsub.v1.UpdateTopicRequest(this); if (topicBuilder_ == null) { result.topic_ = topic_; } else { @@ -517,39 +472,38 @@ public com.google.pubsub.v1.UpdateTopicRequest 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.pubsub.v1.UpdateTopicRequest) { - return mergeFrom((com.google.pubsub.v1.UpdateTopicRequest) other); + return mergeFrom((com.google.pubsub.v1.UpdateTopicRequest)other); } else { super.mergeFrom(other); return this; @@ -595,33 +549,24 @@ public Builder mergeFrom( private com.google.pubsub.v1.Topic topic_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Topic, - com.google.pubsub.v1.Topic.Builder, - com.google.pubsub.v1.TopicOrBuilder> - topicBuilder_; + com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder> topicBuilder_; /** - * - * *
      * Required. The updated topic object.
      * 
* * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the topic field is set. */ public boolean hasTopic() { return topicBuilder_ != null || topic_ != null; } /** - * - * *
      * Required. The updated topic object.
      * 
* * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The topic. */ public com.google.pubsub.v1.Topic getTopic() { @@ -632,8 +577,6 @@ public com.google.pubsub.v1.Topic getTopic() { } } /** - * - * *
      * Required. The updated topic object.
      * 
@@ -654,15 +597,14 @@ public Builder setTopic(com.google.pubsub.v1.Topic value) { return this; } /** - * - * *
      * Required. The updated topic object.
      * 
* * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setTopic(com.google.pubsub.v1.Topic.Builder builderForValue) { + public Builder setTopic( + com.google.pubsub.v1.Topic.Builder builderForValue) { if (topicBuilder_ == null) { topic_ = builderForValue.build(); onChanged(); @@ -673,8 +615,6 @@ public Builder setTopic(com.google.pubsub.v1.Topic.Builder builderForValue) { return this; } /** - * - * *
      * Required. The updated topic object.
      * 
@@ -684,7 +624,8 @@ public Builder setTopic(com.google.pubsub.v1.Topic.Builder builderForValue) { public Builder mergeTopic(com.google.pubsub.v1.Topic value) { if (topicBuilder_ == null) { if (topic_ != null) { - topic_ = com.google.pubsub.v1.Topic.newBuilder(topic_).mergeFrom(value).buildPartial(); + topic_ = + com.google.pubsub.v1.Topic.newBuilder(topic_).mergeFrom(value).buildPartial(); } else { topic_ = value; } @@ -696,8 +637,6 @@ public Builder mergeTopic(com.google.pubsub.v1.Topic value) { return this; } /** - * - * *
      * Required. The updated topic object.
      * 
@@ -716,8 +655,6 @@ public Builder clearTopic() { return this; } /** - * - * *
      * Required. The updated topic object.
      * 
@@ -725,13 +662,11 @@ public Builder clearTopic() { * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.pubsub.v1.Topic.Builder getTopicBuilder() { - + onChanged(); return getTopicFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The updated topic object.
      * 
@@ -742,12 +677,11 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { if (topicBuilder_ != null) { return topicBuilder_.getMessageOrBuilder(); } else { - return topic_ == null ? com.google.pubsub.v1.Topic.getDefaultInstance() : topic_; + return topic_ == null ? + com.google.pubsub.v1.Topic.getDefaultInstance() : topic_; } } /** - * - * *
      * Required. The updated topic object.
      * 
@@ -755,16 +689,14 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Topic, - com.google.pubsub.v1.Topic.Builder, - com.google.pubsub.v1.TopicOrBuilder> + com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder> getTopicFieldBuilder() { if (topicBuilder_ == null) { - topicBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Topic, - com.google.pubsub.v1.Topic.Builder, - com.google.pubsub.v1.TopicOrBuilder>(getTopic(), getParentForChildren(), isClean()); + topicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder>( + getTopic(), + getParentForChildren(), + isClean()); topic_ = null; } return topicBuilder_; @@ -772,13 +704,8 @@ public com.google.pubsub.v1.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. Indicates which fields in the provided topic to update. Must be
      * specified and non-empty. Note that if `update_mask` contains
@@ -787,17 +714,13 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() {
      * policy configured at the project or organization level.
      * 
* - * .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 updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. Indicates which fields in the provided topic to update. Must be
      * specified and non-empty. Note that if `update_mask` contains
@@ -806,23 +729,17 @@ public boolean hasUpdateMask() {
      * policy configured at the project or organization level.
      * 
* - * .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. Indicates which fields in the provided topic to update. Must be
      * specified and non-empty. Note that if `update_mask` contains
@@ -831,8 +748,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * policy configured at the project or organization level.
      * 
* - * .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) { @@ -848,8 +764,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Indicates which fields in the provided topic to update. Must be
      * specified and non-empty. Note that if `update_mask` contains
@@ -858,10 +772,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * policy configured at the project or organization level.
      * 
* - * .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(); onChanged(); @@ -872,8 +786,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Indicates which fields in the provided topic to update. Must be
      * specified and non-empty. Note that if `update_mask` contains
@@ -882,14 +794,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * policy configured at the project or organization level.
      * 
* - * .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 (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -901,8 +812,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Indicates which fields in the provided topic to update. Must be
      * specified and non-empty. Note that if `update_mask` contains
@@ -911,8 +820,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * policy configured at the project or organization level.
      * 
* - * .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() { if (updateMaskBuilder_ == null) { @@ -926,8 +834,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Indicates which fields in the provided topic to update. Must be
      * specified and non-empty. Note that if `update_mask` contains
@@ -936,17 +842,14 @@ public Builder clearUpdateMask() {
      * policy configured at the project or organization level.
      * 
* - * .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() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Indicates which fields in the provided topic to update. Must be
      * specified and non-empty. Note that if `update_mask` contains
@@ -955,21 +858,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * policy configured at the project or organization level.
      * 
* - * .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. Indicates which fields in the provided topic to update. Must be
      * specified and non-empty. Note that if `update_mask` contains
@@ -978,28 +877,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * policy configured at the project or organization level.
      * 
* - * .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); } @@ -1009,12 +904,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.UpdateTopicRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.UpdateTopicRequest) private static final com.google.pubsub.v1.UpdateTopicRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.UpdateTopicRequest(); } @@ -1023,16 +918,16 @@ public static com.google.pubsub.v1.UpdateTopicRequest getDefaultInstance() { 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 { - return new UpdateTopicRequest(input, extensionRegistry); - } - }; + 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 { + return new UpdateTopicRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1047,4 +942,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.UpdateTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java similarity index 74% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index c65735f57..c5ad2f1b9 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto package com.google.pubsub.v1; -public interface UpdateTopicRequestOrBuilder - extends +public interface UpdateTopicRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.UpdateTopicRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The updated topic object.
    * 
* * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the topic field is set. */ boolean hasTopic(); /** - * - * *
    * Required. The updated topic object.
    * 
* * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The topic. */ com.google.pubsub.v1.Topic getTopic(); /** - * - * *
    * Required. The updated topic object.
    * 
@@ -59,8 +35,6 @@ public interface UpdateTopicRequestOrBuilder com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder(); /** - * - * *
    * Required. Indicates which fields in the provided topic to update. Must be
    * specified and non-empty. Note that if `update_mask` contains
@@ -69,15 +43,11 @@ public interface UpdateTopicRequestOrBuilder
    * policy configured at the project or organization level.
    * 
* - * .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. Indicates which fields in the provided topic to update. Must be
    * specified and non-empty. Note that if `update_mask` contains
@@ -86,15 +56,11 @@ public interface UpdateTopicRequestOrBuilder
    * policy configured at the project or organization level.
    * 
* - * .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. Indicates which fields in the provided topic to update. Must be
    * specified and non-empty. Note that if `update_mask` contains
@@ -103,8 +69,7 @@ public interface UpdateTopicRequestOrBuilder
    * policy configured at the project or organization level.
    * 
* - * .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-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java similarity index 71% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java index d1a77c968..efc1b7519 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto package com.google.pubsub.v1; /** - * - * *
  * Request for the `ValidateMessage` method.
  * 
* * Protobuf type {@code google.pubsub.v1.ValidateMessageRequest} */ -public final class ValidateMessageRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ValidateMessageRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ValidateMessageRequest) ValidateMessageRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ValidateMessageRequest.newBuilder() to construct. private ValidateMessageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ValidateMessageRequest() { parent_ = ""; message_ = com.google.protobuf.ByteString.EMPTY; @@ -45,15 +27,16 @@ private ValidateMessageRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ValidateMessageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ValidateMessageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,93 +55,84 @@ private ValidateMessageRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - schemaSpecCase_ = 2; - schemaSpec_ = s; - break; - } - case 26: - { - com.google.pubsub.v1.Schema.Builder subBuilder = null; - if (schemaSpecCase_ == 3) { - subBuilder = ((com.google.pubsub.v1.Schema) schemaSpec_).toBuilder(); - } - schemaSpec_ = - input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.pubsub.v1.Schema) schemaSpec_); - schemaSpec_ = subBuilder.buildPartial(); - } - schemaSpecCase_ = 3; - break; + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + schemaSpecCase_ = 2; + schemaSpec_ = s; + break; + } + case 26: { + com.google.pubsub.v1.Schema.Builder subBuilder = null; + if (schemaSpecCase_ == 3) { + subBuilder = ((com.google.pubsub.v1.Schema) schemaSpec_).toBuilder(); } - case 34: - { - message_ = input.readBytes(); - break; + schemaSpec_ = + input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.pubsub.v1.Schema) schemaSpec_); + schemaSpec_ = subBuilder.buildPartial(); } - case 40: - { - int rawValue = input.readEnum(); + schemaSpecCase_ = 3; + break; + } + case 34: { - encoding_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + message_ = input.readBytes(); + break; + } + case 40: { + int rawValue = input.readEnum(); + + encoding_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_ValidateMessageRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateMessageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ValidateMessageRequest.class, - com.google.pubsub.v1.ValidateMessageRequest.Builder.class); + com.google.pubsub.v1.ValidateMessageRequest.class, com.google.pubsub.v1.ValidateMessageRequest.Builder.class); } private int schemaSpecCase_ = 0; private java.lang.Object schemaSpec_; - public enum SchemaSpecCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NAME(2), SCHEMA(3), SCHEMASPEC_NOT_SET(0); private final int value; - private SchemaSpecCase(int value) { this.value = value; } @@ -174,40 +148,32 @@ public static SchemaSpecCase valueOf(int value) { public static SchemaSpecCase forNumber(int value) { switch (value) { - case 2: - return NAME; - case 3: - return SCHEMA; - case 0: - return SCHEMASPEC_NOT_SET; - default: - return null; + case 2: return NAME; + case 3: return SCHEMA; + case 0: return SCHEMASPEC_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SchemaSpecCase getSchemaSpecCase() { - return SchemaSpecCase.forNumber(schemaSpecCase_); + public SchemaSpecCase + getSchemaSpecCase() { + return SchemaSpecCase.forNumber( + schemaSpecCase_); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The name of the project in which to validate schemas.
    * Format is `projects/{project-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 @@ -216,32 +182,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 name of the project in which to validate schemas.
    * Format is `projects/{project-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 { @@ -251,30 +215,24 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int NAME_FIELD_NUMBER = 2; /** - * - * *
    * Name of the schema against which to validate.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return Whether the name field is set. */ public boolean hasName() { return schemaSpecCase_ == 2; } /** - * - * *
    * Name of the schema against which to validate.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return The name. */ public java.lang.String getName() { @@ -285,7 +243,8 @@ 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(); if (schemaSpecCase_ == 2) { schemaSpec_ = s; @@ -294,25 +253,24 @@ public java.lang.String getName() { } } /** - * - * *
    * Name of the schema against which to validate.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* * string name = 2 [(.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 = ""; if (schemaSpecCase_ == 2) { ref = schemaSpec_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (schemaSpecCase_ == 2) { schemaSpec_ = b; } @@ -324,14 +282,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SCHEMA_FIELD_NUMBER = 3; /** - * - * *
    * Ad-hoc schema against which to validate
    * 
* * .google.pubsub.v1.Schema schema = 3; - * * @return Whether the schema field is set. */ @java.lang.Override @@ -339,26 +294,21 @@ public boolean hasSchema() { return schemaSpecCase_ == 3; } /** - * - * *
    * Ad-hoc schema against which to validate
    * 
* * .google.pubsub.v1.Schema schema = 3; - * * @return The schema. */ @java.lang.Override public com.google.pubsub.v1.Schema getSchema() { if (schemaSpecCase_ == 3) { - return (com.google.pubsub.v1.Schema) schemaSpec_; + return (com.google.pubsub.v1.Schema) schemaSpec_; } return com.google.pubsub.v1.Schema.getDefaultInstance(); } /** - * - * *
    * Ad-hoc schema against which to validate
    * 
@@ -368,7 +318,7 @@ public com.google.pubsub.v1.Schema getSchema() { @java.lang.Override public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { if (schemaSpecCase_ == 3) { - return (com.google.pubsub.v1.Schema) schemaSpec_; + return (com.google.pubsub.v1.Schema) schemaSpec_; } return com.google.pubsub.v1.Schema.getDefaultInstance(); } @@ -376,14 +326,11 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { public static final int MESSAGE_FIELD_NUMBER = 4; private com.google.protobuf.ByteString message_; /** - * - * *
    * Message to validate against the provided `schema_spec`.
    * 
* * bytes message = 4; - * * @return The message. */ @java.lang.Override @@ -394,40 +341,31 @@ public com.google.protobuf.ByteString getMessage() { public static final int ENCODING_FIELD_NUMBER = 5; private int encoding_; /** - * - * *
    * The encoding expected for messages
    * 
* * .google.pubsub.v1.Encoding encoding = 5; - * * @return The enum numeric value on the wire for encoding. */ - @java.lang.Override - public int getEncodingValue() { + @java.lang.Override public int getEncodingValue() { return encoding_; } /** - * - * *
    * The encoding expected for messages
    * 
* * .google.pubsub.v1.Encoding encoding = 5; - * * @return The encoding. */ - @java.lang.Override - public com.google.pubsub.v1.Encoding getEncoding() { + @java.lang.Override public com.google.pubsub.v1.Encoding getEncoding() { @SuppressWarnings("deprecation") com.google.pubsub.v1.Encoding result = com.google.pubsub.v1.Encoding.valueOf(encoding_); return result == null ? com.google.pubsub.v1.Encoding.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -439,8 +377,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + 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_); } if (schemaSpecCase_ == 2) { @@ -464,22 +403,23 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (schemaSpecCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaSpec_); } if (schemaSpecCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.pubsub.v1.Schema) schemaSpec_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.pubsub.v1.Schema) schemaSpec_); } if (!message_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, message_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, message_); } if (encoding_ != com.google.pubsub.v1.Encoding.ENCODING_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, encoding_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, encoding_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -489,24 +429,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.pubsub.v1.ValidateMessageRequest)) { return super.equals(obj); } - com.google.pubsub.v1.ValidateMessageRequest other = - (com.google.pubsub.v1.ValidateMessageRequest) obj; + com.google.pubsub.v1.ValidateMessageRequest other = (com.google.pubsub.v1.ValidateMessageRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getMessage().equals(other.getMessage())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; if (encoding_ != other.encoding_) return false; if (!getSchemaSpecCase().equals(other.getSchemaSpecCase())) return false; switch (schemaSpecCase_) { case 2: - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; break; case 3: - if (!getSchema().equals(other.getSchema())) return false; + if (!getSchema() + .equals(other.getSchema())) return false; break; case 0: default: @@ -545,127 +488,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ValidateMessageRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ValidateMessageRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ValidateMessageRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ValidateMessageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ValidateMessageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ValidateMessageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ValidateMessageRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ValidateMessageRequest 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.pubsub.v1.ValidateMessageRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.pubsub.v1.ValidateMessageRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ValidateMessageRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.ValidateMessageRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ValidateMessageRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.ValidateMessageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.ValidateMessageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 the `ValidateMessage` method.
    * 
* * Protobuf type {@code google.pubsub.v1.ValidateMessageRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ValidateMessageRequest) com.google.pubsub.v1.ValidateMessageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_ValidateMessageRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateMessageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ValidateMessageRequest.class, - com.google.pubsub.v1.ValidateMessageRequest.Builder.class); + com.google.pubsub.v1.ValidateMessageRequest.class, com.google.pubsub.v1.ValidateMessageRequest.Builder.class); } // Construct using com.google.pubsub.v1.ValidateMessageRequest.newBuilder() @@ -673,15 +607,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -697,9 +632,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor; } @java.lang.Override @@ -718,8 +653,7 @@ public com.google.pubsub.v1.ValidateMessageRequest build() { @java.lang.Override public com.google.pubsub.v1.ValidateMessageRequest buildPartial() { - com.google.pubsub.v1.ValidateMessageRequest result = - new com.google.pubsub.v1.ValidateMessageRequest(this); + com.google.pubsub.v1.ValidateMessageRequest result = new com.google.pubsub.v1.ValidateMessageRequest(this); result.parent_ = parent_; if (schemaSpecCase_ == 2) { result.schemaSpec_ = schemaSpec_; @@ -742,39 +676,38 @@ public com.google.pubsub.v1.ValidateMessageRequest 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.pubsub.v1.ValidateMessageRequest) { - return mergeFrom((com.google.pubsub.v1.ValidateMessageRequest) other); + return mergeFrom((com.google.pubsub.v1.ValidateMessageRequest)other); } else { super.mergeFrom(other); return this; @@ -794,22 +727,19 @@ public Builder mergeFrom(com.google.pubsub.v1.ValidateMessageRequest other) { setEncodingValue(other.getEncodingValue()); } switch (other.getSchemaSpecCase()) { - case NAME: - { - schemaSpecCase_ = 2; - schemaSpec_ = other.schemaSpec_; - onChanged(); - break; - } - case SCHEMA: - { - mergeSchema(other.getSchema()); - break; - } - case SCHEMASPEC_NOT_SET: - { - break; - } + case NAME: { + schemaSpecCase_ = 2; + schemaSpec_ = other.schemaSpec_; + onChanged(); + break; + } + case SCHEMA: { + mergeSchema(other.getSchema()); + break; + } + case SCHEMASPEC_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -839,12 +769,12 @@ public Builder mergeFrom( } return this; } - private int schemaSpecCase_ = 0; private java.lang.Object schemaSpec_; - - public SchemaSpecCase getSchemaSpecCase() { - return SchemaSpecCase.forNumber(schemaSpecCase_); + public SchemaSpecCase + getSchemaSpecCase() { + return SchemaSpecCase.forNumber( + schemaSpecCase_); } public Builder clearSchemaSpec() { @@ -854,25 +784,22 @@ public Builder clearSchemaSpec() { return this; } + private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the project in which to validate schemas.
      * Format is `projects/{project-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; @@ -881,24 +808,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the project in which to validate schemas.
      * Format is `projects/{project-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 { @@ -906,85 +830,69 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the project in which to validate schemas.
      * Format is `projects/{project-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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the project in which to validate schemas.
      * Format is `projects/{project-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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The name of the project in which to validate schemas.
      * Format is `projects/{project-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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } /** - * - * *
      * Name of the schema against which to validate.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return Whether the name field is set. */ @java.lang.Override @@ -992,15 +900,12 @@ public boolean hasName() { return schemaSpecCase_ == 2; } /** - * - * *
      * Name of the schema against which to validate.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return The name. */ @java.lang.Override @@ -1010,7 +915,8 @@ public java.lang.String getName() { ref = schemaSpec_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (schemaSpecCase_ == 2) { schemaSpec_ = s; @@ -1021,26 +927,25 @@ public java.lang.String getName() { } } /** - * - * *
      * Name of the schema against which to validate.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * string name = 2 [(.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 = ""; if (schemaSpecCase_ == 2) { ref = schemaSpec_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (schemaSpecCase_ == 2) { schemaSpec_ = b; } @@ -1050,37 +955,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Name of the schema against which to validate.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - schemaSpecCase_ = 2; + throw new NullPointerException(); + } + schemaSpecCase_ = 2; schemaSpec_ = value; onChanged(); return this; } /** - * - * *
      * Name of the schema against which to validate.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearName() { @@ -1092,23 +992,21 @@ public Builder clearName() { return this; } /** - * - * *
      * Name of the schema against which to validate.
      * Format is `projects/{project}/schemas/{schema}`.
      * 
* * string name = 2 [(.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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); schemaSpecCase_ = 2; schemaSpec_ = value; onChanged(); @@ -1116,19 +1014,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Schema, - com.google.pubsub.v1.Schema.Builder, - com.google.pubsub.v1.SchemaOrBuilder> - schemaBuilder_; + com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> schemaBuilder_; /** - * - * *
      * Ad-hoc schema against which to validate
      * 
* * .google.pubsub.v1.Schema schema = 3; - * * @return Whether the schema field is set. */ @java.lang.Override @@ -1136,14 +1028,11 @@ public boolean hasSchema() { return schemaSpecCase_ == 3; } /** - * - * *
      * Ad-hoc schema against which to validate
      * 
* * .google.pubsub.v1.Schema schema = 3; - * * @return The schema. */ @java.lang.Override @@ -1161,8 +1050,6 @@ public com.google.pubsub.v1.Schema getSchema() { } } /** - * - * *
      * Ad-hoc schema against which to validate
      * 
@@ -1183,15 +1070,14 @@ public Builder setSchema(com.google.pubsub.v1.Schema value) { return this; } /** - * - * *
      * Ad-hoc schema against which to validate
      * 
* * .google.pubsub.v1.Schema schema = 3; */ - public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { + public Builder setSchema( + com.google.pubsub.v1.Schema.Builder builderForValue) { if (schemaBuilder_ == null) { schemaSpec_ = builderForValue.build(); onChanged(); @@ -1202,8 +1088,6 @@ public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { return this; } /** - * - * *
      * Ad-hoc schema against which to validate
      * 
@@ -1212,12 +1096,10 @@ public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { */ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { if (schemaBuilder_ == null) { - if (schemaSpecCase_ == 3 - && schemaSpec_ != com.google.pubsub.v1.Schema.getDefaultInstance()) { - schemaSpec_ = - com.google.pubsub.v1.Schema.newBuilder((com.google.pubsub.v1.Schema) schemaSpec_) - .mergeFrom(value) - .buildPartial(); + if (schemaSpecCase_ == 3 && + schemaSpec_ != com.google.pubsub.v1.Schema.getDefaultInstance()) { + schemaSpec_ = com.google.pubsub.v1.Schema.newBuilder((com.google.pubsub.v1.Schema) schemaSpec_) + .mergeFrom(value).buildPartial(); } else { schemaSpec_ = value; } @@ -1232,8 +1114,6 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { return this; } /** - * - * *
      * Ad-hoc schema against which to validate
      * 
@@ -1257,8 +1137,6 @@ public Builder clearSchema() { return this; } /** - * - * *
      * Ad-hoc schema against which to validate
      * 
@@ -1269,8 +1147,6 @@ public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() { return getSchemaFieldBuilder().getBuilder(); } /** - * - * *
      * Ad-hoc schema against which to validate
      * 
@@ -1289,8 +1165,6 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { } } /** - * - * *
      * Ad-hoc schema against which to validate
      * 
@@ -1298,38 +1172,31 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { * .google.pubsub.v1.Schema schema = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Schema, - com.google.pubsub.v1.Schema.Builder, - com.google.pubsub.v1.SchemaOrBuilder> + com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> getSchemaFieldBuilder() { if (schemaBuilder_ == null) { if (!(schemaSpecCase_ == 3)) { schemaSpec_ = com.google.pubsub.v1.Schema.getDefaultInstance(); } - schemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Schema, - com.google.pubsub.v1.Schema.Builder, - com.google.pubsub.v1.SchemaOrBuilder>( - (com.google.pubsub.v1.Schema) schemaSpec_, getParentForChildren(), isClean()); + schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder>( + (com.google.pubsub.v1.Schema) schemaSpec_, + getParentForChildren(), + isClean()); schemaSpec_ = null; } schemaSpecCase_ = 3; - onChanged(); - ; + onChanged();; return schemaBuilder_; } private com.google.protobuf.ByteString message_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Message to validate against the provided `schema_spec`.
      * 
* * bytes message = 4; - * * @return The message. */ @java.lang.Override @@ -1337,39 +1204,33 @@ public com.google.protobuf.ByteString getMessage() { return message_; } /** - * - * *
      * Message to validate against the provided `schema_spec`.
      * 
* * bytes message = 4; - * * @param value The message to set. * @return This builder for chaining. */ public Builder setMessage(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + message_ = value; onChanged(); return this; } /** - * - * *
      * Message to validate against the provided `schema_spec`.
      * 
* * bytes message = 4; - * * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); return this; @@ -1377,47 +1238,37 @@ public Builder clearMessage() { private int encoding_ = 0; /** - * - * *
      * The encoding expected for messages
      * 
* * .google.pubsub.v1.Encoding encoding = 5; - * * @return The enum numeric value on the wire for encoding. */ - @java.lang.Override - public int getEncodingValue() { + @java.lang.Override public int getEncodingValue() { return encoding_; } /** - * - * *
      * The encoding expected for messages
      * 
* * .google.pubsub.v1.Encoding encoding = 5; - * * @param value The enum numeric value on the wire for encoding to set. * @return This builder for chaining. */ public Builder setEncodingValue(int value) { - + encoding_ = value; onChanged(); return this; } /** - * - * *
      * The encoding expected for messages
      * 
* * .google.pubsub.v1.Encoding encoding = 5; - * * @return The encoding. */ @java.lang.Override @@ -1427,14 +1278,11 @@ public com.google.pubsub.v1.Encoding getEncoding() { return result == null ? com.google.pubsub.v1.Encoding.UNRECOGNIZED : result; } /** - * - * *
      * The encoding expected for messages
      * 
* * .google.pubsub.v1.Encoding encoding = 5; - * * @param value The encoding to set. * @return This builder for chaining. */ @@ -1442,31 +1290,28 @@ public Builder setEncoding(com.google.pubsub.v1.Encoding value) { if (value == null) { throw new NullPointerException(); } - + encoding_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The encoding expected for messages
      * 
* * .google.pubsub.v1.Encoding encoding = 5; - * * @return This builder for chaining. */ public Builder clearEncoding() { - + encoding_ = 0; 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); } @@ -1476,12 +1321,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ValidateMessageRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ValidateMessageRequest) private static final com.google.pubsub.v1.ValidateMessageRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ValidateMessageRequest(); } @@ -1490,16 +1335,16 @@ public static com.google.pubsub.v1.ValidateMessageRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidateMessageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidateMessageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValidateMessageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ValidateMessageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1514,4 +1359,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ValidateMessageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java similarity index 70% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java index f2c3968c0..53b514966 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java @@ -1,126 +1,85 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto package com.google.pubsub.v1; -public interface ValidateMessageRequestOrBuilder - extends +public interface ValidateMessageRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ValidateMessageRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the project in which to validate schemas.
    * Format is `projects/{project-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 name of the project in which to validate schemas.
    * Format is `projects/{project-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(); /** - * - * *
    * Name of the schema against which to validate.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return Whether the name field is set. */ boolean hasName(); /** - * - * *
    * Name of the schema against which to validate.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Name of the schema against which to validate.
    * Format is `projects/{project}/schemas/{schema}`.
    * 
* * string name = 2 [(.google.api.resource_reference) = { ... } - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Ad-hoc schema against which to validate
    * 
* * .google.pubsub.v1.Schema schema = 3; - * * @return Whether the schema field is set. */ boolean hasSchema(); /** - * - * *
    * Ad-hoc schema against which to validate
    * 
* * .google.pubsub.v1.Schema schema = 3; - * * @return The schema. */ com.google.pubsub.v1.Schema getSchema(); /** - * - * *
    * Ad-hoc schema against which to validate
    * 
@@ -130,39 +89,30 @@ public interface ValidateMessageRequestOrBuilder com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder(); /** - * - * *
    * Message to validate against the provided `schema_spec`.
    * 
* * bytes message = 4; - * * @return The message. */ com.google.protobuf.ByteString getMessage(); /** - * - * *
    * The encoding expected for messages
    * 
* * .google.pubsub.v1.Encoding encoding = 5; - * * @return The enum numeric value on the wire for encoding. */ int getEncodingValue(); /** - * - * *
    * The encoding expected for messages
    * 
* * .google.pubsub.v1.Encoding encoding = 5; - * * @return The encoding. */ com.google.pubsub.v1.Encoding getEncoding(); diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java similarity index 66% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java index d86904cf0..3863b93bb 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto package com.google.pubsub.v1; /** - * - * *
  * Response for the `ValidateMessage` method.
  * Empty for now.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.pubsub.v1.ValidateMessageResponse}
  */
-public final class ValidateMessageResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ValidateMessageResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.pubsub.v1.ValidateMessageResponse)
     ValidateMessageResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ValidateMessageResponse.newBuilder() to construct.
   private ValidateMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ValidateMessageResponse() {}
+  private ValidateMessageResponse() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ValidateMessageResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ValidateMessageResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,42 +53,39 @@ private ValidateMessageResponse(
           case 0:
             done = true;
             break;
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.pubsub.v1.SchemaProto
-        .internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.pubsub.v1.SchemaProto
-        .internal_static_google_pubsub_v1_ValidateMessageResponse_fieldAccessorTable
+    return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateMessageResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.pubsub.v1.ValidateMessageResponse.class,
-            com.google.pubsub.v1.ValidateMessageResponse.Builder.class);
+            com.google.pubsub.v1.ValidateMessageResponse.class, com.google.pubsub.v1.ValidateMessageResponse.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -116,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 {
     unknownFields.writeTo(output);
   }
 
@@ -134,13 +116,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.pubsub.v1.ValidateMessageResponse)) {
       return super.equals(obj);
     }
-    com.google.pubsub.v1.ValidateMessageResponse other =
-        (com.google.pubsub.v1.ValidateMessageResponse) obj;
+    com.google.pubsub.v1.ValidateMessageResponse other = (com.google.pubsub.v1.ValidateMessageResponse) obj;
 
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -158,104 +139,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.pubsub.v1.ValidateMessageResponse parseFrom(java.nio.ByteBuffer data)
+  public static com.google.pubsub.v1.ValidateMessageResponse parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.ValidateMessageResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.ValidateMessageResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.ValidateMessageResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.ValidateMessageResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.ValidateMessageResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.ValidateMessageResponse 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.pubsub.v1.ValidateMessageResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.pubsub.v1.ValidateMessageResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.pubsub.v1.ValidateMessageResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.pubsub.v1.ValidateMessageResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.ValidateMessageResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.pubsub.v1.ValidateMessageResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.pubsub.v1.ValidateMessageResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 the `ValidateMessage` method.
    * Empty for now.
@@ -263,23 +237,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.pubsub.v1.ValidateMessageResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ValidateMessageResponse)
       com.google.pubsub.v1.ValidateMessageResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.pubsub.v1.SchemaProto
-          .internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.pubsub.v1.SchemaProto
-          .internal_static_google_pubsub_v1_ValidateMessageResponse_fieldAccessorTable
+      return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateMessageResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.pubsub.v1.ValidateMessageResponse.class,
-              com.google.pubsub.v1.ValidateMessageResponse.Builder.class);
+              com.google.pubsub.v1.ValidateMessageResponse.class, com.google.pubsub.v1.ValidateMessageResponse.Builder.class);
     }
 
     // Construct using com.google.pubsub.v1.ValidateMessageResponse.newBuilder()
@@ -287,15 +259,16 @@ 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) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -303,9 +276,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.pubsub.v1.SchemaProto
-          .internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor;
     }
 
     @java.lang.Override
@@ -324,8 +297,7 @@ public com.google.pubsub.v1.ValidateMessageResponse build() {
 
     @java.lang.Override
     public com.google.pubsub.v1.ValidateMessageResponse buildPartial() {
-      com.google.pubsub.v1.ValidateMessageResponse result =
-          new com.google.pubsub.v1.ValidateMessageResponse(this);
+      com.google.pubsub.v1.ValidateMessageResponse result = new com.google.pubsub.v1.ValidateMessageResponse(this);
       onBuilt();
       return result;
     }
@@ -334,39 +306,38 @@ public com.google.pubsub.v1.ValidateMessageResponse 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.pubsub.v1.ValidateMessageResponse) {
-        return mergeFrom((com.google.pubsub.v1.ValidateMessageResponse) other);
+        return mergeFrom((com.google.pubsub.v1.ValidateMessageResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -403,9 +374,9 @@ public Builder mergeFrom(
       }
       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);
     }
 
@@ -415,12 +386,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ValidateMessageResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.pubsub.v1.ValidateMessageResponse)
   private static final com.google.pubsub.v1.ValidateMessageResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.pubsub.v1.ValidateMessageResponse();
   }
@@ -429,16 +400,16 @@ public static com.google.pubsub.v1.ValidateMessageResponse getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ValidateMessageResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new ValidateMessageResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ValidateMessageResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new ValidateMessageResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -453,4 +424,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.pubsub.v1.ValidateMessageResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java
new file mode 100644
index 000000000..ab8ed5a52
--- /dev/null
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java
@@ -0,0 +1,9 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/pubsub/v1/schema.proto
+
+package com.google.pubsub.v1;
+
+public interface ValidateMessageResponseOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ValidateMessageResponse)
+    com.google.protobuf.MessageOrBuilder {
+}
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java
similarity index 68%
rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java
index 631fca4ef..dc19b2605 100644
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/pubsub/v1/schema.proto
 
 package com.google.pubsub.v1;
 
 /**
- *
- *
  * 
  * Request for the `ValidateSchema` method.
  * 
* * Protobuf type {@code google.pubsub.v1.ValidateSchemaRequest} */ -public final class ValidateSchemaRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ValidateSchemaRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ValidateSchemaRequest) ValidateSchemaRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ValidateSchemaRequest.newBuilder() to construct. private ValidateSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ValidateSchemaRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ValidateSchemaRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ValidateSchemaRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,75 +53,66 @@ private ValidateSchemaRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.pubsub.v1.Schema.Builder subBuilder = null; + if (schema_ != null) { + subBuilder = schema_.toBuilder(); } - case 18: - { - com.google.pubsub.v1.Schema.Builder subBuilder = null; - if (schema_ != null) { - subBuilder = schema_.toBuilder(); - } - schema_ = input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(schema_); - schema_ = subBuilder.buildPartial(); - } - - break; + schema_ = input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(schema_); + schema_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_ValidateSchemaRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ValidateSchemaRequest.class, - com.google.pubsub.v1.ValidateSchemaRequest.Builder.class); + com.google.pubsub.v1.ValidateSchemaRequest.class, com.google.pubsub.v1.ValidateSchemaRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The name of the project in which to validate schemas.
    * Format is `projects/{project-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 @@ -147,32 +121,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 name of the project in which to validate schemas.
    * Format is `projects/{project-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 { @@ -183,14 +155,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SCHEMA_FIELD_NUMBER = 2; private com.google.pubsub.v1.Schema schema_; /** - * - * *
    * Required. The schema object to validate.
    * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the schema field is set. */ @java.lang.Override @@ -198,14 +167,11 @@ public boolean hasSchema() { return schema_ != null; } /** - * - * *
    * Required. The schema object to validate.
    * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The schema. */ @java.lang.Override @@ -213,8 +179,6 @@ public com.google.pubsub.v1.Schema getSchema() { return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; } /** - * - * *
    * Required. The schema object to validate.
    * 
@@ -227,7 +191,6 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -239,8 +202,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + 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_); } if (schema_ != null) { @@ -255,11 +219,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (schema_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSchema()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSchema()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -269,18 +234,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.pubsub.v1.ValidateSchemaRequest)) { return super.equals(obj); } - com.google.pubsub.v1.ValidateSchemaRequest other = - (com.google.pubsub.v1.ValidateSchemaRequest) obj; + com.google.pubsub.v1.ValidateSchemaRequest other = (com.google.pubsub.v1.ValidateSchemaRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasSchema() != other.hasSchema()) return false; if (hasSchema()) { - if (!getSchema().equals(other.getSchema())) return false; + if (!getSchema() + .equals(other.getSchema())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -304,127 +270,118 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ValidateSchemaRequest 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.pubsub.v1.ValidateSchemaRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.pubsub.v1.ValidateSchemaRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.pubsub.v1.ValidateSchemaRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.ValidateSchemaRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.pubsub.v1.ValidateSchemaRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 the `ValidateSchema` method.
    * 
* * Protobuf type {@code google.pubsub.v1.ValidateSchemaRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ValidateSchemaRequest) com.google.pubsub.v1.ValidateSchemaRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_ValidateSchemaRequest_fieldAccessorTable + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateSchemaRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ValidateSchemaRequest.class, - com.google.pubsub.v1.ValidateSchemaRequest.Builder.class); + com.google.pubsub.v1.ValidateSchemaRequest.class, com.google.pubsub.v1.ValidateSchemaRequest.Builder.class); } // Construct using com.google.pubsub.v1.ValidateSchemaRequest.newBuilder() @@ -432,15 +389,16 @@ 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) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -456,9 +414,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.SchemaProto - .internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor; } @java.lang.Override @@ -477,8 +435,7 @@ public com.google.pubsub.v1.ValidateSchemaRequest build() { @java.lang.Override public com.google.pubsub.v1.ValidateSchemaRequest buildPartial() { - com.google.pubsub.v1.ValidateSchemaRequest result = - new com.google.pubsub.v1.ValidateSchemaRequest(this); + com.google.pubsub.v1.ValidateSchemaRequest result = new com.google.pubsub.v1.ValidateSchemaRequest(this); result.parent_ = parent_; if (schemaBuilder_ == null) { result.schema_ = schema_; @@ -493,39 +450,38 @@ public com.google.pubsub.v1.ValidateSchemaRequest 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.pubsub.v1.ValidateSchemaRequest) { - return mergeFrom((com.google.pubsub.v1.ValidateSchemaRequest) other); + return mergeFrom((com.google.pubsub.v1.ValidateSchemaRequest)other); } else { super.mergeFrom(other); return this; @@ -572,23 +528,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the project in which to validate schemas.
      * Format is `projects/{project-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; @@ -597,24 +549,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the project in which to validate schemas.
      * Format is `projects/{project-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 { @@ -622,70 +571,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the project in which to validate schemas.
      * Format is `projects/{project-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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the project in which to validate schemas.
      * Format is `projects/{project-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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The name of the project in which to validate schemas.
      * Format is `projects/{project-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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -693,33 +629,24 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.pubsub.v1.Schema schema_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Schema, - com.google.pubsub.v1.Schema.Builder, - com.google.pubsub.v1.SchemaOrBuilder> - schemaBuilder_; + com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> schemaBuilder_; /** - * - * *
      * Required. The schema object to validate.
      * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the schema field is set. */ public boolean hasSchema() { return schemaBuilder_ != null || schema_ != null; } /** - * - * *
      * Required. The schema object to validate.
      * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The schema. */ public com.google.pubsub.v1.Schema getSchema() { @@ -730,8 +657,6 @@ public com.google.pubsub.v1.Schema getSchema() { } } /** - * - * *
      * Required. The schema object to validate.
      * 
@@ -752,15 +677,14 @@ public Builder setSchema(com.google.pubsub.v1.Schema value) { return this; } /** - * - * *
      * Required. The schema object to validate.
      * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { + public Builder setSchema( + com.google.pubsub.v1.Schema.Builder builderForValue) { if (schemaBuilder_ == null) { schema_ = builderForValue.build(); onChanged(); @@ -771,8 +695,6 @@ public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { return this; } /** - * - * *
      * Required. The schema object to validate.
      * 
@@ -782,7 +704,8 @@ public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { public Builder mergeSchema(com.google.pubsub.v1.Schema value) { if (schemaBuilder_ == null) { if (schema_ != null) { - schema_ = com.google.pubsub.v1.Schema.newBuilder(schema_).mergeFrom(value).buildPartial(); + schema_ = + com.google.pubsub.v1.Schema.newBuilder(schema_).mergeFrom(value).buildPartial(); } else { schema_ = value; } @@ -794,8 +717,6 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { return this; } /** - * - * *
      * Required. The schema object to validate.
      * 
@@ -814,8 +735,6 @@ public Builder clearSchema() { return this; } /** - * - * *
      * Required. The schema object to validate.
      * 
@@ -823,13 +742,11 @@ public Builder clearSchema() { * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() { - + onChanged(); return getSchemaFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The schema object to validate.
      * 
@@ -840,12 +757,11 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { if (schemaBuilder_ != null) { return schemaBuilder_.getMessageOrBuilder(); } else { - return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; + return schema_ == null ? + com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; } } /** - * - * *
      * Required. The schema object to validate.
      * 
@@ -853,24 +769,21 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Schema, - com.google.pubsub.v1.Schema.Builder, - com.google.pubsub.v1.SchemaOrBuilder> + com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> getSchemaFieldBuilder() { if (schemaBuilder_ == null) { - schemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Schema, - com.google.pubsub.v1.Schema.Builder, - com.google.pubsub.v1.SchemaOrBuilder>( - getSchema(), getParentForChildren(), isClean()); + schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder>( + getSchema(), + getParentForChildren(), + isClean()); schema_ = null; } return schemaBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -880,12 +793,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ValidateSchemaRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ValidateSchemaRequest) private static final com.google.pubsub.v1.ValidateSchemaRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ValidateSchemaRequest(); } @@ -894,16 +807,16 @@ public static com.google.pubsub.v1.ValidateSchemaRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidateSchemaRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidateSchemaRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValidateSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ValidateSchemaRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -918,4 +831,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ValidateSchemaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java index 2c972155f..c40d9f9a7 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java @@ -1,86 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto package com.google.pubsub.v1; -public interface ValidateSchemaRequestOrBuilder - extends +public interface ValidateSchemaRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ValidateSchemaRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the project in which to validate schemas.
    * Format is `projects/{project-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 name of the project in which to validate schemas.
    * Format is `projects/{project-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(); /** - * - * *
    * Required. The schema object to validate.
    * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the schema field is set. */ boolean hasSchema(); /** - * - * *
    * Required. The schema object to validate.
    * 
* * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The schema. */ com.google.pubsub.v1.Schema getSchema(); /** - * - * *
    * Required. The schema object to validate.
    * 
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java similarity index 66% rename from proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java index 881b35e95..028fae08e 100644 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto package com.google.pubsub.v1; /** - * - * *
  * Response for the `ValidateSchema` method.
  * Empty for now.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.pubsub.v1.ValidateSchemaResponse}
  */
-public final class ValidateSchemaResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ValidateSchemaResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.pubsub.v1.ValidateSchemaResponse)
     ValidateSchemaResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ValidateSchemaResponse.newBuilder() to construct.
   private ValidateSchemaResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ValidateSchemaResponse() {}
+  private ValidateSchemaResponse() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ValidateSchemaResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ValidateSchemaResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,42 +53,39 @@ private ValidateSchemaResponse(
           case 0:
             done = true;
             break;
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.pubsub.v1.SchemaProto
-        .internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.pubsub.v1.SchemaProto
-        .internal_static_google_pubsub_v1_ValidateSchemaResponse_fieldAccessorTable
+    return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateSchemaResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.pubsub.v1.ValidateSchemaResponse.class,
-            com.google.pubsub.v1.ValidateSchemaResponse.Builder.class);
+            com.google.pubsub.v1.ValidateSchemaResponse.class, com.google.pubsub.v1.ValidateSchemaResponse.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -116,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 {
     unknownFields.writeTo(output);
   }
 
@@ -134,13 +116,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.pubsub.v1.ValidateSchemaResponse)) {
       return super.equals(obj);
     }
-    com.google.pubsub.v1.ValidateSchemaResponse other =
-        (com.google.pubsub.v1.ValidateSchemaResponse) obj;
+    com.google.pubsub.v1.ValidateSchemaResponse other = (com.google.pubsub.v1.ValidateSchemaResponse) obj;
 
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -158,104 +139,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom(java.nio.ByteBuffer data)
+  public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.ValidateSchemaResponse 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.pubsub.v1.ValidateSchemaResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.pubsub.v1.ValidateSchemaResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.pubsub.v1.ValidateSchemaResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.pubsub.v1.ValidateSchemaResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.pubsub.v1.ValidateSchemaResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 the `ValidateSchema` method.
    * Empty for now.
@@ -263,23 +237,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.pubsub.v1.ValidateSchemaResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ValidateSchemaResponse)
       com.google.pubsub.v1.ValidateSchemaResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.pubsub.v1.SchemaProto
-          .internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.pubsub.v1.SchemaProto
-          .internal_static_google_pubsub_v1_ValidateSchemaResponse_fieldAccessorTable
+      return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateSchemaResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.pubsub.v1.ValidateSchemaResponse.class,
-              com.google.pubsub.v1.ValidateSchemaResponse.Builder.class);
+              com.google.pubsub.v1.ValidateSchemaResponse.class, com.google.pubsub.v1.ValidateSchemaResponse.Builder.class);
     }
 
     // Construct using com.google.pubsub.v1.ValidateSchemaResponse.newBuilder()
@@ -287,15 +259,16 @@ 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) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -303,9 +276,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.pubsub.v1.SchemaProto
-          .internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor;
     }
 
     @java.lang.Override
@@ -324,8 +297,7 @@ public com.google.pubsub.v1.ValidateSchemaResponse build() {
 
     @java.lang.Override
     public com.google.pubsub.v1.ValidateSchemaResponse buildPartial() {
-      com.google.pubsub.v1.ValidateSchemaResponse result =
-          new com.google.pubsub.v1.ValidateSchemaResponse(this);
+      com.google.pubsub.v1.ValidateSchemaResponse result = new com.google.pubsub.v1.ValidateSchemaResponse(this);
       onBuilt();
       return result;
     }
@@ -334,39 +306,38 @@ public com.google.pubsub.v1.ValidateSchemaResponse 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.pubsub.v1.ValidateSchemaResponse) {
-        return mergeFrom((com.google.pubsub.v1.ValidateSchemaResponse) other);
+        return mergeFrom((com.google.pubsub.v1.ValidateSchemaResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -403,9 +374,9 @@ public Builder mergeFrom(
       }
       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);
     }
 
@@ -415,12 +386,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ValidateSchemaResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.pubsub.v1.ValidateSchemaResponse)
   private static final com.google.pubsub.v1.ValidateSchemaResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.pubsub.v1.ValidateSchemaResponse();
   }
@@ -429,16 +400,16 @@ public static com.google.pubsub.v1.ValidateSchemaResponse getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ValidateSchemaResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new ValidateSchemaResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ValidateSchemaResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new ValidateSchemaResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -453,4 +424,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.pubsub.v1.ValidateSchemaResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java
new file mode 100644
index 000000000..b3fb35d84
--- /dev/null
+++ b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java
@@ -0,0 +1,9 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/pubsub/v1/schema.proto
+
+package com.google.pubsub.v1;
+
+public interface ValidateSchemaResponseOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ValidateSchemaResponse)
+    com.google.protobuf.MessageOrBuilder {
+}
diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto
similarity index 100%
rename from proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto
diff --git a/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto b/owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto
similarity index 100%
rename from proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto
rename to owl-bot-staging/v1/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto
diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java
deleted file mode 100644
index 5b4e5d304..000000000
--- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/pubsub/v1/schema.proto
-
-package com.google.pubsub.v1;
-
-public interface DeleteSchemaRequestOrBuilder
-    extends
-    // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteSchemaRequest)
-    com.google.protobuf.MessageOrBuilder {
-
-  /**
-   *
-   *
-   * 
-   * Required. Name of the schema to delete.
-   * Format is `projects/{project}/schemas/{schema}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the schema to delete.
-   * Format is `projects/{project}/schemas/{schema}`.
-   * 
- * - * - * 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-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java deleted file mode 100644 index 43c455746..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -package com.google.pubsub.v1; - -public interface DeleteSnapshotRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteSnapshotRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the snapshot to delete.
-   * Format is `projects/{project}/snapshots/{snap}`.
-   * 
- * - * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The snapshot. - */ - java.lang.String getSnapshot(); - /** - * - * - *
-   * Required. The name of the snapshot to delete.
-   * Format is `projects/{project}/snapshots/{snap}`.
-   * 
- * - * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for snapshot. - */ - com.google.protobuf.ByteString getSnapshotBytes(); -} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java deleted file mode 100644 index d48320804..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -package com.google.pubsub.v1; - -public interface DeleteSubscriptionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteSubscriptionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The subscription to delete.
-   * Format is `projects/{project}/subscriptions/{sub}`.
-   * 
- * - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The subscription. - */ - java.lang.String getSubscription(); - /** - * - * - *
-   * Required. The subscription to delete.
-   * Format is `projects/{project}/subscriptions/{sub}`.
-   * 
- * - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for subscription. - */ - com.google.protobuf.ByteString getSubscriptionBytes(); -} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java deleted file mode 100644 index a7267ded0..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -package com.google.pubsub.v1; - -public interface DeleteTopicRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteTopicRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the topic to delete.
-   * Format is `projects/{project}/topics/{topic}`.
-   * 
- * - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The topic. - */ - java.lang.String getTopic(); - /** - * - * - *
-   * Required. Name of the topic to delete.
-   * Format is `projects/{project}/topics/{topic}`.
-   * 
- * - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for topic. - */ - com.google.protobuf.ByteString getTopicBytes(); -} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java deleted file mode 100644 index 27cd842bc..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -package com.google.pubsub.v1; - -public interface DetachSubscriptionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DetachSubscriptionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The subscription to detach.
-   * Format is `projects/{project}/subscriptions/{subscription}`.
-   * 
- * - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The subscription. - */ - java.lang.String getSubscription(); - /** - * - * - *
-   * Required. The subscription to detach.
-   * Format is `projects/{project}/subscriptions/{subscription}`.
-   * 
- * - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for subscription. - */ - com.google.protobuf.ByteString getSubscriptionBytes(); -} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java deleted file mode 100644 index ce75ecb80..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -package com.google.pubsub.v1; - -public interface DetachSubscriptionResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DetachSubscriptionResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java deleted file mode 100644 index f101510fd..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -package com.google.pubsub.v1; - -public interface GetSnapshotRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.GetSnapshotRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the snapshot to get.
-   * Format is `projects/{project}/snapshots/{snap}`.
-   * 
- * - * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The snapshot. - */ - java.lang.String getSnapshot(); - /** - * - * - *
-   * Required. The name of the snapshot to get.
-   * Format is `projects/{project}/snapshots/{snap}`.
-   * 
- * - * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for snapshot. - */ - com.google.protobuf.ByteString getSnapshotBytes(); -} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java deleted file mode 100644 index ca8af6c8b..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -package com.google.pubsub.v1; - -public interface GetSubscriptionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.GetSubscriptionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the subscription to get.
-   * Format is `projects/{project}/subscriptions/{sub}`.
-   * 
- * - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The subscription. - */ - java.lang.String getSubscription(); - /** - * - * - *
-   * Required. The name of the subscription to get.
-   * Format is `projects/{project}/subscriptions/{sub}`.
-   * 
- * - * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for subscription. - */ - com.google.protobuf.ByteString getSubscriptionBytes(); -} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java deleted file mode 100644 index b3695fc5a..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -package com.google.pubsub.v1; - -public interface GetTopicRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.GetTopicRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the topic to get.
-   * Format is `projects/{project}/topics/{topic}`.
-   * 
- * - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The topic. - */ - java.lang.String getTopic(); - /** - * - * - *
-   * Required. The name of the topic to get.
-   * Format is `projects/{project}/topics/{topic}`.
-   * 
- * - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for topic. - */ - com.google.protobuf.ByteString getTopicBytes(); -} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java deleted file mode 100644 index d233bca82..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -package com.google.pubsub.v1; - -public interface PublishRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PublishRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The messages in the request will be published on this topic.
-   * Format is `projects/{project}/topics/{topic}`.
-   * 
- * - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The topic. - */ - java.lang.String getTopic(); - /** - * - * - *
-   * Required. The messages in the request will be published on this topic.
-   * Format is `projects/{project}/topics/{topic}`.
-   * 
- * - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for topic. - */ - com.google.protobuf.ByteString getTopicBytes(); - - /** - * - * - *
-   * Required. The messages to publish.
-   * 
- * - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getMessagesList(); - /** - * - * - *
-   * Required. The messages to publish.
-   * 
- * - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.pubsub.v1.PubsubMessage getMessages(int index); - /** - * - * - *
-   * Required. The messages to publish.
-   * 
- * - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getMessagesCount(); - /** - * - * - *
-   * Required. The messages to publish.
-   * 
- * - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getMessagesOrBuilderList(); - /** - * - * - *
-   * Required. The messages to publish.
-   * 
- * - * - * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder(int index); -} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java deleted file mode 100644 index 1404e218e..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ /dev/null @@ -1,1004 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -package com.google.pubsub.v1; - -public final class PubsubProto { - private PubsubProto() {} - - 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_pubsub_v1_MessageStoragePolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_SchemaSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_SchemaSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_Topic_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_Topic_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_Topic_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_PubsubMessage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_GetTopicRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_PublishRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_PublishResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_Subscription_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_Subscription_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_Subscription_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_RetryPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ExpirationPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_PushConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_PushConfig_AttributesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ReceivedMessage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_PullRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_PullResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_StreamingPullRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_StreamingPullResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_Snapshot_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_Snapshot_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_SeekRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_SeekResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_SeekResponse_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\035google/pubsub/v1/pubsub.proto\022\020google." - + "pubsub.v1\032\034google/api/annotations.proto\032" - + "\027google/api/client.proto\032\037google/api/fie" - + "ld_behavior.proto\032\031google/api/resource.p" - + "roto\032\036google/protobuf/duration.proto\032\033go" - + "ogle/protobuf/empty.proto\032 google/protob" - + "uf/field_mask.proto\032\037google/protobuf/tim" - + "estamp.proto\032\035google/pubsub/v1/schema.pr" - + "oto\";\n\024MessageStoragePolicy\022#\n\033allowed_p" - + "ersistence_regions\030\001 \003(\t\"t\n\016SchemaSettin" - + "gs\0224\n\006schema\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub.googl" - + "eapis.com/Schema\022,\n\010encoding\030\002 \001(\0162\032.goo" - + "gle.pubsub.v1.Encoding\"\303\003\n\005Topic\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\002\0223\n\006labels\030\002 \003(\0132#.google.pub" - + "sub.v1.Topic.LabelsEntry\022F\n\026message_stor" - + "age_policy\030\003 \001(\0132&.google.pubsub.v1.Mess" - + "ageStoragePolicy\022\024\n\014kms_key_name\030\005 \001(\t\0229" - + "\n\017schema_settings\030\006 \001(\0132 .google.pubsub." - + "v1.SchemaSettings\022\025\n\rsatisfies_pzs\030\007 \001(\010" - + "\022=\n\032message_retention_duration\030\010 \001(\0132\031.g" - + "oogle.protobuf.Duration\032-\n\013LabelsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:T\352AQ\n\033pub" - + "sub.googleapis.com/Topic\022!projects/{proj" - + "ect}/topics/{topic}\022\017_deleted-topic_\"\361\001\n" - + "\rPubsubMessage\022\014\n\004data\030\001 \001(\014\022C\n\nattribut" - + "es\030\002 \003(\0132/.google.pubsub.v1.PubsubMessag" - + "e.AttributesEntry\022\022\n\nmessage_id\030\003 \001(\t\0220\n" - + "\014publish_time\030\004 \001(\0132\032.google.protobuf.Ti" - + "mestamp\022\024\n\014ordering_key\030\005 \001(\t\0321\n\017Attribu" - + "tesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + "\"E\n\017GetTopicRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372" - + "A\035\n\033pubsub.googleapis.com/Topic\"w\n\022Updat" - + "eTopicRequest\022+\n\005topic\030\001 \001(\0132\027.google.pu" - + "bsub.v1.TopicB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132" - + "\032.google.protobuf.FieldMaskB\003\340A\002\"|\n\016Publ" - + "ishRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsu" - + "b.googleapis.com/Topic\0226\n\010messages\030\002 \003(\013" - + "2\037.google.pubsub.v1.PubsubMessageB\003\340A\002\"&" - + "\n\017PublishResponse\022\023\n\013message_ids\030\001 \003(\t\"\200" - + "\001\n\021ListTopicsRequest\022D\n\007project\030\001 \001(\tB3\340" - + "A\002\372A-\n+cloudresourcemanager.googleapis.c" - + "om/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" - + "ken\030\003 \001(\t\"V\n\022ListTopicsResponse\022\'\n\006topic" - + "s\030\001 \003(\0132\027.google.pubsub.v1.Topic\022\027\n\017next" - + "_page_token\030\002 \001(\t\"z\n\035ListTopicSubscripti" - + "onsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsu" - + "b.googleapis.com/Topic\022\021\n\tpage_size\030\002 \001(" - + "\005\022\022\n\npage_token\030\003 \001(\t\"y\n\036ListTopicSubscr" - + "iptionsResponse\022>\n\rsubscriptions\030\001 \003(\tB\'" - + "\372A$\n\"pubsub.googleapis.com/Subscription\022" - + "\027\n\017next_page_token\030\002 \001(\t\"v\n\031ListTopicSna" - + "pshotsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pu" - + "bsub.googleapis.com/Topic\022\021\n\tpage_size\030\002" - + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"H\n\032ListTopicSna" - + "pshotsResponse\022\021\n\tsnapshots\030\001 \003(\t\022\027\n\017nex" - + "t_page_token\030\002 \001(\t\"H\n\022DeleteTopicRequest" - + "\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleap" - + "is.com/Topic\"]\n\031DetachSubscriptionReques" - + "t\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub." - + "googleapis.com/Subscription\"\034\n\032DetachSub" - + "scriptionResponse\"\212\006\n\014Subscription\022\021\n\004na" - + "me\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(\tB#\340A\002\372A\035\n\033pu" - + "bsub.googleapis.com/Topic\0221\n\013push_config" - + "\030\004 \001(\0132\034.google.pubsub.v1.PushConfig\022\034\n\024" - + "ack_deadline_seconds\030\005 \001(\005\022\035\n\025retain_ack" - + "ed_messages\030\007 \001(\010\022=\n\032message_retention_d" - + "uration\030\010 \001(\0132\031.google.protobuf.Duration" - + "\022:\n\006labels\030\t \003(\0132*.google.pubsub.v1.Subs" - + "cription.LabelsEntry\022\037\n\027enable_message_o" - + "rdering\030\n \001(\010\022=\n\021expiration_policy\030\013 \001(\013" - + "2\".google.pubsub.v1.ExpirationPolicy\022\016\n\006" - + "filter\030\014 \001(\t\022>\n\022dead_letter_policy\030\r \001(\013" - + "2\".google.pubsub.v1.DeadLetterPolicy\0223\n\014" - + "retry_policy\030\016 \001(\0132\035.google.pubsub.v1.Re" - + "tryPolicy\022\020\n\010detached\030\017 \001(\010\022H\n topic_mes" - + "sage_retention_duration\030\021 \001(\0132\031.google.p" - + "rotobuf.DurationB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:X\352AU\n\"pubsu" - + "b.googleapis.com/Subscription\022/projects/" - + "{project}/subscriptions/{subscription}\"u" - + "\n\013RetryPolicy\0222\n\017minimum_backoff\030\001 \001(\0132\031" - + ".google.protobuf.Duration\0222\n\017maximum_bac" - + "koff\030\002 \001(\0132\031.google.protobuf.Duration\"L\n" - + "\020DeadLetterPolicy\022\031\n\021dead_letter_topic\030\001" - + " \001(\t\022\035\n\025max_delivery_attempts\030\002 \001(\005\":\n\020E" - + "xpirationPolicy\022&\n\003ttl\030\001 \001(\0132\031.google.pr" - + "otobuf.Duration\"\255\002\n\nPushConfig\022\025\n\rpush_e" - + "ndpoint\030\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.goog" - + "le.pubsub.v1.PushConfig.AttributesEntry\022" - + "<\n\noidc_token\030\003 \001(\0132&.google.pubsub.v1.P" - + "ushConfig.OidcTokenH\000\032<\n\tOidcToken\022\035\n\025se" - + "rvice_account_email\030\001 \001(\t\022\020\n\010audience\030\002 " - + "\001(\t\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - + "alue\030\002 \001(\t:\0028\001B\027\n\025authentication_method\"" - + "m\n\017ReceivedMessage\022\016\n\006ack_id\030\001 \001(\t\0220\n\007me" - + "ssage\030\002 \001(\0132\037.google.pubsub.v1.PubsubMes" - + "sage\022\030\n\020delivery_attempt\030\003 \001(\005\"Z\n\026GetSub" - + "scriptionRequest\022@\n\014subscription\030\001 \001(\tB*" - + "\340A\002\372A$\n\"pubsub.googleapis.com/Subscripti" - + "on\"\214\001\n\031UpdateSubscriptionRequest\0229\n\014subs" - + "cription\030\001 \001(\0132\036.google.pubsub.v1.Subscr" - + "iptionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.googl" - + "e.protobuf.FieldMaskB\003\340A\002\"\207\001\n\030ListSubscr" - + "iptionsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n" - + "+cloudresourcemanager.googleapis.com/Pro" - + "ject\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " - + "\001(\t\"k\n\031ListSubscriptionsResponse\0225\n\rsubs" - + "criptions\030\001 \003(\0132\036.google.pubsub.v1.Subsc" - + "ription\022\027\n\017next_page_token\030\002 \001(\t\"]\n\031Dele" - + "teSubscriptionRequest\022@\n\014subscription\030\001 " - + "\001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subsc" - + "ription\"\223\001\n\027ModifyPushConfigRequest\022@\n\014s" - + "ubscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.google" - + "apis.com/Subscription\0226\n\013push_config\030\002 \001" - + "(\0132\034.google.pubsub.v1.PushConfigB\003\340A\002\"\215\001" - + "\n\013PullRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002" - + "\372A$\n\"pubsub.googleapis.com/Subscription\022" - + "!\n\022return_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014ma" - + "x_messages\030\003 \001(\005B\003\340A\002\"L\n\014PullResponse\022<\n" - + "\021received_messages\030\001 \003(\0132!.google.pubsub" - + ".v1.ReceivedMessage\"\225\001\n\030ModifyAckDeadlin" - + "eRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"" - + "pubsub.googleapis.com/Subscription\022\024\n\007ac" - + "k_ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_deadline_seconds" - + "\030\003 \001(\005B\003\340A\002\"l\n\022AcknowledgeRequest\022@\n\014sub" - + "scription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleap" - + "is.com/Subscription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A" - + "\002\"\251\002\n\024StreamingPullRequest\022@\n\014subscripti" - + "on\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/" - + "Subscription\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027modify_" - + "deadline_seconds\030\003 \003(\005\022\037\n\027modify_deadlin" - + "e_ack_ids\030\004 \003(\t\022(\n\033stream_ack_deadline_s" - + "econds\030\005 \001(\005B\003\340A\002\022\021\n\tclient_id\030\006 \001(\t\022 \n\030" - + "max_outstanding_messages\030\007 \001(\003\022\035\n\025max_ou" - + "tstanding_bytes\030\010 \001(\003\"\362\001\n\025StreamingPullR" - + "esponse\022<\n\021received_messages\030\001 \003(\0132!.goo" - + "gle.pubsub.v1.ReceivedMessage\022_\n\027subscri" - + "ption_properties\030\004 \001(\0132>.google.pubsub.v" - + "1.StreamingPullResponse.SubscriptionProp" - + "erties\032:\n\026SubscriptionProperties\022 \n\030mess" - + "age_ordering_enabled\030\002 \001(\010\"\203\002\n\025CreateSna" - + "pshotRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036pubs" - + "ub.googleapis.com/Snapshot\022@\n\014subscripti" - + "on\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/" - + "Subscription\022C\n\006labels\030\003 \003(\01323.google.pu" - + "bsub.v1.CreateSnapshotRequest.LabelsEntr" - + "y\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001\"\200\001\n\025UpdateSnapshotRequest\0221\n\010sn" - + "apshot\030\001 \001(\0132\032.google.pubsub.v1.Snapshot" - + "B\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.prot" - + "obuf.FieldMaskB\003\340A\002\"\257\002\n\010Snapshot\022\014\n\004name" - + "\030\001 \001(\t\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pubsub.googl" - + "eapis.com/Topic\022/\n\013expire_time\030\003 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\0226\n\006labels\030\004 \003(\013" - + "2&.google.pubsub.v1.Snapshot.LabelsEntry" - + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001:L\352AI\n\036pubsub.googleapis.com/Snap" - + "shot\022\'projects/{project}/snapshots/{snap" - + "shot}\"N\n\022GetSnapshotRequest\0228\n\010snapshot\030" - + "\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Sna" - + "pshot\"\203\001\n\024ListSnapshotsRequest\022D\n\007projec" - + "t\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.go" - + "ogleapis.com/Project\022\021\n\tpage_size\030\002 \001(\005\022" - + "\022\n\npage_token\030\003 \001(\t\"_\n\025ListSnapshotsResp" - + "onse\022-\n\tsnapshots\030\001 \003(\0132\032.google.pubsub." - + "v1.Snapshot\022\027\n\017next_page_token\030\002 \001(\t\"Q\n\025" - + "DeleteSnapshotRequest\0228\n\010snapshot\030\001 \001(\tB" - + "&\340A\002\372A \n\036pubsub.googleapis.com/Snapshot\"" - + "\276\001\n\013SeekRequest\022@\n\014subscription\030\001 \001(\tB*\340" - + "A\002\372A$\n\"pubsub.googleapis.com/Subscriptio" - + "n\022*\n\004time\030\002 \001(\0132\032.google.protobuf.Timest" - + "ampH\000\0227\n\010snapshot\030\003 \001(\tB#\372A \n\036pubsub.goo" - + "gleapis.com/SnapshotH\000B\010\n\006target\"\016\n\014Seek" - + "Response2\243\013\n\tPublisher\022q\n\013CreateTopic\022\027." - + "google.pubsub.v1.Topic\032\027.google.pubsub.v" - + "1.Topic\"0\202\323\344\223\002#\032\036/v1/{name=projects/*/to" - + "pics/*}:\001*\332A\004name\022}\n\013UpdateTopic\022$.googl" - + "e.pubsub.v1.UpdateTopicRequest\032\027.google." - + "pubsub.v1.Topic\"/\202\323\344\223\002)2$/v1/{topic.name" - + "=projects/*/topics/*}:\001*\022\223\001\n\007Publish\022 .g" - + "oogle.pubsub.v1.PublishRequest\032!.google." - + "pubsub.v1.PublishResponse\"C\202\323\344\223\002,\"\'/v1/{" - + "topic=projects/*/topics/*}:publish:\001*\332A\016" - + "topic,messages\022w\n\010GetTopic\022!.google.pubs" - + "ub.v1.GetTopicRequest\032\027.google.pubsub.v1" - + ".Topic\"/\202\323\344\223\002!\022\037/v1/{topic=projects/*/to" - + "pics/*}\332A\005topic\022\212\001\n\nListTopics\022#.google." - + "pubsub.v1.ListTopicsRequest\032$.google.pub" - + "sub.v1.ListTopicsResponse\"1\202\323\344\223\002!\022\037/v1/{" - + "project=projects/*}/topics\332A\007project\022\272\001\n" - + "\026ListTopicSubscriptions\022/.google.pubsub." - + "v1.ListTopicSubscriptionsRequest\0320.googl" - + "e.pubsub.v1.ListTopicSubscriptionsRespon" - + "se\"=\202\323\344\223\002/\022-/v1/{topic=projects/*/topics" - + "/*}/subscriptions\332A\005topic\022\252\001\n\022ListTopicS" - + "napshots\022+.google.pubsub.v1.ListTopicSna" - + "pshotsRequest\032,.google.pubsub.v1.ListTop" - + "icSnapshotsResponse\"9\202\323\344\223\002+\022)/v1/{topic=" - + "projects/*/topics/*}/snapshots\332A\005topic\022|" - + "\n\013DeleteTopic\022$.google.pubsub.v1.DeleteT" - + "opicRequest\032\026.google.protobuf.Empty\"/\202\323\344" - + "\223\002!*\037/v1/{topic=projects/*/topics/*}\332A\005t" - + "opic\022\255\001\n\022DetachSubscription\022+.google.pub" - + "sub.v1.DetachSubscriptionRequest\032,.googl" - + "e.pubsub.v1.DetachSubscriptionResponse\"<" - + "\202\323\344\223\0026\"4/v1/{subscription=projects/*/sub" - + "scriptions/*}:detach\032p\312A\025pubsub.googleap" - + "is.com\322AUhttps://www.googleapis.com/auth" - + "/cloud-platform,https://www.googleapis.c" - + "om/auth/pubsub2\240\025\n\nSubscriber\022\264\001\n\022Create" - + "Subscription\022\036.google.pubsub.v1.Subscrip" - + "tion\032\036.google.pubsub.v1.Subscription\"^\202\323" - + "\344\223\002*\032%/v1/{name=projects/*/subscriptions" - + "/*}:\001*\332A+name,topic,push_config,ack_dead" - + "line_seconds\022\241\001\n\017GetSubscription\022(.googl" - + "e.pubsub.v1.GetSubscriptionRequest\032\036.goo" - + "gle.pubsub.v1.Subscription\"D\202\323\344\223\002/\022-/v1/" - + "{subscription=projects/*/subscriptions/*" - + "}\332A\014subscription\022\240\001\n\022UpdateSubscription\022" - + "+.google.pubsub.v1.UpdateSubscriptionReq" - + "uest\032\036.google.pubsub.v1.Subscription\"=\202\323" - + "\344\223\002722/v1/{subscription.name=projects/*/" - + "subscriptions/*}:\001*\022\246\001\n\021ListSubscription" - + "s\022*.google.pubsub.v1.ListSubscriptionsRe" - + "quest\032+.google.pubsub.v1.ListSubscriptio" - + "nsResponse\"8\202\323\344\223\002(\022&/v1/{project=project" - + "s/*}/subscriptions\332A\007project\022\237\001\n\022DeleteS" - + "ubscription\022+.google.pubsub.v1.DeleteSub" - + "scriptionRequest\032\026.google.protobuf.Empty" - + "\"D\202\323\344\223\002/*-/v1/{subscription=projects/*/s" - + "ubscriptions/*}\332A\014subscription\022\317\001\n\021Modif" - + "yAckDeadline\022*.google.pubsub.v1.ModifyAc" - + "kDeadlineRequest\032\026.google.protobuf.Empty" - + "\"v\202\323\344\223\002D\"?/v1/{subscription=projects/*/s" - + "ubscriptions/*}:modifyAckDeadline:\001*\332A)s" - + "ubscription,ack_ids,ack_deadline_seconds" - + "\022\250\001\n\013Acknowledge\022$.google.pubsub.v1.Ackn" - + "owledgeRequest\032\026.google.protobuf.Empty\"[" - + "\202\323\344\223\002>\"9/v1/{subscription=projects/*/sub" - + "scriptions/*}:acknowledge:\001*\332A\024subscript" - + "ion,ack_ids\022\320\001\n\004Pull\022\035.google.pubsub.v1." - + "PullRequest\032\036.google.pubsub.v1.PullRespo" - + "nse\"\210\001\202\323\344\223\0027\"2/v1/{subscription=projects" - + "/*/subscriptions/*}:pull:\001*\332A,subscripti" - + "on,return_immediately,max_messages\332A\031sub" - + "scription,max_messages\022f\n\rStreamingPull\022" - + "&.google.pubsub.v1.StreamingPullRequest\032" - + "\'.google.pubsub.v1.StreamingPullResponse" - + "\"\000(\0010\001\022\273\001\n\020ModifyPushConfig\022).google.pub" - + "sub.v1.ModifyPushConfigRequest\032\026.google." - + "protobuf.Empty\"d\202\323\344\223\002C\">/v1/{subscriptio" - + "n=projects/*/subscriptions/*}:modifyPush" - + "Config:\001*\332A\030subscription,push_config\022\211\001\n" - + "\013GetSnapshot\022$.google.pubsub.v1.GetSnaps" - + "hotRequest\032\032.google.pubsub.v1.Snapshot\"8" - + "\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snapsho" - + "ts/*}\332A\010snapshot\022\226\001\n\rListSnapshots\022&.goo" - + "gle.pubsub.v1.ListSnapshotsRequest\032\'.goo" - + "gle.pubsub.v1.ListSnapshotsResponse\"4\202\323\344" - + "\223\002$\022\"/v1/{project=projects/*}/snapshots\332" - + "A\007project\022\227\001\n\016CreateSnapshot\022\'.google.pu" - + "bsub.v1.CreateSnapshotRequest\032\032.google.p" - + "ubsub.v1.Snapshot\"@\202\323\344\223\002&\032!/v1/{name=pro" - + "jects/*/snapshots/*}:\001*\332A\021name,subscript" - + "ion\022\214\001\n\016UpdateSnapshot\022\'.google.pubsub.v" - + "1.UpdateSnapshotRequest\032\032.google.pubsub." - + "v1.Snapshot\"5\202\323\344\223\002/2*/v1/{snapshot.name=" - + "projects/*/snapshots/*}:\001*\022\213\001\n\016DeleteSna" - + "pshot\022\'.google.pubsub.v1.DeleteSnapshotR" - + "equest\032\026.google.protobuf.Empty\"8\202\323\344\223\002\'*%" - + "/v1/{snapshot=projects/*/snapshots/*}\332A\010" - + "snapshot\022\204\001\n\004Seek\022\035.google.pubsub.v1.See" - + "kRequest\032\036.google.pubsub.v1.SeekResponse" - + "\"=\202\323\344\223\0027\"2/v1/{subscription=projects/*/s" - + "ubscriptions/*}:seek:\001*\032p\312A\025pubsub.googl" - + "eapis.com\322AUhttps://www.googleapis.com/a" - + "uth/cloud-platform,https://www.googleapi" - + "s.com/auth/pubsubB\256\001\n\024com.google.pubsub." - + "v1B\013PubsubProtoP\001Z6google.golang.org/gen" - + "proto/googleapis/pubsub/v1;pubsub\370\001\001\252\002\026G" - + "oogle.Cloud.PubSub.V1\312\002\026Google\\Cloud\\Pub" - + "Sub\\V1\352\002\031Google::Cloud::PubSub::V1b\006prot" - + "o3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.pubsub.v1.SchemaProto.getDescriptor(), - }); - internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor, - new java.lang.String[] { - "AllowedPersistenceRegions", - }); - internal_static_google_pubsub_v1_SchemaSettings_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_pubsub_v1_SchemaSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_SchemaSettings_descriptor, - new java.lang.String[] { - "Schema", "Encoding", - }); - internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(2); - internal_static_google_pubsub_v1_Topic_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_Topic_descriptor, - new java.lang.String[] { - "Name", - "Labels", - "MessageStoragePolicy", - "KmsKeyName", - "SchemaSettings", - "SatisfiesPzs", - "MessageRetentionDuration", - }); - internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor = - internal_static_google_pubsub_v1_Topic_descriptor.getNestedTypes().get(0); - internal_static_google_pubsub_v1_Topic_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_pubsub_v1_PubsubMessage_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_PubsubMessage_descriptor, - new java.lang.String[] { - "Data", "Attributes", "MessageId", "PublishTime", "OrderingKey", - }); - internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor = - internal_static_google_pubsub_v1_PubsubMessage_descriptor.getNestedTypes().get(0); - internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_pubsub_v1_GetTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_GetTopicRequest_descriptor, - new java.lang.String[] { - "Topic", - }); - internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor, - new java.lang.String[] { - "Topic", "UpdateMask", - }); - internal_static_google_pubsub_v1_PublishRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_PublishRequest_descriptor, - new java.lang.String[] { - "Topic", "Messages", - }); - internal_static_google_pubsub_v1_PublishResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_PublishResponse_descriptor, - new java.lang.String[] { - "MessageIds", - }); - internal_static_google_pubsub_v1_ListTopicsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ListTopicsRequest_descriptor, - new java.lang.String[] { - "Project", "PageSize", "PageToken", - }); - internal_static_google_pubsub_v1_ListTopicsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ListTopicsResponse_descriptor, - new java.lang.String[] { - "Topics", "NextPageToken", - }); - internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor, - new java.lang.String[] { - "Topic", "PageSize", "PageToken", - }); - internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor, - new java.lang.String[] { - "Subscriptions", "NextPageToken", - }); - internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor, - new java.lang.String[] { - "Topic", "PageSize", "PageToken", - }); - internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor, - new java.lang.String[] { - "Snapshots", "NextPageToken", - }); - internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor, - new java.lang.String[] { - "Topic", - }); - internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor, - new java.lang.String[] { - "Subscription", - }); - internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_pubsub_v1_Subscription_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_pubsub_v1_Subscription_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_Subscription_descriptor, - new java.lang.String[] { - "Name", - "Topic", - "PushConfig", - "AckDeadlineSeconds", - "RetainAckedMessages", - "MessageRetentionDuration", - "Labels", - "EnableMessageOrdering", - "ExpirationPolicy", - "Filter", - "DeadLetterPolicy", - "RetryPolicy", - "Detached", - "TopicMessageRetentionDuration", - }); - internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor = - internal_static_google_pubsub_v1_Subscription_descriptor.getNestedTypes().get(0); - internal_static_google_pubsub_v1_Subscription_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_pubsub_v1_RetryPolicy_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_RetryPolicy_descriptor, - new java.lang.String[] { - "MinimumBackoff", "MaximumBackoff", - }); - internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor, - new java.lang.String[] { - "DeadLetterTopic", "MaxDeliveryAttempts", - }); - internal_static_google_pubsub_v1_ExpirationPolicy_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ExpirationPolicy_descriptor, - new java.lang.String[] { - "Ttl", - }); - internal_static_google_pubsub_v1_PushConfig_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_PushConfig_descriptor, - new java.lang.String[] { - "PushEndpoint", "Attributes", "OidcToken", "AuthenticationMethod", - }); - internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor = - internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(0); - internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor, - new java.lang.String[] { - "ServiceAccountEmail", "Audience", - }); - internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor = - internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(1); - internal_static_google_pubsub_v1_PushConfig_AttributesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_pubsub_v1_ReceivedMessage_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ReceivedMessage_descriptor, - new java.lang.String[] { - "AckId", "Message", "DeliveryAttempt", - }); - internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor, - new java.lang.String[] { - "Subscription", - }); - internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor, - new java.lang.String[] { - "Subscription", "UpdateMask", - }); - internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor, - new java.lang.String[] { - "Project", "PageSize", "PageToken", - }); - internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor, - new java.lang.String[] { - "Subscriptions", "NextPageToken", - }); - internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor, - new java.lang.String[] { - "Subscription", - }); - internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor, - new java.lang.String[] { - "Subscription", "PushConfig", - }); - internal_static_google_pubsub_v1_PullRequest_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_PullRequest_descriptor, - new java.lang.String[] { - "Subscription", "ReturnImmediately", "MaxMessages", - }); - internal_static_google_pubsub_v1_PullResponse_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_PullResponse_descriptor, - new java.lang.String[] { - "ReceivedMessages", - }); - internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor, - new java.lang.String[] { - "Subscription", "AckIds", "AckDeadlineSeconds", - }); - internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor, - new java.lang.String[] { - "Subscription", "AckIds", - }); - internal_static_google_pubsub_v1_StreamingPullRequest_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_StreamingPullRequest_descriptor, - new java.lang.String[] { - "Subscription", - "AckIds", - "ModifyDeadlineSeconds", - "ModifyDeadlineAckIds", - "StreamAckDeadlineSeconds", - "ClientId", - "MaxOutstandingMessages", - "MaxOutstandingBytes", - }); - internal_static_google_pubsub_v1_StreamingPullResponse_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_StreamingPullResponse_descriptor, - new java.lang.String[] { - "ReceivedMessages", "SubscriptionProperties", - }); - internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor = - internal_static_google_pubsub_v1_StreamingPullResponse_descriptor.getNestedTypes().get(0); - internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor, - new java.lang.String[] { - "MessageOrderingEnabled", - }); - internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor, - new java.lang.String[] { - "Name", "Subscription", "Labels", - }); - internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor = - internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor.getNestedTypes().get(0); - internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor, - new java.lang.String[] { - "Snapshot", "UpdateMask", - }); - internal_static_google_pubsub_v1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_Snapshot_descriptor, - new java.lang.String[] { - "Name", "Topic", "ExpireTime", "Labels", - }); - internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor = - internal_static_google_pubsub_v1_Snapshot_descriptor.getNestedTypes().get(0); - internal_static_google_pubsub_v1_Snapshot_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor, - new java.lang.String[] { - "Snapshot", - }); - internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor, - new java.lang.String[] { - "Project", "PageSize", "PageToken", - }); - internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor, - new java.lang.String[] { - "Snapshots", "NextPageToken", - }); - internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor, - new java.lang.String[] { - "Snapshot", - }); - internal_static_google_pubsub_v1_SeekRequest_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_SeekRequest_descriptor, - new java.lang.String[] { - "Subscription", "Time", "Snapshot", "Target", - }); - internal_static_google_pubsub_v1_SeekResponse_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_SeekResponse_descriptor, new java.lang.String[] {}); - 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.resource); - 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.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.pubsub.v1.SchemaProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java deleted file mode 100644 index f692cb891..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java +++ /dev/null @@ -1,255 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/schema.proto - -package com.google.pubsub.v1; - -public final class SchemaProto { - private SchemaProto() {} - - 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_pubsub_v1_Schema_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_Schema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_CreateSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_GetSchemaRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_GetSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ListSchemasRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ListSchemasRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ListSchemasResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ListSchemasResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_DeleteSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ValidateSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ValidateSchemaResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ValidateMessageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_ValidateMessageResponse_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\035google/pubsub/v1/schema.proto\022\020google." - + "pubsub.v1\032\034google/api/annotations.proto\032" - + "\027google/api/client.proto\032\037google/api/fie" - + "ld_behavior.proto\032\031google/api/resource.p" - + "roto\032\033google/protobuf/empty.proto\"\341\001\n\006Sc" - + "hema\022\021\n\004name\030\001 \001(\tB\003\340A\002\022+\n\004type\030\002 \001(\0162\035." - + "google.pubsub.v1.Schema.Type\022\022\n\ndefiniti" - + "on\030\003 \001(\t\";\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\023" - + "\n\017PROTOCOL_BUFFER\020\001\022\010\n\004AVRO\020\002:F\352AC\n\034pubs" - + "ub.googleapis.com/Schema\022#projects/{proj" - + "ect}/schemas/{schema}\"\215\001\n\023CreateSchemaRe" - + "quest\0224\n\006parent\030\001 \001(\tB$\340A\002\372A\036\022\034pubsub.go" - + "ogleapis.com/Schema\022-\n\006schema\030\002 \001(\0132\030.go" - + "ogle.pubsub.v1.SchemaB\003\340A\002\022\021\n\tschema_id\030" - + "\003 \001(\t\"r\n\020GetSchemaRequest\0222\n\004name\030\001 \001(\tB" - + "$\340A\002\372A\036\n\034pubsub.googleapis.com/Schema\022*\n" - + "\004view\030\002 \001(\0162\034.google.pubsub.v1.SchemaVie" - + "w\"\254\001\n\022ListSchemasRequest\022C\n\006parent\030\001 \001(\t" - + "B3\340A\002\372A-\n+cloudresourcemanager.googleapi" - + "s.com/Project\022*\n\004view\030\002 \001(\0162\034.google.pub" - + "sub.v1.SchemaView\022\021\n\tpage_size\030\003 \001(\005\022\022\n\n" - + "page_token\030\004 \001(\t\"Y\n\023ListSchemasResponse\022" - + ")\n\007schemas\030\001 \003(\0132\030.google.pubsub.v1.Sche" - + "ma\022\027\n\017next_page_token\030\002 \001(\t\"I\n\023DeleteSch" - + "emaRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub" - + ".googleapis.com/Schema\"\213\001\n\025ValidateSchem" - + "aRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudr" - + "esourcemanager.googleapis.com/Project\022-\n" - + "\006schema\030\002 \001(\0132\030.google.pubsub.v1.SchemaB" - + "\003\340A\002\"\030\n\026ValidateSchemaResponse\"\212\002\n\026Valid" - + "ateMessageRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A" - + "-\n+cloudresourcemanager.googleapis.com/P" - + "roject\0221\n\004name\030\002 \001(\tB!\372A\036\n\034pubsub.google" - + "apis.com/SchemaH\000\022*\n\006schema\030\003 \001(\0132\030.goog" - + "le.pubsub.v1.SchemaH\000\022\017\n\007message\030\004 \001(\014\022," - + "\n\010encoding\030\005 \001(\0162\032.google.pubsub.v1.Enco" - + "dingB\r\n\013schema_spec\"\031\n\027ValidateMessageRe" - + "sponse*>\n\nSchemaView\022\033\n\027SCHEMA_VIEW_UNSP" - + "ECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002*:\n\010Encodi" - + "ng\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\010\n\004JSON\020\001\022\n" - + "\n\006BINARY\020\0022\367\007\n\rSchemaService\022\232\001\n\014CreateS" - + "chema\022%.google.pubsub.v1.CreateSchemaReq" - + "uest\032\030.google.pubsub.v1.Schema\"I\202\323\344\223\002)\"\037" - + "/v1/{parent=projects/*}/schemas:\006schema\332" - + "A\027parent,schema,schema_id\022y\n\tGetSchema\022\"" - + ".google.pubsub.v1.GetSchemaRequest\032\030.goo" - + "gle.pubsub.v1.Schema\".\202\323\344\223\002!\022\037/v1/{name=" - + "projects/*/schemas/*}\332A\004name\022\214\001\n\013ListSch" - + "emas\022$.google.pubsub.v1.ListSchemasReque" - + "st\032%.google.pubsub.v1.ListSchemasRespons" - + "e\"0\202\323\344\223\002!\022\037/v1/{parent=projects/*}/schem" - + "as\332A\006parent\022}\n\014DeleteSchema\022%.google.pub" - + "sub.v1.DeleteSchemaRequest\032\026.google.prot" - + "obuf.Empty\".\202\323\344\223\002!*\037/v1/{name=projects/*" - + "/schemas/*}\332A\004name\022\250\001\n\016ValidateSchema\022\'." - + "google.pubsub.v1.ValidateSchemaRequest\032(" - + ".google.pubsub.v1.ValidateSchemaResponse" - + "\"C\202\323\344\223\002-\"(/v1/{parent=projects/*}/schema" - + "s:validate:\001*\332A\rparent,schema\022\242\001\n\017Valida" - + "teMessage\022(.google.pubsub.v1.ValidateMes" - + "sageRequest\032).google.pubsub.v1.ValidateM" - + "essageResponse\":\202\323\344\223\0024\"//v1/{parent=proj" - + "ects/*}/schemas:validateMessage:\001*\032p\312A\025p" - + "ubsub.googleapis.com\322AUhttps://www.googl" - + "eapis.com/auth/cloud-platform,https://ww" - + "w.googleapis.com/auth/pubsubB\256\001\n\024com.goo" - + "gle.pubsub.v1B\013SchemaProtoP\001Z6google.gol" - + "ang.org/genproto/googleapis/pubsub/v1;pu" - + "bsub\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Googl" - + "e\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSu" - + "b::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.protobuf.EmptyProto.getDescriptor(), - }); - internal_static_google_pubsub_v1_Schema_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_google_pubsub_v1_Schema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_Schema_descriptor, - new java.lang.String[] { - "Name", "Type", "Definition", - }); - internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_pubsub_v1_CreateSchemaRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor, - new java.lang.String[] { - "Parent", "Schema", "SchemaId", - }); - internal_static_google_pubsub_v1_GetSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_pubsub_v1_GetSchemaRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_GetSchemaRequest_descriptor, - new java.lang.String[] { - "Name", "View", - }); - internal_static_google_pubsub_v1_ListSchemasRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_pubsub_v1_ListSchemasRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ListSchemasRequest_descriptor, - new java.lang.String[] { - "Parent", "View", "PageSize", "PageToken", - }); - internal_static_google_pubsub_v1_ListSchemasResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_pubsub_v1_ListSchemasResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ListSchemasResponse_descriptor, - new java.lang.String[] { - "Schemas", "NextPageToken", - }); - internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_pubsub_v1_DeleteSchemaRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_pubsub_v1_ValidateSchemaRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor, - new java.lang.String[] { - "Parent", "Schema", - }); - internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_pubsub_v1_ValidateSchemaResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_pubsub_v1_ValidateMessageRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor, - new java.lang.String[] { - "Parent", "Name", "Schema", "Message", "Encoding", "SchemaSpec", - }); - internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_pubsub_v1_ValidateMessageResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor, - new java.lang.String[] {}); - 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.resource); - 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.protobuf.EmptyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java deleted file mode 100644 index 5cdd14219..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/pubsub.proto - -package com.google.pubsub.v1; - -public interface SeekResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.SeekResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java deleted file mode 100644 index e8be64dc7..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/schema.proto - -package com.google.pubsub.v1; - -public interface ValidateMessageResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ValidateMessageResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java b/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java deleted file mode 100644 index 9e8467fc1..000000000 --- a/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/pubsub/v1/schema.proto - -package com.google.pubsub.v1; - -public interface ValidateSchemaResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ValidateSchemaResponse) - com.google.protobuf.MessageOrBuilder {}