From 34bff8067917f15434a4e85c9a0392ffcc2241aa Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 3 Aug 2021 21:52:22 +0000 Subject: [PATCH 1/2] feat!: release gapic-generator-java v2.0.0 Committer: @miraleung PiperOrigin-RevId: 388535346 Source-Link: https://github.com/googleapis/googleapis/commit/d9eaf41de44d953458b18712a3f240bb4c564e48 Source-Link: https://github.com/googleapis/googleapis-gen/commit/976c5ab6f24b58c91fe04847ead1953f99d19e6a --- .../vpcaccess/v1/VpcAccessServiceGrpc.java | 721 --------- .../vpcaccess/v1/VpcAccessServiceClient.java | 24 +- .../v1/VpcAccessServiceSettings.java | 10 +- .../cloud/vpcaccess/v1/gapic_metadata.json | 0 .../cloud/vpcaccess/v1/package-info.java | 0 .../GrpcVpcAccessServiceCallableFactory.java | 0 .../v1/stub/GrpcVpcAccessServiceStub.java | 53 +- .../v1/stub/VpcAccessServiceStub.java | 0 .../v1/stub/VpcAccessServiceStubSettings.java | 9 +- .../vpcaccess/v1/MockVpcAccessService.java | 0 .../v1/MockVpcAccessServiceImpl.java | 0 .../v1/VpcAccessServiceClientTest.java | 0 .../vpcaccess/v1/VpcAccessServiceGrpc.java | 578 +++++++ .../google/cloud/vpcaccess/v1/Connector.java | 1332 +++++++---------- .../cloud/vpcaccess/v1/ConnectorName.java | 0 .../vpcaccess/v1/ConnectorOrBuilder.java | 103 +- .../vpcaccess/v1/CreateConnectorRequest.java | 567 +++---- .../v1/CreateConnectorRequestOrBuilder.java | 64 +- .../vpcaccess/v1/DeleteConnectorRequest.java | 339 ++--- .../v1/DeleteConnectorRequestOrBuilder.java | 29 + .../vpcaccess/v1/GetConnectorRequest.java | 339 ++--- .../v1/GetConnectorRequestOrBuilder.java | 29 + .../vpcaccess/v1/ListConnectorsRequest.java | 452 +++--- .../v1/ListConnectorsRequestOrBuilder.java | 47 +- .../vpcaccess/v1/ListConnectorsResponse.java | 460 +++--- .../v1/ListConnectorsResponseOrBuilder.java | 45 +- .../cloud/vpcaccess/v1/LocationName.java | 0 .../cloud/vpcaccess/v1/OperationMetadata.java | 674 ++++----- .../v1/OperationMetadataOrBuilder.java | 78 +- .../cloud/vpcaccess/v1/VpcAccessProto.java | 213 +++ .../cloud/vpcaccess/v1/vpc_access.proto | 0 .../v1/DeleteConnectorRequestOrBuilder.java | 54 - .../v1/GetConnectorRequestOrBuilder.java | 54 - .../cloud/vpcaccess/v1/VpcAccessProto.java | 242 --- 34 files changed, 2579 insertions(+), 3937 deletions(-) delete mode 100644 grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClient.java (97%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java (96%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/gapic_metadata.json (100%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/package-info.java (100%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceCallableFactory.java (100%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java (86%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStub.java (100%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java (98%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessService.java (100%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessServiceImpl.java (100%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientTest.java (100%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java rename {proto-google-cloud-vpcaccess-v1 => owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java (73%) rename {proto-google-cloud-vpcaccess-v1 => owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java (100%) rename {proto-google-cloud-vpcaccess-v1 => owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java (71%) rename {proto-google-cloud-vpcaccess-v1 => owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java (64%) rename {proto-google-cloud-vpcaccess-v1 => owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequestOrBuilder.java (53%) rename {proto-google-cloud-vpcaccess-v1 => owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequest.java (64%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequestOrBuilder.java rename {proto-google-cloud-vpcaccess-v1 => owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequest.java (64%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequestOrBuilder.java rename {proto-google-cloud-vpcaccess-v1 => owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequest.java (67%) rename {proto-google-cloud-vpcaccess-v1 => owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequestOrBuilder.java (50%) rename {proto-google-cloud-vpcaccess-v1 => owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponse.java (73%) rename {proto-google-cloud-vpcaccess-v1 => owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponseOrBuilder.java (65%) rename {proto-google-cloud-vpcaccess-v1 => owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/LocationName.java (100%) rename {proto-google-cloud-vpcaccess-v1 => owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadata.java (67%) rename {proto-google-cloud-vpcaccess-v1 => owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadataOrBuilder.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessProto.java rename {proto-google-cloud-vpcaccess-v1 => owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1}/src/main/proto/google/cloud/vpcaccess/v1/vpc_access.proto (100%) delete mode 100644 proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequestOrBuilder.java delete mode 100644 proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequestOrBuilder.java delete mode 100644 proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessProto.java diff --git a/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java b/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java deleted file mode 100644 index 957f310d..00000000 --- a/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java +++ /dev/null @@ -1,721 +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.cloud.vpcaccess.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Serverless VPC Access API allows users to create and manage connectors for
- * App Engine, Cloud Functions and Cloud Run to have internal connections to
- * Virtual Private Cloud networks.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/vpcaccess/v1/vpc_access.proto") -public final class VpcAccessServiceGrpc { - - private VpcAccessServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.vpcaccess.v1.VpcAccessService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vpcaccess.v1.CreateConnectorRequest, com.google.longrunning.Operation> - getCreateConnectorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateConnector", - requestType = com.google.cloud.vpcaccess.v1.CreateConnectorRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.vpcaccess.v1.CreateConnectorRequest, com.google.longrunning.Operation> - getCreateConnectorMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.vpcaccess.v1.CreateConnectorRequest, com.google.longrunning.Operation> - getCreateConnectorMethod; - if ((getCreateConnectorMethod = VpcAccessServiceGrpc.getCreateConnectorMethod) == null) { - synchronized (VpcAccessServiceGrpc.class) { - if ((getCreateConnectorMethod = VpcAccessServiceGrpc.getCreateConnectorMethod) == null) { - VpcAccessServiceGrpc.getCreateConnectorMethod = - getCreateConnectorMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnector")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vpcaccess.v1.CreateConnectorRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new VpcAccessServiceMethodDescriptorSupplier("CreateConnector")) - .build(); - } - } - } - return getCreateConnectorMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vpcaccess.v1.GetConnectorRequest, - com.google.cloud.vpcaccess.v1.Connector> - getGetConnectorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConnector", - requestType = com.google.cloud.vpcaccess.v1.GetConnectorRequest.class, - responseType = com.google.cloud.vpcaccess.v1.Connector.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.vpcaccess.v1.GetConnectorRequest, - com.google.cloud.vpcaccess.v1.Connector> - getGetConnectorMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.vpcaccess.v1.GetConnectorRequest, - com.google.cloud.vpcaccess.v1.Connector> - getGetConnectorMethod; - if ((getGetConnectorMethod = VpcAccessServiceGrpc.getGetConnectorMethod) == null) { - synchronized (VpcAccessServiceGrpc.class) { - if ((getGetConnectorMethod = VpcAccessServiceGrpc.getGetConnectorMethod) == null) { - VpcAccessServiceGrpc.getGetConnectorMethod = - getGetConnectorMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnector")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vpcaccess.v1.GetConnectorRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vpcaccess.v1.Connector.getDefaultInstance())) - .setSchemaDescriptor( - new VpcAccessServiceMethodDescriptorSupplier("GetConnector")) - .build(); - } - } - } - return getGetConnectorMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vpcaccess.v1.ListConnectorsRequest, - com.google.cloud.vpcaccess.v1.ListConnectorsResponse> - getListConnectorsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListConnectors", - requestType = com.google.cloud.vpcaccess.v1.ListConnectorsRequest.class, - responseType = com.google.cloud.vpcaccess.v1.ListConnectorsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.vpcaccess.v1.ListConnectorsRequest, - com.google.cloud.vpcaccess.v1.ListConnectorsResponse> - getListConnectorsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.vpcaccess.v1.ListConnectorsRequest, - com.google.cloud.vpcaccess.v1.ListConnectorsResponse> - getListConnectorsMethod; - if ((getListConnectorsMethod = VpcAccessServiceGrpc.getListConnectorsMethod) == null) { - synchronized (VpcAccessServiceGrpc.class) { - if ((getListConnectorsMethod = VpcAccessServiceGrpc.getListConnectorsMethod) == null) { - VpcAccessServiceGrpc.getListConnectorsMethod = - getListConnectorsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnectors")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vpcaccess.v1.ListConnectorsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vpcaccess.v1.ListConnectorsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new VpcAccessServiceMethodDescriptorSupplier("ListConnectors")) - .build(); - } - } - } - return getListConnectorsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.vpcaccess.v1.DeleteConnectorRequest, com.google.longrunning.Operation> - getDeleteConnectorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteConnector", - requestType = com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.vpcaccess.v1.DeleteConnectorRequest, com.google.longrunning.Operation> - getDeleteConnectorMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.vpcaccess.v1.DeleteConnectorRequest, com.google.longrunning.Operation> - getDeleteConnectorMethod; - if ((getDeleteConnectorMethod = VpcAccessServiceGrpc.getDeleteConnectorMethod) == null) { - synchronized (VpcAccessServiceGrpc.class) { - if ((getDeleteConnectorMethod = VpcAccessServiceGrpc.getDeleteConnectorMethod) == null) { - VpcAccessServiceGrpc.getDeleteConnectorMethod = - getDeleteConnectorMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnector")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vpcaccess.v1.DeleteConnectorRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new VpcAccessServiceMethodDescriptorSupplier("DeleteConnector")) - .build(); - } - } - } - return getDeleteConnectorMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static VpcAccessServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public VpcAccessServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VpcAccessServiceStub(channel, callOptions); - } - }; - return VpcAccessServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static VpcAccessServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public VpcAccessServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VpcAccessServiceBlockingStub(channel, callOptions); - } - }; - return VpcAccessServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static VpcAccessServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public VpcAccessServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VpcAccessServiceFutureStub(channel, callOptions); - } - }; - return VpcAccessServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Serverless VPC Access API allows users to create and manage connectors for
-   * App Engine, Cloud Functions and Cloud Run to have internal connections to
-   * Virtual Private Cloud networks.
-   * 
- */ - public abstract static class VpcAccessServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a Serverless VPC Access connector, returns an operation.
-     * 
- */ - public void createConnector( - com.google.cloud.vpcaccess.v1.CreateConnectorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateConnectorMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource
-     * does not exist.
-     * 
- */ - public void getConnector( - com.google.cloud.vpcaccess.v1.GetConnectorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetConnectorMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists Serverless VPC Access connectors.
-     * 
- */ - public void listConnectors( - com.google.cloud.vpcaccess.v1.ListConnectorsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListConnectorsMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the
-     * resource does not exist.
-     * 
- */ - public void deleteConnector( - com.google.cloud.vpcaccess.v1.DeleteConnectorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteConnectorMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateConnectorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vpcaccess.v1.CreateConnectorRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_CONNECTOR))) - .addMethod( - getGetConnectorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vpcaccess.v1.GetConnectorRequest, - com.google.cloud.vpcaccess.v1.Connector>(this, METHODID_GET_CONNECTOR))) - .addMethod( - getListConnectorsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vpcaccess.v1.ListConnectorsRequest, - com.google.cloud.vpcaccess.v1.ListConnectorsResponse>( - this, METHODID_LIST_CONNECTORS))) - .addMethod( - getDeleteConnectorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vpcaccess.v1.DeleteConnectorRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_CONNECTOR))) - .build(); - } - } - - /** - * - * - *
-   * Serverless VPC Access API allows users to create and manage connectors for
-   * App Engine, Cloud Functions and Cloud Run to have internal connections to
-   * Virtual Private Cloud networks.
-   * 
- */ - public static final class VpcAccessServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private VpcAccessServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected VpcAccessServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VpcAccessServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a Serverless VPC Access connector, returns an operation.
-     * 
- */ - public void createConnector( - com.google.cloud.vpcaccess.v1.CreateConnectorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateConnectorMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource
-     * does not exist.
-     * 
- */ - public void getConnector( - com.google.cloud.vpcaccess.v1.GetConnectorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConnectorMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists Serverless VPC Access connectors.
-     * 
- */ - public void listConnectors( - com.google.cloud.vpcaccess.v1.ListConnectorsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListConnectorsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the
-     * resource does not exist.
-     * 
- */ - public void deleteConnector( - com.google.cloud.vpcaccess.v1.DeleteConnectorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteConnectorMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Serverless VPC Access API allows users to create and manage connectors for
-   * App Engine, Cloud Functions and Cloud Run to have internal connections to
-   * Virtual Private Cloud networks.
-   * 
- */ - public static final class VpcAccessServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private VpcAccessServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected VpcAccessServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VpcAccessServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a Serverless VPC Access connector, returns an operation.
-     * 
- */ - public com.google.longrunning.Operation createConnector( - com.google.cloud.vpcaccess.v1.CreateConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateConnectorMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource
-     * does not exist.
-     * 
- */ - public com.google.cloud.vpcaccess.v1.Connector getConnector( - com.google.cloud.vpcaccess.v1.GetConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConnectorMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists Serverless VPC Access connectors.
-     * 
- */ - public com.google.cloud.vpcaccess.v1.ListConnectorsResponse listConnectors( - com.google.cloud.vpcaccess.v1.ListConnectorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListConnectorsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the
-     * resource does not exist.
-     * 
- */ - public com.google.longrunning.Operation deleteConnector( - com.google.cloud.vpcaccess.v1.DeleteConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteConnectorMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Serverless VPC Access API allows users to create and manage connectors for
-   * App Engine, Cloud Functions and Cloud Run to have internal connections to
-   * Virtual Private Cloud networks.
-   * 
- */ - public static final class VpcAccessServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private VpcAccessServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected VpcAccessServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VpcAccessServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a Serverless VPC Access connector, returns an operation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createConnector(com.google.cloud.vpcaccess.v1.CreateConnectorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateConnectorMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource
-     * does not exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vpcaccess.v1.Connector> - getConnector(com.google.cloud.vpcaccess.v1.GetConnectorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetConnectorMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists Serverless VPC Access connectors.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.vpcaccess.v1.ListConnectorsResponse> - listConnectors(com.google.cloud.vpcaccess.v1.ListConnectorsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListConnectorsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the
-     * resource does not exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteConnector(com.google.cloud.vpcaccess.v1.DeleteConnectorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteConnectorMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_CONNECTOR = 0; - private static final int METHODID_GET_CONNECTOR = 1; - private static final int METHODID_LIST_CONNECTORS = 2; - private static final int METHODID_DELETE_CONNECTOR = 3; - - 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 VpcAccessServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(VpcAccessServiceImplBase 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_CONNECTOR: - serviceImpl.createConnector( - (com.google.cloud.vpcaccess.v1.CreateConnectorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CONNECTOR: - serviceImpl.getConnector( - (com.google.cloud.vpcaccess.v1.GetConnectorRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_CONNECTORS: - serviceImpl.listConnectors( - (com.google.cloud.vpcaccess.v1.ListConnectorsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_CONNECTOR: - serviceImpl.deleteConnector( - (com.google.cloud.vpcaccess.v1.DeleteConnectorRequest) 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 VpcAccessServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - VpcAccessServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("VpcAccessService"); - } - } - - private static final class VpcAccessServiceFileDescriptorSupplier - extends VpcAccessServiceBaseDescriptorSupplier { - VpcAccessServiceFileDescriptorSupplier() {} - } - - private static final class VpcAccessServiceMethodDescriptorSupplier - extends VpcAccessServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - VpcAccessServiceMethodDescriptorSupplier(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 (VpcAccessServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new VpcAccessServiceFileDescriptorSupplier()) - .addMethod(getCreateConnectorMethod()) - .addMethod(getGetConnectorMethod()) - .addMethod(getListConnectorsMethod()) - .addMethod(getDeleteConnectorMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClient.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClient.java similarity index 97% rename from google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClient.java rename to owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClient.java index e92d7a71..caf3acd4 100644 --- a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClient.java +++ b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.vpcaccess.v1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -63,13 +62,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. *
* @@ -685,10 +684,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListConnectorsPagedResponse extends AbstractPagedListResponse< - ListConnectorsRequest, - ListConnectorsResponse, - Connector, - ListConnectorsPage, + ListConnectorsRequest, ListConnectorsResponse, Connector, ListConnectorsPage, ListConnectorsFixedSizeCollection> { public static ApiFuture createAsync( @@ -698,12 +694,7 @@ public static ApiFuture createAsync( ListConnectorsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListConnectorsPagedResponse apply(ListConnectorsPage input) { - return new ListConnectorsPagedResponse(input); - } - }, + input -> new ListConnectorsPagedResponse(input), MoreExecutors.directExecutor()); } @@ -743,10 +734,7 @@ public ApiFuture createPageAsync( public static class ListConnectorsFixedSizeCollection extends AbstractFixedSizeCollection< - ListConnectorsRequest, - ListConnectorsResponse, - Connector, - ListConnectorsPage, + ListConnectorsRequest, ListConnectorsResponse, Connector, ListConnectorsPage, ListConnectorsFixedSizeCollection> { private ListConnectorsFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java similarity index 96% rename from google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java rename to owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java index d3fa75e2..7c4cb400 100644 --- a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java +++ b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.vpcaccess.v1.stub.VpcAccessServiceStubSettings; @@ -44,9 +45,9 @@ *

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

    - *
  • The default service address (vpcaccess.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 (vpcaccess.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 @@ -191,14 +192,13 @@ public VpcAccessServiceStubSettings.Builder getStubSettingsBuilder() { return ((VpcAccessServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/gapic_metadata.json similarity index 100% rename from google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/gapic_metadata.json diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/package-info.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/package-info.java similarity index 100% rename from google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/package-info.java diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceCallableFactory.java similarity index 100% rename from google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceCallableFactory.java diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java similarity index 86% rename from google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java rename to owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java index 969b765a..3b7c0c97 100644 --- a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java +++ b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java @@ -24,7 +24,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.vpcaccess.v1.Connector; import com.google.cloud.vpcaccess.v1.CreateConnectorRequest; @@ -151,26 +150,20 @@ protected GrpcVpcAccessServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createConnectorMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateConnectorRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getConnectorTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getConnectorMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetConnectorRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -178,26 +171,20 @@ public Map extract(GetConnectorRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(listConnectorsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListConnectorsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings deleteConnectorTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteConnectorMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteConnectorRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); @@ -277,7 +264,13 @@ public UnaryCallable deleteConnectorCallable( @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStub.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStub.java similarity index 100% rename from google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStub.java rename to owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStub.java diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java similarity index 98% rename from google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java index 20825c66..bbb3ecf4 100644 --- a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java @@ -69,9 +69,9 @@ *

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

    - *
  • The default service address (vpcaccess.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 (vpcaccess.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 @@ -450,14 +450,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessService.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessService.java similarity index 100% rename from google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessService.java rename to owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessService.java diff --git a/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessServiceImpl.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessServiceImpl.java similarity index 100% rename from google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessServiceImpl.java rename to owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessServiceImpl.java diff --git a/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientTest.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientTest.java similarity index 100% rename from google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientTest.java rename to owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientTest.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java new file mode 100644 index 00000000..90d0a72d --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java @@ -0,0 +1,578 @@ +package com.google.cloud.vpcaccess.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Serverless VPC Access API allows users to create and manage connectors for
+ * App Engine, Cloud Functions and Cloud Run to have internal connections to
+ * Virtual Private Cloud networks.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/vpcaccess/v1/vpc_access.proto") +public final class VpcAccessServiceGrpc { + + private VpcAccessServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.vpcaccess.v1.VpcAccessService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateConnectorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConnector", + requestType = com.google.cloud.vpcaccess.v1.CreateConnectorRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateConnectorMethod() { + io.grpc.MethodDescriptor getCreateConnectorMethod; + if ((getCreateConnectorMethod = VpcAccessServiceGrpc.getCreateConnectorMethod) == null) { + synchronized (VpcAccessServiceGrpc.class) { + if ((getCreateConnectorMethod = VpcAccessServiceGrpc.getCreateConnectorMethod) == null) { + VpcAccessServiceGrpc.getCreateConnectorMethod = getCreateConnectorMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnector")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vpcaccess.v1.CreateConnectorRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new VpcAccessServiceMethodDescriptorSupplier("CreateConnector")) + .build(); + } + } + } + return getCreateConnectorMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetConnectorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConnector", + requestType = com.google.cloud.vpcaccess.v1.GetConnectorRequest.class, + responseType = com.google.cloud.vpcaccess.v1.Connector.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetConnectorMethod() { + io.grpc.MethodDescriptor getGetConnectorMethod; + if ((getGetConnectorMethod = VpcAccessServiceGrpc.getGetConnectorMethod) == null) { + synchronized (VpcAccessServiceGrpc.class) { + if ((getGetConnectorMethod = VpcAccessServiceGrpc.getGetConnectorMethod) == null) { + VpcAccessServiceGrpc.getGetConnectorMethod = getGetConnectorMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnector")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vpcaccess.v1.GetConnectorRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vpcaccess.v1.Connector.getDefaultInstance())) + .setSchemaDescriptor(new VpcAccessServiceMethodDescriptorSupplier("GetConnector")) + .build(); + } + } + } + return getGetConnectorMethod; + } + + private static volatile io.grpc.MethodDescriptor getListConnectorsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConnectors", + requestType = com.google.cloud.vpcaccess.v1.ListConnectorsRequest.class, + responseType = com.google.cloud.vpcaccess.v1.ListConnectorsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListConnectorsMethod() { + io.grpc.MethodDescriptor getListConnectorsMethod; + if ((getListConnectorsMethod = VpcAccessServiceGrpc.getListConnectorsMethod) == null) { + synchronized (VpcAccessServiceGrpc.class) { + if ((getListConnectorsMethod = VpcAccessServiceGrpc.getListConnectorsMethod) == null) { + VpcAccessServiceGrpc.getListConnectorsMethod = getListConnectorsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnectors")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vpcaccess.v1.ListConnectorsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vpcaccess.v1.ListConnectorsResponse.getDefaultInstance())) + .setSchemaDescriptor(new VpcAccessServiceMethodDescriptorSupplier("ListConnectors")) + .build(); + } + } + } + return getListConnectorsMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteConnectorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConnector", + requestType = com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteConnectorMethod() { + io.grpc.MethodDescriptor getDeleteConnectorMethod; + if ((getDeleteConnectorMethod = VpcAccessServiceGrpc.getDeleteConnectorMethod) == null) { + synchronized (VpcAccessServiceGrpc.class) { + if ((getDeleteConnectorMethod = VpcAccessServiceGrpc.getDeleteConnectorMethod) == null) { + VpcAccessServiceGrpc.getDeleteConnectorMethod = getDeleteConnectorMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnector")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new VpcAccessServiceMethodDescriptorSupplier("DeleteConnector")) + .build(); + } + } + } + return getDeleteConnectorMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static VpcAccessServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VpcAccessServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VpcAccessServiceStub(channel, callOptions); + } + }; + return VpcAccessServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static VpcAccessServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VpcAccessServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VpcAccessServiceBlockingStub(channel, callOptions); + } + }; + return VpcAccessServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static VpcAccessServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VpcAccessServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VpcAccessServiceFutureStub(channel, callOptions); + } + }; + return VpcAccessServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Serverless VPC Access API allows users to create and manage connectors for
+   * App Engine, Cloud Functions and Cloud Run to have internal connections to
+   * Virtual Private Cloud networks.
+   * 
+ */ + public static abstract class VpcAccessServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a Serverless VPC Access connector, returns an operation.
+     * 
+ */ + public void createConnector(com.google.cloud.vpcaccess.v1.CreateConnectorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateConnectorMethod(), responseObserver); + } + + /** + *
+     * Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource
+     * does not exist.
+     * 
+ */ + public void getConnector(com.google.cloud.vpcaccess.v1.GetConnectorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConnectorMethod(), responseObserver); + } + + /** + *
+     * Lists Serverless VPC Access connectors.
+     * 
+ */ + public void listConnectors(com.google.cloud.vpcaccess.v1.ListConnectorsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListConnectorsMethod(), responseObserver); + } + + /** + *
+     * Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the
+     * resource does not exist.
+     * 
+ */ + public void deleteConnector(com.google.cloud.vpcaccess.v1.DeleteConnectorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteConnectorMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateConnectorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vpcaccess.v1.CreateConnectorRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_CONNECTOR))) + .addMethod( + getGetConnectorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vpcaccess.v1.GetConnectorRequest, + com.google.cloud.vpcaccess.v1.Connector>( + this, METHODID_GET_CONNECTOR))) + .addMethod( + getListConnectorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vpcaccess.v1.ListConnectorsRequest, + com.google.cloud.vpcaccess.v1.ListConnectorsResponse>( + this, METHODID_LIST_CONNECTORS))) + .addMethod( + getDeleteConnectorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vpcaccess.v1.DeleteConnectorRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_CONNECTOR))) + .build(); + } + } + + /** + *
+   * Serverless VPC Access API allows users to create and manage connectors for
+   * App Engine, Cloud Functions and Cloud Run to have internal connections to
+   * Virtual Private Cloud networks.
+   * 
+ */ + public static final class VpcAccessServiceStub extends io.grpc.stub.AbstractAsyncStub { + private VpcAccessServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VpcAccessServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VpcAccessServiceStub(channel, callOptions); + } + + /** + *
+     * Creates a Serverless VPC Access connector, returns an operation.
+     * 
+ */ + public void createConnector(com.google.cloud.vpcaccess.v1.CreateConnectorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateConnectorMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource
+     * does not exist.
+     * 
+ */ + public void getConnector(com.google.cloud.vpcaccess.v1.GetConnectorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConnectorMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists Serverless VPC Access connectors.
+     * 
+ */ + public void listConnectors(com.google.cloud.vpcaccess.v1.ListConnectorsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConnectorsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the
+     * resource does not exist.
+     * 
+ */ + public void deleteConnector(com.google.cloud.vpcaccess.v1.DeleteConnectorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConnectorMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Serverless VPC Access API allows users to create and manage connectors for
+   * App Engine, Cloud Functions and Cloud Run to have internal connections to
+   * Virtual Private Cloud networks.
+   * 
+ */ + public static final class VpcAccessServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private VpcAccessServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VpcAccessServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VpcAccessServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a Serverless VPC Access connector, returns an operation.
+     * 
+ */ + public com.google.longrunning.Operation createConnector(com.google.cloud.vpcaccess.v1.CreateConnectorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateConnectorMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource
+     * does not exist.
+     * 
+ */ + public com.google.cloud.vpcaccess.v1.Connector getConnector(com.google.cloud.vpcaccess.v1.GetConnectorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConnectorMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists Serverless VPC Access connectors.
+     * 
+ */ + public com.google.cloud.vpcaccess.v1.ListConnectorsResponse listConnectors(com.google.cloud.vpcaccess.v1.ListConnectorsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConnectorsMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the
+     * resource does not exist.
+     * 
+ */ + public com.google.longrunning.Operation deleteConnector(com.google.cloud.vpcaccess.v1.DeleteConnectorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConnectorMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Serverless VPC Access API allows users to create and manage connectors for
+   * App Engine, Cloud Functions and Cloud Run to have internal connections to
+   * Virtual Private Cloud networks.
+   * 
+ */ + public static final class VpcAccessServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private VpcAccessServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VpcAccessServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VpcAccessServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a Serverless VPC Access connector, returns an operation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createConnector( + com.google.cloud.vpcaccess.v1.CreateConnectorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateConnectorMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource
+     * does not exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getConnector( + com.google.cloud.vpcaccess.v1.GetConnectorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConnectorMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists Serverless VPC Access connectors.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listConnectors( + com.google.cloud.vpcaccess.v1.ListConnectorsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListConnectorsMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the
+     * resource does not exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteConnector( + com.google.cloud.vpcaccess.v1.DeleteConnectorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteConnectorMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_CONNECTOR = 0; + private static final int METHODID_GET_CONNECTOR = 1; + private static final int METHODID_LIST_CONNECTORS = 2; + private static final int METHODID_DELETE_CONNECTOR = 3; + + 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 VpcAccessServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(VpcAccessServiceImplBase 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_CONNECTOR: + serviceImpl.createConnector((com.google.cloud.vpcaccess.v1.CreateConnectorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CONNECTOR: + serviceImpl.getConnector((com.google.cloud.vpcaccess.v1.GetConnectorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CONNECTORS: + serviceImpl.listConnectors((com.google.cloud.vpcaccess.v1.ListConnectorsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CONNECTOR: + serviceImpl.deleteConnector((com.google.cloud.vpcaccess.v1.DeleteConnectorRequest) 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 VpcAccessServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + VpcAccessServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("VpcAccessService"); + } + } + + private static final class VpcAccessServiceFileDescriptorSupplier + extends VpcAccessServiceBaseDescriptorSupplier { + VpcAccessServiceFileDescriptorSupplier() {} + } + + private static final class VpcAccessServiceMethodDescriptorSupplier + extends VpcAccessServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + VpcAccessServiceMethodDescriptorSupplier(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 (VpcAccessServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new VpcAccessServiceFileDescriptorSupplier()) + .addMethod(getCreateConnectorMethod()) + .addMethod(getGetConnectorMethod()) + .addMethod(getListConnectorsMethod()) + .addMethod(getDeleteConnectorMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java similarity index 73% rename from proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java rename to owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java index 8d8f29b2..80e0a64c 100644 --- a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java +++ b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.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/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; /** - * - * *
  * Definition of a Serverless VPC Access connector.
  * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.Connector} */ -public final class Connector extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Connector extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vpcaccess.v1.Connector) ConnectorOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Connector.newBuilder() to construct. private Connector(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Connector() { name_ = ""; network_ = ""; @@ -47,15 +29,16 @@ private Connector() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Connector(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Connector( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,83 +58,76 @@ private Connector( 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(); - network_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + network_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - ipCidrRange_ = s; - break; - } - case 32: - { - int rawValue = input.readEnum(); + ipCidrRange_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 40: - { - minThroughput_ = input.readInt32(); - break; + state_ = rawValue; + break; + } + case 40: { + + minThroughput_ = input.readInt32(); + break; + } + case 48: { + + maxThroughput_ = input.readInt32(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + connectedProjects_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 48: - { - maxThroughput_ = input.readInt32(); - break; + connectedProjects_.add(s); + break; + } + case 66: { + com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder subBuilder = null; + if (subnet_ != null) { + subBuilder = subnet_.toBuilder(); } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - connectedProjects_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - connectedProjects_.add(s); - break; + subnet_ = input.readMessage(com.google.cloud.vpcaccess.v1.Connector.Subnet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(subnet_); + subnet_ = subBuilder.buildPartial(); } - case 66: - { - com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder subBuilder = null; - if (subnet_ != null) { - subBuilder = subnet_.toBuilder(); - } - subnet_ = - input.readMessage( - com.google.cloud.vpcaccess.v1.Connector.Subnet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(subnet_); - subnet_ = subBuilder.buildPartial(); - } - break; - } - 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { connectedProjects_ = connectedProjects_.getUnmodifiableView(); @@ -160,35 +136,29 @@ private Connector( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_Connector_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_Connector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.Connector.class, - com.google.cloud.vpcaccess.v1.Connector.Builder.class); + com.google.cloud.vpcaccess.v1.Connector.class, com.google.cloud.vpcaccess.v1.Connector.Builder.class); } /** - * - * *
    * State of a connector.
    * 
* * Protobuf enum {@code google.cloud.vpcaccess.v1.Connector.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid state.
      * 
@@ -197,8 +167,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Connector is deployed and ready to receive traffic.
      * 
@@ -207,8 +175,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(1), /** - * - * *
      * An Insert operation is in progress. Transient condition.
      * 
@@ -217,8 +183,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(2), /** - * - * *
      * A Delete operation is in progress. Transient condition.
      * 
@@ -227,8 +191,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(3), /** - * - * *
      * Connector is in a bad state, manual deletion recommended.
      * 
@@ -237,8 +199,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ERROR(4), /** - * - * *
      * The connector is being updated.
      * 
@@ -250,8 +210,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Invalid state.
      * 
@@ -260,8 +218,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Connector is deployed and ready to receive traffic.
      * 
@@ -270,8 +226,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 1; /** - * - * *
      * An Insert operation is in progress. Transient condition.
      * 
@@ -280,8 +234,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 2; /** - * - * *
      * A Delete operation is in progress. Transient condition.
      * 
@@ -290,8 +242,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 3; /** - * - * *
      * Connector is in a bad state, manual deletion recommended.
      * 
@@ -300,8 +250,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 4; /** - * - * *
      * The connector is being updated.
      * 
@@ -310,6 +258,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATING_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -334,55 +283,52 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return READY; - case 2: - return CREATING; - case 3: - return DELETING; - case 4: - return ERROR; - case 5: - return UPDATING; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; + case 0: return STATE_UNSPECIFIED; + case 1: return READY; + case 2: return CREATING; + case 3: return DELETING; + case 4: return ERROR; + case 5: return UPDATING; + default: return null; + } } - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.vpcaccess.v1.Connector.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -399,14 +345,11 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.vpcaccess.v1.Connector.State) } - public interface SubnetOrBuilder - extends + public interface SubnetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vpcaccess.v1.Connector.Subnet) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Subnet name (relative, not fully qualified).
      * E.g. if the full subnet selfLink is
@@ -415,13 +358,10 @@ public interface SubnetOrBuilder
      * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Subnet name (relative, not fully qualified).
      * E.g. if the full subnet selfLink is
@@ -430,14 +370,12 @@ public interface SubnetOrBuilder
      * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * Project in which the subnet exists.
      * If not set, this project is assumed to be the project for which
@@ -445,13 +383,10 @@ public interface SubnetOrBuilder
      * 
* * string project_id = 2; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
      * Project in which the subnet exists.
      * If not set, this project is assumed to be the project for which
@@ -459,30 +394,27 @@ public interface SubnetOrBuilder
      * 
* * string project_id = 2; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); } /** - * - * *
    * The subnet in which to house the connector
    * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.Connector.Subnet} */ - public static final class Subnet extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Subnet extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vpcaccess.v1.Connector.Subnet) SubnetOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Subnet.newBuilder() to construct. private Subnet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Subnet() { name_ = ""; projectId_ = ""; @@ -490,15 +422,16 @@ private Subnet() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Subnet(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Subnet( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -517,59 +450,53 @@ private Subnet( 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(); - projectId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + projectId_ = 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.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.Connector.Subnet.class, - com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder.class); + com.google.cloud.vpcaccess.v1.Connector.Subnet.class, com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
      * Subnet name (relative, not fully qualified).
      * E.g. if the full subnet selfLink is
@@ -578,7 +505,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -587,15 +513,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; } } /** - * - * *
      * Subnet name (relative, not fully qualified).
      * E.g. if the full subnet selfLink is
@@ -604,15 +529,16 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -623,8 +549,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PROJECT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object projectId_; /** - * - * *
      * Project in which the subnet exists.
      * If not set, this project is assumed to be the project for which
@@ -632,7 +556,6 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string project_id = 2; - * * @return The projectId. */ @java.lang.Override @@ -641,15 +564,14 @@ public java.lang.String getProjectId() { 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(); projectId_ = s; return s; } } /** - * - * *
      * Project in which the subnet exists.
      * If not set, this project is assumed to be the project for which
@@ -657,15 +579,16 @@ public java.lang.String getProjectId() {
      * 
* * string project_id = 2; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; 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); projectId_ = b; return b; } else { @@ -674,7 +597,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -686,7 +608,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 (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -716,16 +639,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vpcaccess.v1.Connector.Subnet)) { return super.equals(obj); } - com.google.cloud.vpcaccess.v1.Connector.Subnet other = - (com.google.cloud.vpcaccess.v1.Connector.Subnet) obj; + com.google.cloud.vpcaccess.v1.Connector.Subnet other = (com.google.cloud.vpcaccess.v1.Connector.Subnet) obj; - if (!getName().equals(other.getName())) return false; - if (!getProjectId().equals(other.getProjectId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -746,94 +670,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vpcaccess.v1.Connector.Subnet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -843,32 +761,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The subnet in which to house the connector
      * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.Connector.Subnet} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vpcaccess.v1.Connector.Subnet) com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.Connector.Subnet.class, - com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder.class); + com.google.cloud.vpcaccess.v1.Connector.Subnet.class, com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder.class); } // Construct using com.google.cloud.vpcaccess.v1.Connector.Subnet.newBuilder() @@ -876,15 +789,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(); @@ -896,9 +810,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor; } @java.lang.Override @@ -917,8 +831,7 @@ public com.google.cloud.vpcaccess.v1.Connector.Subnet build() { @java.lang.Override public com.google.cloud.vpcaccess.v1.Connector.Subnet buildPartial() { - com.google.cloud.vpcaccess.v1.Connector.Subnet result = - new com.google.cloud.vpcaccess.v1.Connector.Subnet(this); + com.google.cloud.vpcaccess.v1.Connector.Subnet result = new com.google.cloud.vpcaccess.v1.Connector.Subnet(this); result.name_ = name_; result.projectId_ = projectId_; onBuilt(); @@ -929,41 +842,38 @@ public com.google.cloud.vpcaccess.v1.Connector.Subnet 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.cloud.vpcaccess.v1.Connector.Subnet) { - return mergeFrom((com.google.cloud.vpcaccess.v1.Connector.Subnet) other); + return mergeFrom((com.google.cloud.vpcaccess.v1.Connector.Subnet)other); } else { super.mergeFrom(other); return this; @@ -971,8 +881,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vpcaccess.v1.Connector.Subnet other) { - if (other == com.google.cloud.vpcaccess.v1.Connector.Subnet.getDefaultInstance()) - return this; + if (other == com.google.cloud.vpcaccess.v1.Connector.Subnet.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1012,8 +921,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -1022,13 +929,13 @@ public Builder mergeFrom(
        * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1037,8 +944,6 @@ public java.lang.String getName() { } } /** - * - * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -1047,14 +952,15 @@ public java.lang.String getName() {
        * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1062,8 +968,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -1072,22 +976,20 @@ public com.google.protobuf.ByteString getNameBytes() {
        * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -1096,18 +998,15 @@ public Builder setName(java.lang.String value) {
        * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -1116,16 +1015,16 @@ public Builder clearName() {
        * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + 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; @@ -1133,8 +1032,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectId_ = ""; /** - * - * *
        * Project in which the subnet exists.
        * If not set, this project is assumed to be the project for which
@@ -1142,13 +1039,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
        * 
* * string project_id = 2; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; 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(); projectId_ = s; return s; @@ -1157,8 +1054,6 @@ public java.lang.String getProjectId() { } } /** - * - * *
        * Project in which the subnet exists.
        * If not set, this project is assumed to be the project for which
@@ -1166,14 +1061,15 @@ public java.lang.String getProjectId() {
        * 
* * string project_id = 2; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; 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); projectId_ = b; return b; } else { @@ -1181,8 +1077,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
        * Project in which the subnet exists.
        * If not set, this project is assumed to be the project for which
@@ -1190,22 +1084,20 @@ public com.google.protobuf.ByteString getProjectIdBytes() {
        * 
* * string project_id = 2; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
        * Project in which the subnet exists.
        * If not set, this project is assumed to be the project for which
@@ -1213,18 +1105,15 @@ public Builder setProjectId(java.lang.String value) {
        * 
* * string project_id = 2; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
        * Project in which the subnet exists.
        * If not set, this project is assumed to be the project for which
@@ -1232,21 +1121,20 @@ public Builder clearProjectId() {
        * 
* * string project_id = 2; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1259,12 +1147,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vpcaccess.v1.Connector.Subnet) } // @@protoc_insertion_point(class_scope:google.cloud.vpcaccess.v1.Connector.Subnet) private static final com.google.cloud.vpcaccess.v1.Connector.Subnet DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vpcaccess.v1.Connector.Subnet(); } @@ -1273,16 +1161,16 @@ public static com.google.cloud.vpcaccess.v1.Connector.Subnet getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Subnet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Subnet(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Subnet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Subnet(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1297,19 +1185,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vpcaccess.v1.Connector.Subnet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name in the format `projects/*/locations/*/connectors/*`.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -1318,29 +1204,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 resource name in the format `projects/*/locations/*/connectors/*`.
    * 
* * 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 { @@ -1351,14 +1237,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int NETWORK_FIELD_NUMBER = 2; private volatile java.lang.Object network_; /** - * - * *
    * Name of a VPC network.
    * 
* * string network = 2; - * * @return The network. */ @java.lang.Override @@ -1367,29 +1250,29 @@ public java.lang.String getNetwork() { 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(); network_ = s; return s; } } /** - * - * *
    * Name of a VPC network.
    * 
* * string network = 2; - * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; 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); network_ = b; return b; } else { @@ -1400,15 +1283,12 @@ public com.google.protobuf.ByteString getNetworkBytes() { public static final int IP_CIDR_RANGE_FIELD_NUMBER = 3; private volatile java.lang.Object ipCidrRange_; /** - * - * *
    * The range of internal addresses that follows RFC 4632 notation.
    * Example: `10.132.0.0/28`.
    * 
* * string ip_cidr_range = 3; - * * @return The ipCidrRange. */ @java.lang.Override @@ -1417,30 +1297,30 @@ public java.lang.String getIpCidrRange() { 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(); ipCidrRange_ = s; return s; } } /** - * - * *
    * The range of internal addresses that follows RFC 4632 notation.
    * Example: `10.132.0.0/28`.
    * 
* * string ip_cidr_range = 3; - * * @return The bytes for ipCidrRange. */ @java.lang.Override - public com.google.protobuf.ByteString getIpCidrRangeBytes() { + public com.google.protobuf.ByteString + getIpCidrRangeBytes() { java.lang.Object ref = ipCidrRange_; 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); ipCidrRange_ = b; return b; } else { @@ -1451,54 +1331,38 @@ public com.google.protobuf.ByteString getIpCidrRangeBytes() { public static final int STATE_FIELD_NUMBER = 4; private int state_; /** - * - * *
    * Output only. State of the VPC access connector.
    * 
* - * - * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. State of the VPC access connector.
    * 
* - * - * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.vpcaccess.v1.Connector.State getState() { + @java.lang.Override public com.google.cloud.vpcaccess.v1.Connector.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vpcaccess.v1.Connector.State result = - com.google.cloud.vpcaccess.v1.Connector.State.valueOf(state_); + com.google.cloud.vpcaccess.v1.Connector.State result = com.google.cloud.vpcaccess.v1.Connector.State.valueOf(state_); return result == null ? com.google.cloud.vpcaccess.v1.Connector.State.UNRECOGNIZED : result; } public static final int MIN_THROUGHPUT_FIELD_NUMBER = 5; private int minThroughput_; /** - * - * *
    * Minimum throughput of the connector in Mbps. Default and min is 200.
    * 
* * int32 min_throughput = 5; - * * @return The minThroughput. */ @java.lang.Override @@ -1509,14 +1373,11 @@ public int getMinThroughput() { public static final int MAX_THROUGHPUT_FIELD_NUMBER = 6; private int maxThroughput_; /** - * - * *
    * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
    * 
* * int32 max_throughput = 6; - * * @return The maxThroughput. */ @java.lang.Override @@ -1527,45 +1388,34 @@ public int getMaxThroughput() { public static final int CONNECTED_PROJECTS_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList connectedProjects_; /** - * - * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the connectedProjects. */ - public com.google.protobuf.ProtocolStringList getConnectedProjectsList() { + public com.google.protobuf.ProtocolStringList + getConnectedProjectsList() { return connectedProjects_; } /** - * - * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of connectedProjects. */ public int getConnectedProjectsCount() { return connectedProjects_.size(); } /** - * - * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The connectedProjects at the given index. */ @@ -1573,33 +1423,27 @@ public java.lang.String getConnectedProjects(int index) { return connectedProjects_.get(index); } /** - * - * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the connectedProjects at the given index. */ - public com.google.protobuf.ByteString getConnectedProjectsBytes(int index) { + public com.google.protobuf.ByteString + getConnectedProjectsBytes(int index) { return connectedProjects_.getByteString(index); } public static final int SUBNET_FIELD_NUMBER = 8; private com.google.cloud.vpcaccess.v1.Connector.Subnet subnet_; /** - * - * *
    * The subnet in which to house the VPC Access Connector.
    * 
* * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; - * * @return Whether the subnet field is set. */ @java.lang.Override @@ -1607,25 +1451,18 @@ public boolean hasSubnet() { return subnet_ != null; } /** - * - * *
    * The subnet in which to house the VPC Access Connector.
    * 
* * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; - * * @return The subnet. */ @java.lang.Override public com.google.cloud.vpcaccess.v1.Connector.Subnet getSubnet() { - return subnet_ == null - ? com.google.cloud.vpcaccess.v1.Connector.Subnet.getDefaultInstance() - : subnet_; + return subnet_ == null ? com.google.cloud.vpcaccess.v1.Connector.Subnet.getDefaultInstance() : subnet_; } /** - * - * *
    * The subnet in which to house the VPC Access Connector.
    * 
@@ -1638,7 +1475,6 @@ public com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder getSubnetOrBuilde } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1650,7 +1486,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 (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1694,13 +1531,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ipCidrRange_); } if (state_ != com.google.cloud.vpcaccess.v1.Connector.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, state_); } if (minThroughput_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, minThroughput_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, minThroughput_); } if (maxThroughput_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, maxThroughput_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, maxThroughput_); } { int dataSize = 0; @@ -1711,7 +1551,8 @@ public int getSerializedSize() { size += 1 * getConnectedProjectsList().size(); } if (subnet_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSubnet()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSubnet()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1721,23 +1562,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vpcaccess.v1.Connector)) { return super.equals(obj); } com.google.cloud.vpcaccess.v1.Connector other = (com.google.cloud.vpcaccess.v1.Connector) obj; - if (!getName().equals(other.getName())) return false; - if (!getNetwork().equals(other.getNetwork())) return false; - if (!getIpCidrRange().equals(other.getIpCidrRange())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getNetwork() + .equals(other.getNetwork())) return false; + if (!getIpCidrRange() + .equals(other.getIpCidrRange())) return false; if (state_ != other.state_) return false; - if (getMinThroughput() != other.getMinThroughput()) return false; - if (getMaxThroughput() != other.getMaxThroughput()) return false; - if (!getConnectedProjectsList().equals(other.getConnectedProjectsList())) return false; + if (getMinThroughput() + != other.getMinThroughput()) return false; + if (getMaxThroughput() + != other.getMaxThroughput()) return false; + if (!getConnectedProjectsList() + .equals(other.getConnectedProjectsList())) return false; if (hasSubnet() != other.hasSubnet()) return false; if (hasSubnet()) { - if (!getSubnet().equals(other.getSubnet())) return false; + if (!getSubnet() + .equals(other.getSubnet())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1775,127 +1623,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vpcaccess.v1.Connector parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vpcaccess.v1.Connector parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vpcaccess.v1.Connector parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.Connector parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vpcaccess.v1.Connector prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Definition of a Serverless VPC Access connector.
    * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.Connector} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vpcaccess.v1.Connector) com.google.cloud.vpcaccess.v1.ConnectorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_Connector_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_Connector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.Connector.class, - com.google.cloud.vpcaccess.v1.Connector.Builder.class); + com.google.cloud.vpcaccess.v1.Connector.class, com.google.cloud.vpcaccess.v1.Connector.Builder.class); } // Construct using com.google.cloud.vpcaccess.v1.Connector.newBuilder() @@ -1903,15 +1742,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(); @@ -1939,9 +1779,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_Connector_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_Connector_descriptor; } @java.lang.Override @@ -1960,8 +1800,7 @@ public com.google.cloud.vpcaccess.v1.Connector build() { @java.lang.Override public com.google.cloud.vpcaccess.v1.Connector buildPartial() { - com.google.cloud.vpcaccess.v1.Connector result = - new com.google.cloud.vpcaccess.v1.Connector(this); + com.google.cloud.vpcaccess.v1.Connector result = new com.google.cloud.vpcaccess.v1.Connector(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.network_ = network_; @@ -1987,39 +1826,38 @@ public com.google.cloud.vpcaccess.v1.Connector buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vpcaccess.v1.Connector) { - return mergeFrom((com.google.cloud.vpcaccess.v1.Connector) other); + return mergeFrom((com.google.cloud.vpcaccess.v1.Connector)other); } else { super.mergeFrom(other); return this; @@ -2090,25 +1928,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The resource name in the format `projects/*/locations/*/connectors/*`.
      * 
* * 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; @@ -2117,21 +1952,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name in the format `projects/*/locations/*/connectors/*`.
      * 
* * 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 { @@ -2139,61 +1973,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name in the format `projects/*/locations/*/connectors/*`.
      * 
* * 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 resource name in the format `projects/*/locations/*/connectors/*`.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name in the format `projects/*/locations/*/connectors/*`.
      * 
* * 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; @@ -2201,20 +2028,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object network_ = ""; /** - * - * *
      * Name of a VPC network.
      * 
* * string network = 2; - * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; 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(); network_ = s; return s; @@ -2223,21 +2048,20 @@ public java.lang.String getNetwork() { } } /** - * - * *
      * Name of a VPC network.
      * 
* * string network = 2; - * * @return The bytes for network. */ - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; 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); network_ = b; return b; } else { @@ -2245,61 +2069,54 @@ public com.google.protobuf.ByteString getNetworkBytes() { } } /** - * - * *
      * Name of a VPC network.
      * 
* * string network = 2; - * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork(java.lang.String value) { + public Builder setNetwork( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** - * - * *
      * Name of a VPC network.
      * 
* * string network = 2; - * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** - * - * *
      * Name of a VPC network.
      * 
* * string network = 2; - * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + public Builder setNetworkBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; @@ -2307,21 +2124,19 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { private java.lang.Object ipCidrRange_ = ""; /** - * - * *
      * The range of internal addresses that follows RFC 4632 notation.
      * Example: `10.132.0.0/28`.
      * 
* * string ip_cidr_range = 3; - * * @return The ipCidrRange. */ public java.lang.String getIpCidrRange() { java.lang.Object ref = ipCidrRange_; 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(); ipCidrRange_ = s; return s; @@ -2330,22 +2145,21 @@ public java.lang.String getIpCidrRange() { } } /** - * - * *
      * The range of internal addresses that follows RFC 4632 notation.
      * Example: `10.132.0.0/28`.
      * 
* * string ip_cidr_range = 3; - * * @return The bytes for ipCidrRange. */ - public com.google.protobuf.ByteString getIpCidrRangeBytes() { + public com.google.protobuf.ByteString + getIpCidrRangeBytes() { java.lang.Object ref = ipCidrRange_; 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); ipCidrRange_ = b; return b; } else { @@ -2353,64 +2167,57 @@ public com.google.protobuf.ByteString getIpCidrRangeBytes() { } } /** - * - * *
      * The range of internal addresses that follows RFC 4632 notation.
      * Example: `10.132.0.0/28`.
      * 
* * string ip_cidr_range = 3; - * * @param value The ipCidrRange to set. * @return This builder for chaining. */ - public Builder setIpCidrRange(java.lang.String value) { + public Builder setIpCidrRange( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ipCidrRange_ = value; onChanged(); return this; } /** - * - * *
      * The range of internal addresses that follows RFC 4632 notation.
      * Example: `10.132.0.0/28`.
      * 
* * string ip_cidr_range = 3; - * * @return This builder for chaining. */ public Builder clearIpCidrRange() { - + ipCidrRange_ = getDefaultInstance().getIpCidrRange(); onChanged(); return this; } /** - * - * *
      * The range of internal addresses that follows RFC 4632 notation.
      * Example: `10.132.0.0/28`.
      * 
* * string ip_cidr_range = 3; - * * @param value The bytes for ipCidrRange to set. * @return This builder for chaining. */ - public Builder setIpCidrRangeBytes(com.google.protobuf.ByteString value) { + public Builder setIpCidrRangeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipCidrRange_ = value; onChanged(); return this; @@ -2418,73 +2225,51 @@ public Builder setIpCidrRangeBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. State of the VPC access connector.
      * 
* - * - * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. State of the VPC access connector.
      * 
* - * - * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Output only. State of the VPC access connector.
      * 
* - * - * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.vpcaccess.v1.Connector.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vpcaccess.v1.Connector.State result = - com.google.cloud.vpcaccess.v1.Connector.State.valueOf(state_); + com.google.cloud.vpcaccess.v1.Connector.State result = com.google.cloud.vpcaccess.v1.Connector.State.valueOf(state_); return result == null ? com.google.cloud.vpcaccess.v1.Connector.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. State of the VPC access connector.
      * 
* - * - * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -2492,41 +2277,33 @@ public Builder setState(com.google.cloud.vpcaccess.v1.Connector.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. State of the VPC access connector.
      * 
* - * - * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private int minThroughput_; + private int minThroughput_ ; /** - * - * *
      * Minimum throughput of the connector in Mbps. Default and min is 200.
      * 
* * int32 min_throughput = 5; - * * @return The minThroughput. */ @java.lang.Override @@ -2534,51 +2311,42 @@ public int getMinThroughput() { return minThroughput_; } /** - * - * *
      * Minimum throughput of the connector in Mbps. Default and min is 200.
      * 
* * int32 min_throughput = 5; - * * @param value The minThroughput to set. * @return This builder for chaining. */ public Builder setMinThroughput(int value) { - + minThroughput_ = value; onChanged(); return this; } /** - * - * *
      * Minimum throughput of the connector in Mbps. Default and min is 200.
      * 
* * int32 min_throughput = 5; - * * @return This builder for chaining. */ public Builder clearMinThroughput() { - + minThroughput_ = 0; onChanged(); return this; } - private int maxThroughput_; + private int maxThroughput_ ; /** - * - * *
      * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
      * 
* * int32 max_throughput = 6; - * * @return The maxThroughput. */ @java.lang.Override @@ -2586,90 +2354,71 @@ public int getMaxThroughput() { return maxThroughput_; } /** - * - * *
      * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
      * 
* * int32 max_throughput = 6; - * * @param value The maxThroughput to set. * @return This builder for chaining. */ public Builder setMaxThroughput(int value) { - + maxThroughput_ = value; onChanged(); return this; } /** - * - * *
      * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
      * 
* * int32 max_throughput = 6; - * * @return This builder for chaining. */ public Builder clearMaxThroughput() { - + maxThroughput_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList connectedProjects_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList connectedProjects_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureConnectedProjectsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { connectedProjects_ = new com.google.protobuf.LazyStringArrayList(connectedProjects_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the connectedProjects. */ - public com.google.protobuf.ProtocolStringList getConnectedProjectsList() { + public com.google.protobuf.ProtocolStringList + getConnectedProjectsList() { return connectedProjects_.getUnmodifiableView(); } /** - * - * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of connectedProjects. */ public int getConnectedProjectsCount() { return connectedProjects_.size(); } /** - * - * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The connectedProjects at the given index. */ @@ -2677,95 +2426,80 @@ public java.lang.String getConnectedProjects(int index) { return connectedProjects_.get(index); } /** - * - * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the connectedProjects at the given index. */ - public com.google.protobuf.ByteString getConnectedProjectsBytes(int index) { + public com.google.protobuf.ByteString + getConnectedProjectsBytes(int index) { return connectedProjects_.getByteString(index); } /** - * - * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index to set the value at. * @param value The connectedProjects to set. * @return This builder for chaining. */ - public Builder setConnectedProjects(int index, java.lang.String value) { + public Builder setConnectedProjects( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureConnectedProjectsIsMutable(); + throw new NullPointerException(); + } + ensureConnectedProjectsIsMutable(); connectedProjects_.set(index, value); onChanged(); return this; } /** - * - * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The connectedProjects to add. * @return This builder for chaining. */ - public Builder addConnectedProjects(java.lang.String value) { + public Builder addConnectedProjects( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureConnectedProjectsIsMutable(); + throw new NullPointerException(); + } + ensureConnectedProjectsIsMutable(); connectedProjects_.add(value); onChanged(); return this; } /** - * - * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param values The connectedProjects to add. * @return This builder for chaining. */ - public Builder addAllConnectedProjects(java.lang.Iterable values) { + public Builder addAllConnectedProjects( + java.lang.Iterable values) { ensureConnectedProjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connectedProjects_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, connectedProjects_); onChanged(); return this; } /** - * - * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearConnectedProjects() { @@ -2775,23 +2509,20 @@ public Builder clearConnectedProjects() { return this; } /** - * - * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes of the connectedProjects to add. * @return This builder for chaining. */ - public Builder addConnectedProjectsBytes(com.google.protobuf.ByteString value) { + public Builder addConnectedProjectsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureConnectedProjectsIsMutable(); connectedProjects_.add(value); onChanged(); @@ -2800,47 +2531,34 @@ public Builder addConnectedProjectsBytes(com.google.protobuf.ByteString value) { private com.google.cloud.vpcaccess.v1.Connector.Subnet subnet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vpcaccess.v1.Connector.Subnet, - com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, - com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder> - subnetBuilder_; + com.google.cloud.vpcaccess.v1.Connector.Subnet, com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder> subnetBuilder_; /** - * - * *
      * The subnet in which to house the VPC Access Connector.
      * 
* * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; - * * @return Whether the subnet field is set. */ public boolean hasSubnet() { return subnetBuilder_ != null || subnet_ != null; } /** - * - * *
      * The subnet in which to house the VPC Access Connector.
      * 
* * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; - * * @return The subnet. */ public com.google.cloud.vpcaccess.v1.Connector.Subnet getSubnet() { if (subnetBuilder_ == null) { - return subnet_ == null - ? com.google.cloud.vpcaccess.v1.Connector.Subnet.getDefaultInstance() - : subnet_; + return subnet_ == null ? com.google.cloud.vpcaccess.v1.Connector.Subnet.getDefaultInstance() : subnet_; } else { return subnetBuilder_.getMessage(); } } /** - * - * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2861,8 +2579,6 @@ public Builder setSubnet(com.google.cloud.vpcaccess.v1.Connector.Subnet value) { return this; } /** - * - * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2881,8 +2597,6 @@ public Builder setSubnet( return this; } /** - * - * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2893,9 +2607,7 @@ public Builder mergeSubnet(com.google.cloud.vpcaccess.v1.Connector.Subnet value) if (subnetBuilder_ == null) { if (subnet_ != null) { subnet_ = - com.google.cloud.vpcaccess.v1.Connector.Subnet.newBuilder(subnet_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vpcaccess.v1.Connector.Subnet.newBuilder(subnet_).mergeFrom(value).buildPartial(); } else { subnet_ = value; } @@ -2907,8 +2619,6 @@ public Builder mergeSubnet(com.google.cloud.vpcaccess.v1.Connector.Subnet value) return this; } /** - * - * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2927,8 +2637,6 @@ public Builder clearSubnet() { return this; } /** - * - * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2936,13 +2644,11 @@ public Builder clearSubnet() { * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; */ public com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder getSubnetBuilder() { - + onChanged(); return getSubnetFieldBuilder().getBuilder(); } /** - * - * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2953,14 +2659,11 @@ public com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder getSubnetOrBuilde if (subnetBuilder_ != null) { return subnetBuilder_.getMessageOrBuilder(); } else { - return subnet_ == null - ? com.google.cloud.vpcaccess.v1.Connector.Subnet.getDefaultInstance() - : subnet_; + return subnet_ == null ? + com.google.cloud.vpcaccess.v1.Connector.Subnet.getDefaultInstance() : subnet_; } } /** - * - * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2968,24 +2671,21 @@ public com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder getSubnetOrBuilde * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vpcaccess.v1.Connector.Subnet, - com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, - com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder> + com.google.cloud.vpcaccess.v1.Connector.Subnet, com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder> getSubnetFieldBuilder() { if (subnetBuilder_ == null) { - subnetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vpcaccess.v1.Connector.Subnet, - com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, - com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder>( - getSubnet(), getParentForChildren(), isClean()); + subnetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vpcaccess.v1.Connector.Subnet, com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder>( + getSubnet(), + getParentForChildren(), + isClean()); subnet_ = null; } return subnetBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2995,12 +2695,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vpcaccess.v1.Connector) } // @@protoc_insertion_point(class_scope:google.cloud.vpcaccess.v1.Connector) private static final com.google.cloud.vpcaccess.v1.Connector DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vpcaccess.v1.Connector(); } @@ -3009,16 +2709,16 @@ public static com.google.cloud.vpcaccess.v1.Connector getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Connector parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Connector(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Connector parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Connector(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3033,4 +2733,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vpcaccess.v1.Connector getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java similarity index 100% rename from proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java rename to owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java diff --git a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java similarity index 71% rename from proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java index 5ee83598..b6d81c7a 100644 --- a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java @@ -1,242 +1,173 @@ -/* - * 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/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; -public interface ConnectorOrBuilder - extends +public interface ConnectorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vpcaccess.v1.Connector) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name in the format `projects/*/locations/*/connectors/*`.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name in the format `projects/*/locations/*/connectors/*`.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Name of a VPC network.
    * 
* * string network = 2; - * * @return The network. */ java.lang.String getNetwork(); /** - * - * *
    * Name of a VPC network.
    * 
* * string network = 2; - * * @return The bytes for network. */ - com.google.protobuf.ByteString getNetworkBytes(); + com.google.protobuf.ByteString + getNetworkBytes(); /** - * - * *
    * The range of internal addresses that follows RFC 4632 notation.
    * Example: `10.132.0.0/28`.
    * 
* * string ip_cidr_range = 3; - * * @return The ipCidrRange. */ java.lang.String getIpCidrRange(); /** - * - * *
    * The range of internal addresses that follows RFC 4632 notation.
    * Example: `10.132.0.0/28`.
    * 
* * string ip_cidr_range = 3; - * * @return The bytes for ipCidrRange. */ - com.google.protobuf.ByteString getIpCidrRangeBytes(); + com.google.protobuf.ByteString + getIpCidrRangeBytes(); /** - * - * *
    * Output only. State of the VPC access connector.
    * 
* - * - * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. State of the VPC access connector.
    * 
* - * - * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.vpcaccess.v1.Connector.State getState(); /** - * - * *
    * Minimum throughput of the connector in Mbps. Default and min is 200.
    * 
* * int32 min_throughput = 5; - * * @return The minThroughput. */ int getMinThroughput(); /** - * - * *
    * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
    * 
* * int32 max_throughput = 6; - * * @return The maxThroughput. */ int getMaxThroughput(); /** - * - * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the connectedProjects. */ - java.util.List getConnectedProjectsList(); + java.util.List + getConnectedProjectsList(); /** - * - * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of connectedProjects. */ int getConnectedProjectsCount(); /** - * - * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The connectedProjects at the given index. */ java.lang.String getConnectedProjects(int index); /** - * - * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the connectedProjects at the given index. */ - com.google.protobuf.ByteString getConnectedProjectsBytes(int index); + com.google.protobuf.ByteString + getConnectedProjectsBytes(int index); /** - * - * *
    * The subnet in which to house the VPC Access Connector.
    * 
* * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; - * * @return Whether the subnet field is set. */ boolean hasSubnet(); /** - * - * *
    * The subnet in which to house the VPC Access Connector.
    * 
* * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; - * * @return The subnet. */ com.google.cloud.vpcaccess.v1.Connector.Subnet getSubnet(); /** - * - * *
    * The subnet in which to house the VPC Access Connector.
    * 
diff --git a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java similarity index 64% rename from proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java rename to owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java index 1066a47f..c7f85e21 100644 --- a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.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/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; /** - * - * *
  * Request for creating a Serverless VPC Access connector.
  * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.CreateConnectorRequest} */ -public final class CreateConnectorRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateConnectorRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vpcaccess.v1.CreateConnectorRequest) CreateConnectorRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateConnectorRequest.newBuilder() to construct. private CreateConnectorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateConnectorRequest() { parent_ = ""; connectorId_ = ""; @@ -44,15 +26,16 @@ private CreateConnectorRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateConnectorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateConnectorRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,84 +54,72 @@ private CreateConnectorRequest( 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(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - connectorId_ = s; - break; + connectorId_ = s; + break; + } + case 26: { + com.google.cloud.vpcaccess.v1.Connector.Builder subBuilder = null; + if (connector_ != null) { + subBuilder = connector_.toBuilder(); } - case 26: - { - com.google.cloud.vpcaccess.v1.Connector.Builder subBuilder = null; - if (connector_ != null) { - subBuilder = connector_.toBuilder(); - } - connector_ = - input.readMessage( - com.google.cloud.vpcaccess.v1.Connector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(connector_); - connector_ = subBuilder.buildPartial(); - } - - break; + connector_ = input.readMessage(com.google.cloud.vpcaccess.v1.Connector.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(connector_); + connector_ = 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.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.CreateConnectorRequest.class, - com.google.cloud.vpcaccess.v1.CreateConnectorRequest.Builder.class); + com.google.cloud.vpcaccess.v1.CreateConnectorRequest.class, com.google.cloud.vpcaccess.v1.CreateConnectorRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project and location in which the configuration should be created,
    * specified in the format `projects/*/locations/*`.
    * 
* - * - * 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 @@ -157,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 project and location in which the configuration should be created,
    * specified in the format `projects/*/locations/*`.
    * 
* - * - * 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 { @@ -193,14 +162,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CONNECTOR_ID_FIELD_NUMBER = 2; private volatile java.lang.Object connectorId_; /** - * - * *
    * Required. The ID to use for this connector.
    * 
* * string connector_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The connectorId. */ @java.lang.Override @@ -209,29 +175,29 @@ public java.lang.String getConnectorId() { 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(); connectorId_ = s; return s; } } /** - * - * *
    * Required. The ID to use for this connector.
    * 
* * string connector_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for connectorId. */ @java.lang.Override - public com.google.protobuf.ByteString getConnectorIdBytes() { + public com.google.protobuf.ByteString + getConnectorIdBytes() { java.lang.Object ref = connectorId_; 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); connectorId_ = b; return b; } else { @@ -242,16 +208,11 @@ public com.google.protobuf.ByteString getConnectorIdBytes() { public static final int CONNECTOR_FIELD_NUMBER = 3; private com.google.cloud.vpcaccess.v1.Connector connector_; /** - * - * *
    * Required. Resource to create.
    * 
* - * - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connector field is set. */ @java.lang.Override @@ -259,34 +220,23 @@ public boolean hasConnector() { return connector_ != null; } /** - * - * *
    * Required. Resource to create.
    * 
* - * - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The connector. */ @java.lang.Override public com.google.cloud.vpcaccess.v1.Connector getConnector() { - return connector_ == null - ? com.google.cloud.vpcaccess.v1.Connector.getDefaultInstance() - : connector_; + return connector_ == null ? com.google.cloud.vpcaccess.v1.Connector.getDefaultInstance() : connector_; } /** - * - * *
    * Required. Resource to create.
    * 
* - * - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorOrBuilder() { @@ -294,7 +244,6 @@ public com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorOrBuilder() } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -306,7 +255,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 (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -332,7 +282,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, connectorId_); } if (connector_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConnector()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getConnector()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -342,19 +293,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vpcaccess.v1.CreateConnectorRequest)) { return super.equals(obj); } - com.google.cloud.vpcaccess.v1.CreateConnectorRequest other = - (com.google.cloud.vpcaccess.v1.CreateConnectorRequest) obj; + com.google.cloud.vpcaccess.v1.CreateConnectorRequest other = (com.google.cloud.vpcaccess.v1.CreateConnectorRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getConnectorId().equals(other.getConnectorId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getConnectorId() + .equals(other.getConnectorId())) return false; if (hasConnector() != other.hasConnector()) return false; if (hasConnector()) { - if (!getConnector().equals(other.getConnector())) return false; + if (!getConnector() + .equals(other.getConnector())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -381,126 +334,117 @@ public int hashCode() { } public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vpcaccess.v1.CreateConnectorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 creating a Serverless VPC Access connector.
    * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.CreateConnectorRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vpcaccess.v1.CreateConnectorRequest) com.google.cloud.vpcaccess.v1.CreateConnectorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.CreateConnectorRequest.class, - com.google.cloud.vpcaccess.v1.CreateConnectorRequest.Builder.class); + com.google.cloud.vpcaccess.v1.CreateConnectorRequest.class, com.google.cloud.vpcaccess.v1.CreateConnectorRequest.Builder.class); } // Construct using com.google.cloud.vpcaccess.v1.CreateConnectorRequest.newBuilder() @@ -508,15 +452,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(); @@ -534,9 +479,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor; } @java.lang.Override @@ -555,8 +500,7 @@ public com.google.cloud.vpcaccess.v1.CreateConnectorRequest build() { @java.lang.Override public com.google.cloud.vpcaccess.v1.CreateConnectorRequest buildPartial() { - com.google.cloud.vpcaccess.v1.CreateConnectorRequest result = - new com.google.cloud.vpcaccess.v1.CreateConnectorRequest(this); + com.google.cloud.vpcaccess.v1.CreateConnectorRequest result = new com.google.cloud.vpcaccess.v1.CreateConnectorRequest(this); result.parent_ = parent_; result.connectorId_ = connectorId_; if (connectorBuilder_ == null) { @@ -572,39 +516,38 @@ public com.google.cloud.vpcaccess.v1.CreateConnectorRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vpcaccess.v1.CreateConnectorRequest) { - return mergeFrom((com.google.cloud.vpcaccess.v1.CreateConnectorRequest) other); + return mergeFrom((com.google.cloud.vpcaccess.v1.CreateConnectorRequest)other); } else { super.mergeFrom(other); return this; @@ -612,8 +555,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vpcaccess.v1.CreateConnectorRequest other) { - if (other == com.google.cloud.vpcaccess.v1.CreateConnectorRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vpcaccess.v1.CreateConnectorRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -644,8 +586,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vpcaccess.v1.CreateConnectorRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vpcaccess.v1.CreateConnectorRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -657,23 +598,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project and location in which the configuration should be created,
      * specified in the format `projects/*/locations/*`.
      * 
* - * - * 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; @@ -682,24 +619,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location in which the configuration should be created,
      * specified in the format `projects/*/locations/*`.
      * 
* - * - * 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 { @@ -707,70 +641,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location in which the configuration should be created,
      * specified in the format `projects/*/locations/*`.
      * 
* - * - * 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 project and location in which the configuration should be created,
      * specified in the format `projects/*/locations/*`.
      * 
* - * - * 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 project and location in which the configuration should be created,
      * specified in the format `projects/*/locations/*`.
      * 
* - * - * 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; @@ -778,20 +699,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object connectorId_ = ""; /** - * - * *
      * Required. The ID to use for this connector.
      * 
* * string connector_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The connectorId. */ public java.lang.String getConnectorId() { java.lang.Object ref = connectorId_; 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(); connectorId_ = s; return s; @@ -800,21 +719,20 @@ public java.lang.String getConnectorId() { } } /** - * - * *
      * Required. The ID to use for this connector.
      * 
* * string connector_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for connectorId. */ - public com.google.protobuf.ByteString getConnectorIdBytes() { + public com.google.protobuf.ByteString + getConnectorIdBytes() { java.lang.Object ref = connectorId_; 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); connectorId_ = b; return b; } else { @@ -822,61 +740,54 @@ public com.google.protobuf.ByteString getConnectorIdBytes() { } } /** - * - * *
      * Required. The ID to use for this connector.
      * 
* * string connector_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The connectorId to set. * @return This builder for chaining. */ - public Builder setConnectorId(java.lang.String value) { + public Builder setConnectorId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + connectorId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID to use for this connector.
      * 
* * string connector_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearConnectorId() { - + connectorId_ = getDefaultInstance().getConnectorId(); onChanged(); return this; } /** - * - * *
      * Required. The ID to use for this connector.
      * 
* * string connector_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for connectorId to set. * @return This builder for chaining. */ - public Builder setConnectorIdBytes(com.google.protobuf.ByteString value) { + public Builder setConnectorIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connectorId_ = value; onChanged(); return this; @@ -884,58 +795,39 @@ public Builder setConnectorIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.vpcaccess.v1.Connector connector_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vpcaccess.v1.Connector, - com.google.cloud.vpcaccess.v1.Connector.Builder, - com.google.cloud.vpcaccess.v1.ConnectorOrBuilder> - connectorBuilder_; + com.google.cloud.vpcaccess.v1.Connector, com.google.cloud.vpcaccess.v1.Connector.Builder, com.google.cloud.vpcaccess.v1.ConnectorOrBuilder> connectorBuilder_; /** - * - * *
      * Required. Resource to create.
      * 
* - * - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connector field is set. */ public boolean hasConnector() { return connectorBuilder_ != null || connector_ != null; } /** - * - * *
      * Required. Resource to create.
      * 
* - * - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The connector. */ public com.google.cloud.vpcaccess.v1.Connector getConnector() { if (connectorBuilder_ == null) { - return connector_ == null - ? com.google.cloud.vpcaccess.v1.Connector.getDefaultInstance() - : connector_; + return connector_ == null ? com.google.cloud.vpcaccess.v1.Connector.getDefaultInstance() : connector_; } else { return connectorBuilder_.getMessage(); } } /** - * - * *
      * Required. Resource to create.
      * 
* - * - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConnector(com.google.cloud.vpcaccess.v1.Connector value) { if (connectorBuilder_ == null) { @@ -951,17 +843,14 @@ public Builder setConnector(com.google.cloud.vpcaccess.v1.Connector value) { return this; } /** - * - * *
      * Required. Resource to create.
      * 
* - * - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setConnector(com.google.cloud.vpcaccess.v1.Connector.Builder builderForValue) { + public Builder setConnector( + com.google.cloud.vpcaccess.v1.Connector.Builder builderForValue) { if (connectorBuilder_ == null) { connector_ = builderForValue.build(); onChanged(); @@ -972,23 +861,17 @@ public Builder setConnector(com.google.cloud.vpcaccess.v1.Connector.Builder buil return this; } /** - * - * *
      * Required. Resource to create.
      * 
* - * - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConnector(com.google.cloud.vpcaccess.v1.Connector value) { if (connectorBuilder_ == null) { if (connector_ != null) { connector_ = - com.google.cloud.vpcaccess.v1.Connector.newBuilder(connector_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.vpcaccess.v1.Connector.newBuilder(connector_).mergeFrom(value).buildPartial(); } else { connector_ = value; } @@ -1000,15 +883,11 @@ public Builder mergeConnector(com.google.cloud.vpcaccess.v1.Connector value) { return this; } /** - * - * *
      * Required. Resource to create.
      * 
* - * - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConnector() { if (connectorBuilder_ == null) { @@ -1022,71 +901,55 @@ public Builder clearConnector() { return this; } /** - * - * *
      * Required. Resource to create.
      * 
* - * - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vpcaccess.v1.Connector.Builder getConnectorBuilder() { - + onChanged(); return getConnectorFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Resource to create.
      * 
* - * - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorOrBuilder() { if (connectorBuilder_ != null) { return connectorBuilder_.getMessageOrBuilder(); } else { - return connector_ == null - ? com.google.cloud.vpcaccess.v1.Connector.getDefaultInstance() - : connector_; + return connector_ == null ? + com.google.cloud.vpcaccess.v1.Connector.getDefaultInstance() : connector_; } } /** - * - * *
      * Required. Resource to create.
      * 
* - * - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vpcaccess.v1.Connector, - com.google.cloud.vpcaccess.v1.Connector.Builder, - com.google.cloud.vpcaccess.v1.ConnectorOrBuilder> + com.google.cloud.vpcaccess.v1.Connector, com.google.cloud.vpcaccess.v1.Connector.Builder, com.google.cloud.vpcaccess.v1.ConnectorOrBuilder> getConnectorFieldBuilder() { if (connectorBuilder_ == null) { - connectorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vpcaccess.v1.Connector, - com.google.cloud.vpcaccess.v1.Connector.Builder, - com.google.cloud.vpcaccess.v1.ConnectorOrBuilder>( - getConnector(), getParentForChildren(), isClean()); + connectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vpcaccess.v1.Connector, com.google.cloud.vpcaccess.v1.Connector.Builder, com.google.cloud.vpcaccess.v1.ConnectorOrBuilder>( + getConnector(), + getParentForChildren(), + isClean()); connector_ = null; } return connectorBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1096,12 +959,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vpcaccess.v1.CreateConnectorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vpcaccess.v1.CreateConnectorRequest) private static final com.google.cloud.vpcaccess.v1.CreateConnectorRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vpcaccess.v1.CreateConnectorRequest(); } @@ -1110,16 +973,16 @@ public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateConnectorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateConnectorRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConnectorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateConnectorRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1134,4 +997,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vpcaccess.v1.CreateConnectorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequestOrBuilder.java similarity index 53% rename from proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequestOrBuilder.java index f97220bc..05a8e30c 100644 --- a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequestOrBuilder.java @@ -1,122 +1,78 @@ -/* - * 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/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; -public interface CreateConnectorRequestOrBuilder - extends +public interface CreateConnectorRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vpcaccess.v1.CreateConnectorRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project and location in which the configuration should be created,
    * specified in the format `projects/*/locations/*`.
    * 
* - * - * 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 project and location in which the configuration should be created,
    * specified in the format `projects/*/locations/*`.
    * 
* - * - * 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 ID to use for this connector.
    * 
* * string connector_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The connectorId. */ java.lang.String getConnectorId(); /** - * - * *
    * Required. The ID to use for this connector.
    * 
* * string connector_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for connectorId. */ - com.google.protobuf.ByteString getConnectorIdBytes(); + com.google.protobuf.ByteString + getConnectorIdBytes(); /** - * - * *
    * Required. Resource to create.
    * 
* - * - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connector field is set. */ boolean hasConnector(); /** - * - * *
    * Required. Resource to create.
    * 
* - * - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The connector. */ com.google.cloud.vpcaccess.v1.Connector getConnector(); /** - * - * *
    * Required. Resource to create.
    * 
* - * - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorOrBuilder(); } diff --git a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequest.java b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequest.java similarity index 64% rename from proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequest.java rename to owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequest.java index a646780d..096bf33a 100644 --- a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequest.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/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; /** - * - * *
  * Request for deleting a Serverless VPC Access connector.
  * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.DeleteConnectorRequest} */ -public final class DeleteConnectorRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteConnectorRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vpcaccess.v1.DeleteConnectorRequest) DeleteConnectorRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteConnectorRequest.newBuilder() to construct. private DeleteConnectorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteConnectorRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteConnectorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteConnectorRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,52 @@ private DeleteConnectorRequest( 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.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.class, - com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.Builder.class); + com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.class, com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of a Serverless VPC Access connector to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -132,31 +107,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of a Serverless VPC Access connector to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +149,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 (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vpcaccess.v1.DeleteConnectorRequest)) { return super.equals(obj); } - com.google.cloud.vpcaccess.v1.DeleteConnectorRequest other = - (com.google.cloud.vpcaccess.v1.DeleteConnectorRequest) obj; + com.google.cloud.vpcaccess.v1.DeleteConnectorRequest other = (com.google.cloud.vpcaccess.v1.DeleteConnectorRequest) 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,126 +202,117 @@ public int hashCode() { } public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vpcaccess.v1.DeleteConnectorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 deleting a Serverless VPC Access connector.
    * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.DeleteConnectorRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vpcaccess.v1.DeleteConnectorRequest) com.google.cloud.vpcaccess.v1.DeleteConnectorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.class, - com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.Builder.class); + com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.class, com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.Builder.class); } // Construct using com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.newBuilder() @@ -356,15 +320,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 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor; } @java.lang.Override @@ -395,8 +360,7 @@ public com.google.cloud.vpcaccess.v1.DeleteConnectorRequest build() { @java.lang.Override public com.google.cloud.vpcaccess.v1.DeleteConnectorRequest buildPartial() { - com.google.cloud.vpcaccess.v1.DeleteConnectorRequest result = - new com.google.cloud.vpcaccess.v1.DeleteConnectorRequest(this); + com.google.cloud.vpcaccess.v1.DeleteConnectorRequest result = new com.google.cloud.vpcaccess.v1.DeleteConnectorRequest(this); result.name_ = name_; onBuilt(); return result; @@ -406,39 +370,38 @@ public com.google.cloud.vpcaccess.v1.DeleteConnectorRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vpcaccess.v1.DeleteConnectorRequest) { - return mergeFrom((com.google.cloud.vpcaccess.v1.DeleteConnectorRequest) other); + return mergeFrom((com.google.cloud.vpcaccess.v1.DeleteConnectorRequest)other); } else { super.mergeFrom(other); return this; @@ -446,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vpcaccess.v1.DeleteConnectorRequest other) { - if (other == com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -471,8 +433,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vpcaccess.v1.DeleteConnectorRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vpcaccess.v1.DeleteConnectorRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -484,22 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of a Serverless VPC Access connector to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -508,23 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of a Serverless VPC Access connector to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -532,74 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of a Serverless VPC Access connector to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of a Serverless VPC Access connector to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of a Serverless VPC Access connector to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + 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); } @@ -609,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vpcaccess.v1.DeleteConnectorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vpcaccess.v1.DeleteConnectorRequest) private static final com.google.cloud.vpcaccess.v1.DeleteConnectorRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vpcaccess.v1.DeleteConnectorRequest(); } @@ -623,16 +564,16 @@ public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteConnectorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteConnectorRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConnectorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteConnectorRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vpcaccess.v1.DeleteConnectorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequestOrBuilder.java new file mode 100644 index 00000000..37c0a067 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vpcaccess/v1/vpc_access.proto + +package com.google.cloud.vpcaccess.v1; + +public interface DeleteConnectorRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vpcaccess.v1.DeleteConnectorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of a Serverless VPC Access connector to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of a Serverless VPC Access connector to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequest.java b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequest.java similarity index 64% rename from proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequest.java rename to owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequest.java index a08adfda..a1bb9662 100644 --- a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequest.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/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; /** - * - * *
  * Request for getting a Serverless VPC Access connector.
  * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.GetConnectorRequest} */ -public final class GetConnectorRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetConnectorRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vpcaccess.v1.GetConnectorRequest) GetConnectorRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetConnectorRequest.newBuilder() to construct. private GetConnectorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetConnectorRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetConnectorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetConnectorRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,52 @@ private GetConnectorRequest( 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.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.GetConnectorRequest.class, - com.google.cloud.vpcaccess.v1.GetConnectorRequest.Builder.class); + com.google.cloud.vpcaccess.v1.GetConnectorRequest.class, com.google.cloud.vpcaccess.v1.GetConnectorRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of a Serverless VPC Access connector to get.
    * 
* - * - * 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 @@ -132,31 +107,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of a Serverless VPC Access connector to get.
    * 
* - * - * 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 { @@ -165,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +149,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 (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vpcaccess.v1.GetConnectorRequest)) { return super.equals(obj); } - com.google.cloud.vpcaccess.v1.GetConnectorRequest other = - (com.google.cloud.vpcaccess.v1.GetConnectorRequest) obj; + com.google.cloud.vpcaccess.v1.GetConnectorRequest other = (com.google.cloud.vpcaccess.v1.GetConnectorRequest) 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,126 +202,117 @@ public int hashCode() { } public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vpcaccess.v1.GetConnectorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 getting a Serverless VPC Access connector.
    * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.GetConnectorRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vpcaccess.v1.GetConnectorRequest) com.google.cloud.vpcaccess.v1.GetConnectorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.GetConnectorRequest.class, - com.google.cloud.vpcaccess.v1.GetConnectorRequest.Builder.class); + com.google.cloud.vpcaccess.v1.GetConnectorRequest.class, com.google.cloud.vpcaccess.v1.GetConnectorRequest.Builder.class); } // Construct using com.google.cloud.vpcaccess.v1.GetConnectorRequest.newBuilder() @@ -356,15 +320,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 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor; } @java.lang.Override @@ -395,8 +360,7 @@ public com.google.cloud.vpcaccess.v1.GetConnectorRequest build() { @java.lang.Override public com.google.cloud.vpcaccess.v1.GetConnectorRequest buildPartial() { - com.google.cloud.vpcaccess.v1.GetConnectorRequest result = - new com.google.cloud.vpcaccess.v1.GetConnectorRequest(this); + com.google.cloud.vpcaccess.v1.GetConnectorRequest result = new com.google.cloud.vpcaccess.v1.GetConnectorRequest(this); result.name_ = name_; onBuilt(); return result; @@ -406,39 +370,38 @@ public com.google.cloud.vpcaccess.v1.GetConnectorRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vpcaccess.v1.GetConnectorRequest) { - return mergeFrom((com.google.cloud.vpcaccess.v1.GetConnectorRequest) other); + return mergeFrom((com.google.cloud.vpcaccess.v1.GetConnectorRequest)other); } else { super.mergeFrom(other); return this; @@ -446,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vpcaccess.v1.GetConnectorRequest other) { - if (other == com.google.cloud.vpcaccess.v1.GetConnectorRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vpcaccess.v1.GetConnectorRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -471,8 +433,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vpcaccess.v1.GetConnectorRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vpcaccess.v1.GetConnectorRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -484,22 +445,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of a Serverless VPC Access connector to get.
      * 
* - * - * 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,23 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of a Serverless VPC Access connector to get.
      * 
* - * - * 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 { @@ -532,74 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of a Serverless VPC Access connector to get.
      * 
* - * - * 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 a Serverless VPC Access connector to get.
      * 
* - * - * 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 a Serverless VPC Access connector to get.
      * 
* - * - * 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); } @@ -609,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vpcaccess.v1.GetConnectorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vpcaccess.v1.GetConnectorRequest) private static final com.google.cloud.vpcaccess.v1.GetConnectorRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vpcaccess.v1.GetConnectorRequest(); } @@ -623,16 +564,16 @@ public static com.google.cloud.vpcaccess.v1.GetConnectorRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetConnectorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetConnectorRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConnectorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetConnectorRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vpcaccess.v1.GetConnectorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequestOrBuilder.java new file mode 100644 index 00000000..3bf08f45 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vpcaccess/v1/vpc_access.proto + +package com.google.cloud.vpcaccess.v1; + +public interface GetConnectorRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.vpcaccess.v1.GetConnectorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of a Serverless VPC Access connector to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of a Serverless VPC Access connector to get.
+   * 
+ * + * 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-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequest.java b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequest.java similarity index 67% rename from proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequest.java index b42f962c..e007aafd 100644 --- a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequest.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/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; /** - * - * *
  * Request for listing Serverless VPC Access connectors in a location.
  * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.ListConnectorsRequest} */ -public final class ListConnectorsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListConnectorsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vpcaccess.v1.ListConnectorsRequest) ListConnectorsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListConnectorsRequest.newBuilder() to construct. private ListConnectorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListConnectorsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListConnectorsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListConnectorsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListConnectorsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,72 +54,63 @@ private ListConnectorsRequest( 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: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = 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.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.ListConnectorsRequest.class, - com.google.cloud.vpcaccess.v1.ListConnectorsRequest.Builder.class); + com.google.cloud.vpcaccess.v1.ListConnectorsRequest.class, com.google.cloud.vpcaccess.v1.ListConnectorsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The project and location from which the routes should be listed.
    * 
* - * - * 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 @@ -145,31 +119,29 @@ 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 project and location from which the routes should be listed.
    * 
* - * - * 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 { @@ -180,14 +152,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Maximum number of functions to return per call.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -198,14 +167,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Continuation token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -214,29 +180,29 @@ 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; } } /** - * - * *
    * Continuation token.
    * 
* * 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 { @@ -245,7 +211,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -257,7 +222,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 (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -280,7 +246,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!getPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -293,17 +260,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vpcaccess.v1.ListConnectorsRequest)) { return super.equals(obj); } - com.google.cloud.vpcaccess.v1.ListConnectorsRequest other = - (com.google.cloud.vpcaccess.v1.ListConnectorsRequest) obj; + com.google.cloud.vpcaccess.v1.ListConnectorsRequest other = (com.google.cloud.vpcaccess.v1.ListConnectorsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -327,126 +296,117 @@ public int hashCode() { } public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vpcaccess.v1.ListConnectorsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 listing Serverless VPC Access connectors in a location.
    * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.ListConnectorsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vpcaccess.v1.ListConnectorsRequest) com.google.cloud.vpcaccess.v1.ListConnectorsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.ListConnectorsRequest.class, - com.google.cloud.vpcaccess.v1.ListConnectorsRequest.Builder.class); + com.google.cloud.vpcaccess.v1.ListConnectorsRequest.class, com.google.cloud.vpcaccess.v1.ListConnectorsRequest.Builder.class); } // Construct using com.google.cloud.vpcaccess.v1.ListConnectorsRequest.newBuilder() @@ -454,15 +414,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 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor; } @java.lang.Override @@ -497,8 +458,7 @@ public com.google.cloud.vpcaccess.v1.ListConnectorsRequest build() { @java.lang.Override public com.google.cloud.vpcaccess.v1.ListConnectorsRequest buildPartial() { - com.google.cloud.vpcaccess.v1.ListConnectorsRequest result = - new com.google.cloud.vpcaccess.v1.ListConnectorsRequest(this); + com.google.cloud.vpcaccess.v1.ListConnectorsRequest result = new com.google.cloud.vpcaccess.v1.ListConnectorsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -510,39 +470,38 @@ public com.google.cloud.vpcaccess.v1.ListConnectorsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vpcaccess.v1.ListConnectorsRequest) { - return mergeFrom((com.google.cloud.vpcaccess.v1.ListConnectorsRequest) other); + return mergeFrom((com.google.cloud.vpcaccess.v1.ListConnectorsRequest)other); } else { super.mergeFrom(other); return this; @@ -550,8 +509,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vpcaccess.v1.ListConnectorsRequest other) { - if (other == com.google.cloud.vpcaccess.v1.ListConnectorsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.vpcaccess.v1.ListConnectorsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -582,8 +540,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vpcaccess.v1.ListConnectorsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vpcaccess.v1.ListConnectorsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -595,22 +552,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project and location from which the routes should be listed.
      * 
* - * - * 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; @@ -619,23 +572,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location from which the routes should be listed.
      * 
* - * - * 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 { @@ -643,82 +593,66 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location from which the routes should be listed.
      * 
* - * - * 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 project and location from which the routes should be listed.
      * 
* - * - * 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 project and location from which the routes should be listed.
      * 
* - * - * 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; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of functions to return per call.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -726,36 +660,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of functions to return per call.
      * 
* * 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 functions to return per call.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -763,20 +691,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Continuation token.
      * 
* * 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; @@ -785,21 +711,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Continuation token.
      * 
* * 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 { @@ -807,68 +732,61 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Continuation token.
      * 
* * 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; } /** - * - * *
      * Continuation token.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Continuation token.
      * 
* * 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); } @@ -878,12 +796,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vpcaccess.v1.ListConnectorsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vpcaccess.v1.ListConnectorsRequest) private static final com.google.cloud.vpcaccess.v1.ListConnectorsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vpcaccess.v1.ListConnectorsRequest(); } @@ -892,16 +810,16 @@ public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectorsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListConnectorsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectorsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListConnectorsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -916,4 +834,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vpcaccess.v1.ListConnectorsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequestOrBuilder.java similarity index 50% rename from proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequestOrBuilder.java index 3a16e075..73907dc1 100644 --- a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequestOrBuilder.java @@ -1,92 +1,59 @@ -/* - * 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/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; -public interface ListConnectorsRequestOrBuilder - extends +public interface ListConnectorsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vpcaccess.v1.ListConnectorsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project and location from which the routes should be listed.
    * 
* - * - * 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 project and location from which the routes should be listed.
    * 
* - * - * 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(); /** - * - * *
    * Maximum number of functions to return per call.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Continuation token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Continuation token.
    * 
* * 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-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponse.java b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponse.java similarity index 73% rename from proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponse.java index 8367f97a..090aca21 100644 --- a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponse.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/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; /** - * - * *
  * Response for listing Serverless VPC Access connectors.
  * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.ListConnectorsResponse} */ -public final class ListConnectorsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListConnectorsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vpcaccess.v1.ListConnectorsResponse) ListConnectorsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListConnectorsResponse.newBuilder() to construct. private ListConnectorsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListConnectorsResponse() { connectors_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListConnectorsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListConnectorsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListConnectorsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,37 +55,35 @@ private ListConnectorsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - connectors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - connectors_.add( - input.readMessage( - com.google.cloud.vpcaccess.v1.Connector.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + connectors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + connectors_.add( + input.readMessage(com.google.cloud.vpcaccess.v1.Connector.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)) { connectors_ = java.util.Collections.unmodifiableList(connectors_); @@ -111,27 +92,22 @@ private ListConnectorsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.ListConnectorsResponse.class, - com.google.cloud.vpcaccess.v1.ListConnectorsResponse.Builder.class); + com.google.cloud.vpcaccess.v1.ListConnectorsResponse.class, com.google.cloud.vpcaccess.v1.ListConnectorsResponse.Builder.class); } public static final int CONNECTORS_FIELD_NUMBER = 1; private java.util.List connectors_; /** - * - * *
    * List of Serverless VPC Access connectors.
    * 
@@ -143,8 +119,6 @@ public java.util.List getConnectorsList return connectors_; } /** - * - * *
    * List of Serverless VPC Access connectors.
    * 
@@ -152,13 +126,11 @@ public java.util.List getConnectorsList * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ @java.lang.Override - public java.util.List + public java.util.List getConnectorsOrBuilderList() { return connectors_; } /** - * - * *
    * List of Serverless VPC Access connectors.
    * 
@@ -170,8 +142,6 @@ public int getConnectorsCount() { return connectors_.size(); } /** - * - * *
    * List of Serverless VPC Access connectors.
    * 
@@ -183,8 +153,6 @@ public com.google.cloud.vpcaccess.v1.Connector getConnectors(int index) { return connectors_.get(index); } /** - * - * *
    * List of Serverless VPC Access connectors.
    * 
@@ -192,21 +160,19 @@ public com.google.cloud.vpcaccess.v1.Connector getConnectors(int index) { * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ @java.lang.Override - public com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorsOrBuilder(int index) { + public com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorsOrBuilder( + int index) { return connectors_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Continuation token.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -215,29 +181,29 @@ 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; } } /** - * - * *
    * Continuation token.
    * 
* * 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 +212,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -258,7 +223,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < connectors_.size(); i++) { output.writeMessage(1, connectors_.get(i)); } @@ -275,7 +241,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < connectors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, connectors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, connectors_.get(i)); } if (!getNextPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -288,16 +255,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vpcaccess.v1.ListConnectorsResponse)) { return super.equals(obj); } - com.google.cloud.vpcaccess.v1.ListConnectorsResponse other = - (com.google.cloud.vpcaccess.v1.ListConnectorsResponse) obj; + com.google.cloud.vpcaccess.v1.ListConnectorsResponse other = (com.google.cloud.vpcaccess.v1.ListConnectorsResponse) obj; - if (!getConnectorsList().equals(other.getConnectorsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getConnectorsList() + .equals(other.getConnectorsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -321,126 +289,117 @@ public int hashCode() { } public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vpcaccess.v1.ListConnectorsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 listing Serverless VPC Access connectors.
    * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.ListConnectorsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vpcaccess.v1.ListConnectorsResponse) com.google.cloud.vpcaccess.v1.ListConnectorsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.ListConnectorsResponse.class, - com.google.cloud.vpcaccess.v1.ListConnectorsResponse.Builder.class); + com.google.cloud.vpcaccess.v1.ListConnectorsResponse.class, com.google.cloud.vpcaccess.v1.ListConnectorsResponse.Builder.class); } // Construct using com.google.cloud.vpcaccess.v1.ListConnectorsResponse.newBuilder() @@ -448,17 +407,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) { getConnectorsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -474,9 +433,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor; } @java.lang.Override @@ -495,8 +454,7 @@ public com.google.cloud.vpcaccess.v1.ListConnectorsResponse build() { @java.lang.Override public com.google.cloud.vpcaccess.v1.ListConnectorsResponse buildPartial() { - com.google.cloud.vpcaccess.v1.ListConnectorsResponse result = - new com.google.cloud.vpcaccess.v1.ListConnectorsResponse(this); + com.google.cloud.vpcaccess.v1.ListConnectorsResponse result = new com.google.cloud.vpcaccess.v1.ListConnectorsResponse(this); int from_bitField0_ = bitField0_; if (connectorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -516,39 +474,38 @@ public com.google.cloud.vpcaccess.v1.ListConnectorsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vpcaccess.v1.ListConnectorsResponse) { - return mergeFrom((com.google.cloud.vpcaccess.v1.ListConnectorsResponse) other); + return mergeFrom((com.google.cloud.vpcaccess.v1.ListConnectorsResponse)other); } else { super.mergeFrom(other); return this; @@ -556,8 +513,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vpcaccess.v1.ListConnectorsResponse other) { - if (other == com.google.cloud.vpcaccess.v1.ListConnectorsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.vpcaccess.v1.ListConnectorsResponse.getDefaultInstance()) return this; if (connectorsBuilder_ == null) { if (!other.connectors_.isEmpty()) { if (connectors_.isEmpty()) { @@ -576,10 +532,9 @@ public Builder mergeFrom(com.google.cloud.vpcaccess.v1.ListConnectorsResponse ot connectorsBuilder_ = null; connectors_ = other.connectors_; bitField0_ = (bitField0_ & ~0x00000001); - connectorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getConnectorsFieldBuilder() - : null; + connectorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConnectorsFieldBuilder() : null; } else { connectorsBuilder_.addAllMessages(other.connectors_); } @@ -608,8 +563,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.vpcaccess.v1.ListConnectorsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.vpcaccess.v1.ListConnectorsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -618,28 +572,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List connectors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureConnectorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { connectors_ = new java.util.ArrayList(connectors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vpcaccess.v1.Connector, - com.google.cloud.vpcaccess.v1.Connector.Builder, - com.google.cloud.vpcaccess.v1.ConnectorOrBuilder> - connectorsBuilder_; + com.google.cloud.vpcaccess.v1.Connector, com.google.cloud.vpcaccess.v1.Connector.Builder, com.google.cloud.vpcaccess.v1.ConnectorOrBuilder> connectorsBuilder_; /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -654,8 +601,6 @@ public java.util.List getConnectorsList } } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -670,8 +615,6 @@ public int getConnectorsCount() { } } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -686,15 +629,14 @@ public com.google.cloud.vpcaccess.v1.Connector getConnectors(int index) { } } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
* * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ - public Builder setConnectors(int index, com.google.cloud.vpcaccess.v1.Connector value) { + public Builder setConnectors( + int index, com.google.cloud.vpcaccess.v1.Connector value) { if (connectorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -708,8 +650,6 @@ public Builder setConnectors(int index, com.google.cloud.vpcaccess.v1.Connector return this; } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -728,8 +668,6 @@ public Builder setConnectors( return this; } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -750,15 +688,14 @@ public Builder addConnectors(com.google.cloud.vpcaccess.v1.Connector value) { return this; } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
* * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ - public Builder addConnectors(int index, com.google.cloud.vpcaccess.v1.Connector value) { + public Builder addConnectors( + int index, com.google.cloud.vpcaccess.v1.Connector value) { if (connectorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -772,15 +709,14 @@ public Builder addConnectors(int index, com.google.cloud.vpcaccess.v1.Connector return this; } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
* * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ - public Builder addConnectors(com.google.cloud.vpcaccess.v1.Connector.Builder builderForValue) { + public Builder addConnectors( + com.google.cloud.vpcaccess.v1.Connector.Builder builderForValue) { if (connectorsBuilder_ == null) { ensureConnectorsIsMutable(); connectors_.add(builderForValue.build()); @@ -791,8 +727,6 @@ public Builder addConnectors(com.google.cloud.vpcaccess.v1.Connector.Builder bui return this; } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -811,8 +745,6 @@ public Builder addConnectors( return this; } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -823,7 +755,8 @@ public Builder addAllConnectors( java.lang.Iterable values) { if (connectorsBuilder_ == null) { ensureConnectorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connectors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, connectors_); onChanged(); } else { connectorsBuilder_.addAllMessages(values); @@ -831,8 +764,6 @@ public Builder addAllConnectors( return this; } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -850,8 +781,6 @@ public Builder clearConnectors() { return this; } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -869,44 +798,39 @@ public Builder removeConnectors(int index) { return this; } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
* * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ - public com.google.cloud.vpcaccess.v1.Connector.Builder getConnectorsBuilder(int index) { + public com.google.cloud.vpcaccess.v1.Connector.Builder getConnectorsBuilder( + int index) { return getConnectorsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
* * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ - public com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorsOrBuilder(int index) { + public com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorsOrBuilder( + int index) { if (connectorsBuilder_ == null) { - return connectors_.get(index); - } else { + return connectors_.get(index); } else { return connectorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
* * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ - public java.util.List - getConnectorsOrBuilderList() { + public java.util.List + getConnectorsOrBuilderList() { if (connectorsBuilder_ != null) { return connectorsBuilder_.getMessageOrBuilderList(); } else { @@ -914,8 +838,6 @@ public com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorsOrBuilder(i } } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -923,48 +845,42 @@ public com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorsOrBuilder(i * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ public com.google.cloud.vpcaccess.v1.Connector.Builder addConnectorsBuilder() { - return getConnectorsFieldBuilder() - .addBuilder(com.google.cloud.vpcaccess.v1.Connector.getDefaultInstance()); + return getConnectorsFieldBuilder().addBuilder( + com.google.cloud.vpcaccess.v1.Connector.getDefaultInstance()); } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
* * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ - public com.google.cloud.vpcaccess.v1.Connector.Builder addConnectorsBuilder(int index) { - return getConnectorsFieldBuilder() - .addBuilder(index, com.google.cloud.vpcaccess.v1.Connector.getDefaultInstance()); + public com.google.cloud.vpcaccess.v1.Connector.Builder addConnectorsBuilder( + int index) { + return getConnectorsFieldBuilder().addBuilder( + index, com.google.cloud.vpcaccess.v1.Connector.getDefaultInstance()); } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
* * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ - public java.util.List - getConnectorsBuilderList() { + public java.util.List + getConnectorsBuilderList() { return getConnectorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vpcaccess.v1.Connector, - com.google.cloud.vpcaccess.v1.Connector.Builder, - com.google.cloud.vpcaccess.v1.ConnectorOrBuilder> + com.google.cloud.vpcaccess.v1.Connector, com.google.cloud.vpcaccess.v1.Connector.Builder, com.google.cloud.vpcaccess.v1.ConnectorOrBuilder> getConnectorsFieldBuilder() { if (connectorsBuilder_ == null) { - connectorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vpcaccess.v1.Connector, - com.google.cloud.vpcaccess.v1.Connector.Builder, - com.google.cloud.vpcaccess.v1.ConnectorOrBuilder>( - connectors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + connectorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vpcaccess.v1.Connector, com.google.cloud.vpcaccess.v1.Connector.Builder, com.google.cloud.vpcaccess.v1.ConnectorOrBuilder>( + connectors_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); connectors_ = null; } return connectorsBuilder_; @@ -972,20 +888,18 @@ public com.google.cloud.vpcaccess.v1.Connector.Builder addConnectorsBuilder(int private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Continuation token.
      * 
* * 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; @@ -994,21 +908,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Continuation token.
      * 
* * 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 { @@ -1016,68 +929,61 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Continuation token.
      * 
* * 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; } /** - * - * *
      * Continuation token.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Continuation token.
      * 
* * 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); } @@ -1087,12 +993,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vpcaccess.v1.ListConnectorsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vpcaccess.v1.ListConnectorsResponse) private static final com.google.cloud.vpcaccess.v1.ListConnectorsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vpcaccess.v1.ListConnectorsResponse(); } @@ -1101,16 +1007,16 @@ public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectorsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListConnectorsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectorsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListConnectorsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1125,4 +1031,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vpcaccess.v1.ListConnectorsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponseOrBuilder.java similarity index 65% rename from proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponseOrBuilder.java index 31a3a888..3736e529 100644 --- a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponseOrBuilder.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/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; -public interface ListConnectorsResponseOrBuilder - extends +public interface ListConnectorsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vpcaccess.v1.ListConnectorsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of Serverless VPC Access connectors.
    * 
* * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ - java.util.List getConnectorsList(); + java.util.List + getConnectorsList(); /** - * - * *
    * List of Serverless VPC Access connectors.
    * 
@@ -44,8 +25,6 @@ public interface ListConnectorsResponseOrBuilder */ com.google.cloud.vpcaccess.v1.Connector getConnectors(int index); /** - * - * *
    * List of Serverless VPC Access connectors.
    * 
@@ -54,49 +33,41 @@ public interface ListConnectorsResponseOrBuilder */ int getConnectorsCount(); /** - * - * *
    * List of Serverless VPC Access connectors.
    * 
* * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ - java.util.List + java.util.List getConnectorsOrBuilderList(); /** - * - * *
    * List of Serverless VPC Access connectors.
    * 
* * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ - com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorsOrBuilder(int index); + com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorsOrBuilder( + int index); /** - * - * *
    * Continuation token.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Continuation token.
    * 
* * 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-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/LocationName.java b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/LocationName.java similarity index 100% rename from proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/LocationName.java rename to owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/LocationName.java diff --git a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadata.java b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadata.java similarity index 67% rename from proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadata.java index 1cb7b948..57a69752 100644 --- a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadata.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/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; /** - * - * *
  * Metadata for google.longrunning.Operation.
  * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vpcaccess.v1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { method_ = ""; target_ = ""; @@ -44,15 +26,16 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,96 +54,85 @@ private OperationMetadata( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - method_ = s; - break; + method_ = s; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + 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() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.OperationMetadata.class, - com.google.cloud.vpcaccess.v1.OperationMetadata.Builder.class); + com.google.cloud.vpcaccess.v1.OperationMetadata.class, com.google.cloud.vpcaccess.v1.OperationMetadata.Builder.class); } public static final int METHOD_FIELD_NUMBER = 1; private volatile java.lang.Object method_; /** - * - * *
    * Output only. Method that initiated the operation e.g.
    * google.cloud.vpcaccess.v1.Connectors.CreateConnector.
    * 
* * string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The method. */ @java.lang.Override @@ -169,30 +141,30 @@ public java.lang.String getMethod() { 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(); method_ = s; return s; } } /** - * - * *
    * Output only. Method that initiated the operation e.g.
    * google.cloud.vpcaccess.v1.Connectors.CreateConnector.
    * 
* * string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for method. */ @java.lang.Override - public com.google.protobuf.ByteString getMethodBytes() { + public com.google.protobuf.ByteString + getMethodBytes() { java.lang.Object ref = method_; 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); method_ = b; return b; } else { @@ -203,15 +175,11 @@ public com.google.protobuf.ByteString getMethodBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -219,15 +187,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -235,14 +199,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -252,15 +213,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. Time when the operation completed.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -268,15 +225,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. Time when the operation completed.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -284,14 +237,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. Time when the operation completed.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -301,17 +251,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 5; private volatile java.lang.Object target_; /** - * - * *
    * Output only. Name of the resource that this operation is acting on e.g.
    * projects/my-project/locations/us-central1/connectors/v1.
    * 
* - * - * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The target. */ @java.lang.Override @@ -320,32 +265,30 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Output only. Name of the resource that this operation is acting on e.g.
    * projects/my-project/locations/us-central1/connectors/v1.
    * 
* - * - * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -354,7 +297,6 @@ public com.google.protobuf.ByteString getTargetBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -366,7 +308,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 (!getMethodBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, method_); } @@ -392,10 +335,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, method_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getEndTime()); } if (!getTargetBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, target_); @@ -408,24 +353,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vpcaccess.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.vpcaccess.v1.OperationMetadata other = - (com.google.cloud.vpcaccess.v1.OperationMetadata) obj; + com.google.cloud.vpcaccess.v1.OperationMetadata other = (com.google.cloud.vpcaccess.v1.OperationMetadata) obj; - if (!getMethod().equals(other.getMethod())) return false; + if (!getMethod() + .equals(other.getMethod())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } - if (!getTarget().equals(other.getTarget())) return false; + if (!getTarget() + .equals(other.getTarget())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -454,127 +402,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vpcaccess.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vpcaccess.v1.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.OperationMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vpcaccess.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vpcaccess.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vpcaccess.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Metadata for google.longrunning.Operation.
    * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vpcaccess.v1.OperationMetadata) com.google.cloud.vpcaccess.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.OperationMetadata.class, - com.google.cloud.vpcaccess.v1.OperationMetadata.Builder.class); + com.google.cloud.vpcaccess.v1.OperationMetadata.class, com.google.cloud.vpcaccess.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.vpcaccess.v1.OperationMetadata.newBuilder() @@ -582,15 +521,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(); @@ -614,9 +554,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -635,8 +575,7 @@ public com.google.cloud.vpcaccess.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.vpcaccess.v1.OperationMetadata buildPartial() { - com.google.cloud.vpcaccess.v1.OperationMetadata result = - new com.google.cloud.vpcaccess.v1.OperationMetadata(this); + com.google.cloud.vpcaccess.v1.OperationMetadata result = new com.google.cloud.vpcaccess.v1.OperationMetadata(this); result.method_ = method_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -657,39 +596,38 @@ public com.google.cloud.vpcaccess.v1.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vpcaccess.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.vpcaccess.v1.OperationMetadata) other); + return mergeFrom((com.google.cloud.vpcaccess.v1.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -697,8 +635,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vpcaccess.v1.OperationMetadata other) { - if (other == com.google.cloud.vpcaccess.v1.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.vpcaccess.v1.OperationMetadata.getDefaultInstance()) return this; if (!other.getMethod().isEmpty()) { method_ = other.method_; onChanged(); @@ -744,21 +681,19 @@ public Builder mergeFrom( private java.lang.Object method_ = ""; /** - * - * *
      * Output only. Method that initiated the operation e.g.
      * google.cloud.vpcaccess.v1.Connectors.CreateConnector.
      * 
* * string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The method. */ public java.lang.String getMethod() { java.lang.Object ref = method_; 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(); method_ = s; return s; @@ -767,22 +702,21 @@ public java.lang.String getMethod() { } } /** - * - * *
      * Output only. Method that initiated the operation e.g.
      * google.cloud.vpcaccess.v1.Connectors.CreateConnector.
      * 
* * string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for method. */ - public com.google.protobuf.ByteString getMethodBytes() { + public com.google.protobuf.ByteString + getMethodBytes() { java.lang.Object ref = method_; 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); method_ = b; return b; } else { @@ -790,64 +724,57 @@ public com.google.protobuf.ByteString getMethodBytes() { } } /** - * - * *
      * Output only. Method that initiated the operation e.g.
      * google.cloud.vpcaccess.v1.Connectors.CreateConnector.
      * 
* * string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The method to set. * @return This builder for chaining. */ - public Builder setMethod(java.lang.String value) { + public Builder setMethod( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + method_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Method that initiated the operation e.g.
      * google.cloud.vpcaccess.v1.Connectors.CreateConnector.
      * 
* * string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearMethod() { - + method_ = getDefaultInstance().getMethod(); onChanged(); return this; } /** - * - * *
      * Output only. Method that initiated the operation e.g.
      * google.cloud.vpcaccess.v1.Connectors.CreateConnector.
      * 
* * string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for method to set. * @return This builder for chaining. */ - public Builder setMethodBytes(com.google.protobuf.ByteString value) { + public Builder setMethodBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + method_ = value; onChanged(); return this; @@ -855,58 +782,39 @@ public Builder setMethodBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Time when the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -922,17 +830,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -943,21 +848,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -969,15 +870,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -991,64 +888,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Time when the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1056,35 +937,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. Time when the operation completed.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Output only. Time when the operation completed.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1095,14 +965,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. Time when the operation completed.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1118,16 +985,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the operation completed.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1138,20 +1003,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. Time when the operation completed.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1163,14 +1025,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when the operation completed.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1184,59 +1043,48 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. Time when the operation completed.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when the operation completed.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. Time when the operation completed.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1244,23 +1092,19 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Name of the resource that this operation is acting on e.g.
      * projects/my-project/locations/us-central1/connectors/v1.
      * 
* - * - * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1269,24 +1113,21 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Name of the resource that this operation is acting on e.g.
      * projects/my-project/locations/us-central1/connectors/v1.
      * 
* - * - * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1294,77 +1135,64 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Name of the resource that this operation is acting on e.g.
      * projects/my-project/locations/us-central1/connectors/v1.
      * 
* - * - * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { + public Builder setTarget( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Name of the resource that this operation is acting on e.g.
      * projects/my-project/locations/us-central1/connectors/v1.
      * 
* - * - * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** - * - * *
      * Output only. Name of the resource that this operation is acting on e.g.
      * projects/my-project/locations/us-central1/connectors/v1.
      * 
* - * - * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + 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); } @@ -1374,12 +1202,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.vpcaccess.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.vpcaccess.v1.OperationMetadata) private static final com.google.cloud.vpcaccess.v1.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.vpcaccess.v1.OperationMetadata(); } @@ -1388,16 +1216,16 @@ public static com.google.cloud.vpcaccess.v1.OperationMetadata getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1412,4 +1240,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vpcaccess.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadataOrBuilder.java similarity index 65% rename from proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadataOrBuilder.java index f1e221fd..a2695af3 100644 --- a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadataOrBuilder.java @@ -1,159 +1,107 @@ -/* - * 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/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vpcaccess.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Method that initiated the operation e.g.
    * google.cloud.vpcaccess.v1.Connectors.CreateConnector.
    * 
* * string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The method. */ java.lang.String getMethod(); /** - * - * *
    * Output only. Method that initiated the operation e.g.
    * google.cloud.vpcaccess.v1.Connectors.CreateConnector.
    * 
* * string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for method. */ - com.google.protobuf.ByteString getMethodBytes(); + com.google.protobuf.ByteString + getMethodBytes(); /** - * - * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Time when the operation completed.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. Time when the operation completed.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. Time when the operation completed.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Name of the resource that this operation is acting on e.g.
    * projects/my-project/locations/us-central1/connectors/v1.
    * 
* - * - * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Name of the resource that this operation is acting on e.g.
    * projects/my-project/locations/us-central1/connectors/v1.
    * 
* - * - * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessProto.java b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessProto.java new file mode 100644 index 00000000..0d0d61b5 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessProto.java @@ -0,0 +1,213 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vpcaccess/v1/vpc_access.proto + +package com.google.cloud.vpcaccess.v1; + +public final class VpcAccessProto { + private VpcAccessProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_Connector_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n*google/cloud/vpcaccess/v1/vpc_access.p" + + "roto\022\031google.cloud.vpcaccess.v1\032\034google/" + + "api/annotations.proto\032\027google/api/client" + + ".proto\032\037google/api/field_behavior.proto\032" + + "\031google/api/resource.proto\032#google/longr" + + "unning/operations.proto\032\037google/protobuf" + + "/timestamp.proto\"\204\004\n\tConnector\022\014\n\004name\030\001" + + " \001(\t\022\017\n\007network\030\002 \001(\t\022\025\n\rip_cidr_range\030\003" + + " \001(\t\022>\n\005state\030\004 \001(\0162*.google.cloud.vpcac" + + "cess.v1.Connector.StateB\003\340A\003\022\026\n\016min_thro" + + "ughput\030\005 \001(\005\022\026\n\016max_throughput\030\006 \001(\005\022\037\n\022" + + "connected_projects\030\007 \003(\tB\003\340A\003\022;\n\006subnet\030" + + "\010 \001(\0132+.google.cloud.vpcaccess.v1.Connec" + + "tor.Subnet\032*\n\006Subnet\022\014\n\004name\030\001 \001(\t\022\022\n\npr" + + "oject_id\030\002 \001(\t\"^\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\t\n\005READY\020\001\022\014\n\010CREATING\020\002\022\014\n\010DELET" + + "ING\020\003\022\t\n\005ERROR\020\004\022\014\n\010UPDATING\020\005:g\352Ad\n\"vpc" + + "access.googleapis.com/Connector\022>project" + + "s/{project}/locations/{location}/connect" + + "ors/{connector}\"\254\001\n\026CreateConnectorReque" + + "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.go" + + "ogleapis.com/Location\022\031\n\014connector_id\030\002 " + + "\001(\tB\003\340A\002\022<\n\tconnector\030\003 \001(\0132$.google.clo" + + "ud.vpcaccess.v1.ConnectorB\003\340A\002\"O\n\023GetCon" + + "nectorRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpc" + + "access.googleapis.com/Connector\"y\n\025ListC" + + "onnectorsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" + + "\n!locations.googleapis.com/Location\022\021\n\tp" + + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\026Li" + + "stConnectorsResponse\0228\n\nconnectors\030\001 \003(\013" + + "2$.google.cloud.vpcaccess.v1.Connector\022\027" + + "\n\017next_page_token\030\002 \001(\t\"R\n\026DeleteConnect" + + "orRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpcacce" + + "ss.googleapis.com/Connector\"\315\001\n\021Operatio" + + "nMetadata\022\023\n\006method\030\001 \001(\tB\003\340A\003\0224\n\013create" + + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0221\n\010end_time\030\003 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\022:\n\006target\030\005 \001(\tB*\340A\003\372A$\n" + + "\"vpcaccess.googleapis.com/Connector2\374\006\n\020" + + "VpcAccessService\022\350\001\n\017CreateConnector\0221.g" + + "oogle.cloud.vpcaccess.v1.CreateConnector" + + "Request\032\035.google.longrunning.Operation\"\202" + + "\001\202\323\344\223\002;\"./v1/{parent=projects/*/location" + + "s/*}/connectors:\tconnector\332A\035parent,conn" + + "ector_id,connector\312A\036\n\tConnector\022\021Operat" + + "ionMetadata\022\243\001\n\014GetConnector\022..google.cl" + + "oud.vpcaccess.v1.GetConnectorRequest\032$.g" + + "oogle.cloud.vpcaccess.v1.Connector\"=\202\323\344\223" + + "\0020\022./v1/{name=projects/*/locations/*/con" + + "nectors/*}\332A\004name\022\266\001\n\016ListConnectors\0220.g" + + "oogle.cloud.vpcaccess.v1.ListConnectorsR" + + "equest\0321.google.cloud.vpcaccess.v1.ListC" + + "onnectorsResponse\"?\202\323\344\223\0020\022./v1/{parent=p" + + "rojects/*/locations/*}/connectors\332A\006pare" + + "nt\022\317\001\n\017DeleteConnector\0221.google.cloud.vp" + + "caccess.v1.DeleteConnectorRequest\032\035.goog" + + "le.longrunning.Operation\"j\202\323\344\223\0020*./v1/{n" + + "ame=projects/*/locations/*/connectors/*}" + + "\332A\004name\312A*\n\025google.protobuf.Empty\022\021Opera" + + "tionMetadata\032L\312A\030vpcaccess.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/clou" + + "d-platformB\314\001\n\035com.google.cloud.vpcacces" + + "s.v1B\016VpcAccessProtoP\001ZBgoogle.golang.or" + + "g/genproto/googleapis/cloud/vpcaccess/v1" + + ";vpcaccess\252\002\031Google.Cloud.VpcAccess.V1\312\002" + + "\031Google\\Cloud\\VpcAccess\\V1\352\002\034Google::Clo" + + "ud::VpcAccess::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.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_vpcaccess_v1_Connector_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_Connector_descriptor, + new java.lang.String[] { "Name", "Network", "IpCidrRange", "State", "MinThroughput", "MaxThroughput", "ConnectedProjects", "Subnet", }); + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor = + internal_static_google_cloud_vpcaccess_v1_Connector_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor, + new java.lang.String[] { "Name", "ProjectId", }); + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor, + new java.lang.String[] { "Parent", "ConnectorId", "Connector", }); + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor, + new java.lang.String[] { "Connectors", "NextPageToken", }); + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor, + new java.lang.String[] { "Method", "CreateTime", "EndTime", "Target", }); + 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); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-vpcaccess-v1/src/main/proto/google/cloud/vpcaccess/v1/vpc_access.proto b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/proto/google/cloud/vpcaccess/v1/vpc_access.proto similarity index 100% rename from proto-google-cloud-vpcaccess-v1/src/main/proto/google/cloud/vpcaccess/v1/vpc_access.proto rename to owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/proto/google/cloud/vpcaccess/v1/vpc_access.proto diff --git a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequestOrBuilder.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequestOrBuilder.java deleted file mode 100644 index c7754766..00000000 --- a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequestOrBuilder.java +++ /dev/null @@ -1,54 +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/cloud/vpcaccess/v1/vpc_access.proto - -package com.google.cloud.vpcaccess.v1; - -public interface DeleteConnectorRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vpcaccess.v1.DeleteConnectorRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of a Serverless VPC Access connector to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of a Serverless VPC Access connector to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequestOrBuilder.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequestOrBuilder.java deleted file mode 100644 index f8694e6e..00000000 --- a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequestOrBuilder.java +++ /dev/null @@ -1,54 +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/cloud/vpcaccess/v1/vpc_access.proto - -package com.google.cloud.vpcaccess.v1; - -public interface GetConnectorRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vpcaccess.v1.GetConnectorRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of a Serverless VPC Access connector to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of a Serverless VPC Access connector to get.
-   * 
- * - * - * 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-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessProto.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessProto.java deleted file mode 100644 index 39ee2b17..00000000 --- a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessProto.java +++ /dev/null @@ -1,242 +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/cloud/vpcaccess/v1/vpc_access.proto - -package com.google.cloud.vpcaccess.v1; - -public final class VpcAccessProto { - private VpcAccessProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_Connector_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n*google/cloud/vpcaccess/v1/vpc_access.p" - + "roto\022\031google.cloud.vpcaccess.v1\032\034google/" - + "api/annotations.proto\032\027google/api/client" - + ".proto\032\037google/api/field_behavior.proto\032" - + "\031google/api/resource.proto\032#google/longr" - + "unning/operations.proto\032\037google/protobuf" - + "/timestamp.proto\"\204\004\n\tConnector\022\014\n\004name\030\001" - + " \001(\t\022\017\n\007network\030\002 \001(\t\022\025\n\rip_cidr_range\030\003" - + " \001(\t\022>\n\005state\030\004 \001(\0162*.google.cloud.vpcac" - + "cess.v1.Connector.StateB\003\340A\003\022\026\n\016min_thro" - + "ughput\030\005 \001(\005\022\026\n\016max_throughput\030\006 \001(\005\022\037\n\022" - + "connected_projects\030\007 \003(\tB\003\340A\003\022;\n\006subnet\030" - + "\010 \001(\0132+.google.cloud.vpcaccess.v1.Connec" - + "tor.Subnet\032*\n\006Subnet\022\014\n\004name\030\001 \001(\t\022\022\n\npr" - + "oject_id\030\002 \001(\t\"^\n\005State\022\025\n\021STATE_UNSPECI" - + "FIED\020\000\022\t\n\005READY\020\001\022\014\n\010CREATING\020\002\022\014\n\010DELET" - + "ING\020\003\022\t\n\005ERROR\020\004\022\014\n\010UPDATING\020\005:g\352Ad\n\"vpc" - + "access.googleapis.com/Connector\022>project" - + "s/{project}/locations/{location}/connect" - + "ors/{connector}\"\254\001\n\026CreateConnectorReque" - + "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.go" - + "ogleapis.com/Location\022\031\n\014connector_id\030\002 " - + "\001(\tB\003\340A\002\022<\n\tconnector\030\003 \001(\0132$.google.clo" - + "ud.vpcaccess.v1.ConnectorB\003\340A\002\"O\n\023GetCon" - + "nectorRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpc" - + "access.googleapis.com/Connector\"y\n\025ListC" - + "onnectorsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" - + "\n!locations.googleapis.com/Location\022\021\n\tp" - + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\026Li" - + "stConnectorsResponse\0228\n\nconnectors\030\001 \003(\013" - + "2$.google.cloud.vpcaccess.v1.Connector\022\027" - + "\n\017next_page_token\030\002 \001(\t\"R\n\026DeleteConnect" - + "orRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpcacce" - + "ss.googleapis.com/Connector\"\315\001\n\021Operatio" - + "nMetadata\022\023\n\006method\030\001 \001(\tB\003\340A\003\0224\n\013create" - + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\0221\n\010end_time\030\003 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\022:\n\006target\030\005 \001(\tB*\340A\003\372A$\n" - + "\"vpcaccess.googleapis.com/Connector2\374\006\n\020" - + "VpcAccessService\022\350\001\n\017CreateConnector\0221.g" - + "oogle.cloud.vpcaccess.v1.CreateConnector" - + "Request\032\035.google.longrunning.Operation\"\202" - + "\001\202\323\344\223\002;\"./v1/{parent=projects/*/location" - + "s/*}/connectors:\tconnector\332A\035parent,conn" - + "ector_id,connector\312A\036\n\tConnector\022\021Operat" - + "ionMetadata\022\243\001\n\014GetConnector\022..google.cl" - + "oud.vpcaccess.v1.GetConnectorRequest\032$.g" - + "oogle.cloud.vpcaccess.v1.Connector\"=\202\323\344\223" - + "\0020\022./v1/{name=projects/*/locations/*/con" - + "nectors/*}\332A\004name\022\266\001\n\016ListConnectors\0220.g" - + "oogle.cloud.vpcaccess.v1.ListConnectorsR" - + "equest\0321.google.cloud.vpcaccess.v1.ListC" - + "onnectorsResponse\"?\202\323\344\223\0020\022./v1/{parent=p" - + "rojects/*/locations/*}/connectors\332A\006pare" - + "nt\022\317\001\n\017DeleteConnector\0221.google.cloud.vp" - + "caccess.v1.DeleteConnectorRequest\032\035.goog" - + "le.longrunning.Operation\"j\202\323\344\223\0020*./v1/{n" - + "ame=projects/*/locations/*/connectors/*}" - + "\332A\004name\312A*\n\025google.protobuf.Empty\022\021Opera" - + "tionMetadata\032L\312A\030vpcaccess.googleapis.co" - + "m\322A.https://www.googleapis.com/auth/clou" - + "d-platformB\314\001\n\035com.google.cloud.vpcacces" - + "s.v1B\016VpcAccessProtoP\001ZBgoogle.golang.or" - + "g/genproto/googleapis/cloud/vpcaccess/v1" - + ";vpcaccess\252\002\031Google.Cloud.VpcAccess.V1\312\002" - + "\031Google\\Cloud\\VpcAccess\\V1\352\002\034Google::Clo" - + "ud::VpcAccess::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.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_vpcaccess_v1_Connector_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_Connector_descriptor, - new java.lang.String[] { - "Name", - "Network", - "IpCidrRange", - "State", - "MinThroughput", - "MaxThroughput", - "ConnectedProjects", - "Subnet", - }); - internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor = - internal_static_google_cloud_vpcaccess_v1_Connector_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor, - new java.lang.String[] { - "Name", "ProjectId", - }); - internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor, - new java.lang.String[] { - "Parent", "ConnectorId", "Connector", - }); - internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor, - new java.lang.String[] { - "Connectors", "NextPageToken", - }); - internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor, - new java.lang.String[] { - "Method", "CreateTime", "EndTime", "Target", - }); - 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); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} From 2ee3cf471315a854e5548153e65ae94295df9348 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 3 Aug 2021 21:53:51 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md --- .../vpcaccess/v1/VpcAccessServiceClient.java | 16 +- .../v1/VpcAccessServiceSettings.java | 7 +- .../cloud/vpcaccess/v1/gapic_metadata.json | 0 .../cloud/vpcaccess/v1/package-info.java | 0 .../GrpcVpcAccessServiceCallableFactory.java | 0 .../v1/stub/GrpcVpcAccessServiceStub.java | 1 - .../v1/stub/VpcAccessServiceStub.java | 0 .../v1/stub/VpcAccessServiceStubSettings.java | 6 +- .../vpcaccess/v1/MockVpcAccessService.java | 0 .../v1/MockVpcAccessServiceImpl.java | 0 .../v1/VpcAccessServiceClientTest.java | 0 .../vpcaccess/v1/VpcAccessServiceGrpc.java | 721 +++++++++ .../vpcaccess/v1/VpcAccessServiceGrpc.java | 578 ------- .../v1/DeleteConnectorRequestOrBuilder.java | 29 - .../v1/GetConnectorRequestOrBuilder.java | 29 - .../cloud/vpcaccess/v1/VpcAccessProto.java | 213 --- .../google/cloud/vpcaccess/v1/Connector.java | 1332 ++++++++++------- .../cloud/vpcaccess/v1/ConnectorName.java | 0 .../vpcaccess/v1/ConnectorOrBuilder.java | 103 +- .../vpcaccess/v1/CreateConnectorRequest.java | 567 ++++--- .../v1/CreateConnectorRequestOrBuilder.java | 64 +- .../vpcaccess/v1/DeleteConnectorRequest.java | 339 +++-- .../v1/DeleteConnectorRequestOrBuilder.java | 54 + .../vpcaccess/v1/GetConnectorRequest.java | 339 +++-- .../v1/GetConnectorRequestOrBuilder.java | 54 + .../vpcaccess/v1/ListConnectorsRequest.java | 452 +++--- .../v1/ListConnectorsRequestOrBuilder.java | 47 +- .../vpcaccess/v1/ListConnectorsResponse.java | 460 +++--- .../v1/ListConnectorsResponseOrBuilder.java | 45 +- .../cloud/vpcaccess/v1/LocationName.java | 0 .../cloud/vpcaccess/v1/OperationMetadata.java | 674 +++++---- .../v1/OperationMetadataOrBuilder.java | 78 +- .../cloud/vpcaccess/v1/VpcAccessProto.java | 242 +++ .../cloud/vpcaccess/v1/vpc_access.proto | 0 34 files changed, 3896 insertions(+), 2554 deletions(-) rename {owl-bot-staging/v1/google-cloud-vpcaccess => google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClient.java (98%) rename {owl-bot-staging/v1/google-cloud-vpcaccess => google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java (96%) rename {owl-bot-staging/v1/google-cloud-vpcaccess => google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-vpcaccess => google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/package-info.java (100%) rename {owl-bot-staging/v1/google-cloud-vpcaccess => google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-vpcaccess => google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java (99%) rename {owl-bot-staging/v1/google-cloud-vpcaccess => google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStub.java (100%) rename {owl-bot-staging/v1/google-cloud-vpcaccess => google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java (98%) rename {owl-bot-staging/v1/google-cloud-vpcaccess => google-cloud-vpcaccess}/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessService.java (100%) rename {owl-bot-staging/v1/google-cloud-vpcaccess => google-cloud-vpcaccess}/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessServiceImpl.java (100%) rename {owl-bot-staging/v1/google-cloud-vpcaccess => google-cloud-vpcaccess}/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientTest.java (100%) create mode 100644 grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessProto.java rename {owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1 => proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1 => proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1 => proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1 => proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1 => proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequestOrBuilder.java (53%) rename {owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1 => proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequest.java (64%) create mode 100644 proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1 => proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequest.java (64%) create mode 100644 proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1 => proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1 => proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequestOrBuilder.java (50%) rename {owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1 => proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponse.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1 => proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponseOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1 => proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/LocationName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1 => proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadata.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1 => proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadataOrBuilder.java (65%) create mode 100644 proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessProto.java rename {owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1 => proto-google-cloud-vpcaccess-v1}/src/main/proto/google/cloud/vpcaccess/v1/vpc_access.proto (100%) diff --git a/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClient.java b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClient.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClient.java rename to google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClient.java index caf3acd4..1a50ff3c 100644 --- a/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClient.java +++ b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClient.java @@ -62,13 +62,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. *
* @@ -684,7 +684,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListConnectorsPagedResponse extends AbstractPagedListResponse< - ListConnectorsRequest, ListConnectorsResponse, Connector, ListConnectorsPage, + ListConnectorsRequest, + ListConnectorsResponse, + Connector, + ListConnectorsPage, ListConnectorsFixedSizeCollection> { public static ApiFuture createAsync( @@ -734,7 +737,10 @@ public ApiFuture createPageAsync( public static class ListConnectorsFixedSizeCollection extends AbstractFixedSizeCollection< - ListConnectorsRequest, ListConnectorsResponse, Connector, ListConnectorsPage, + ListConnectorsRequest, + ListConnectorsResponse, + Connector, + ListConnectorsPage, ListConnectorsFixedSizeCollection> { private ListConnectorsFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java similarity index 96% rename from owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java rename to google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java index 7c4cb400..8bf9ae56 100644 --- a/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java +++ b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.vpcaccess.v1.stub.VpcAccessServiceStubSettings; @@ -45,9 +44,9 @@ *

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

    - *
  • The default service address (vpcaccess.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 (vpcaccess.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/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/gapic_metadata.json b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/gapic_metadata.json rename to google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/package-info.java b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/package-info.java rename to google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceCallableFactory.java b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceCallableFactory.java rename to google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java rename to google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java index 3b7c0c97..1950c7d7 100644 --- a/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java +++ b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java @@ -39,7 +39,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStub.java b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStub.java rename to google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStub.java diff --git a/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java rename to google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java index bbb3ecf4..d97d6aaf 100644 --- a/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java +++ b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java @@ -69,9 +69,9 @@ *

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

    - *
  • The default service address (vpcaccess.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 (vpcaccess.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/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessService.java b/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessService.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessService.java rename to google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessService.java diff --git a/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessServiceImpl.java b/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessServiceImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessServiceImpl.java rename to google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessServiceImpl.java diff --git a/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientTest.java b/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientTest.java rename to google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientTest.java diff --git a/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java b/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java new file mode 100644 index 00000000..957f310d --- /dev/null +++ b/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java @@ -0,0 +1,721 @@ +/* + * 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.cloud.vpcaccess.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * Serverless VPC Access API allows users to create and manage connectors for
+ * App Engine, Cloud Functions and Cloud Run to have internal connections to
+ * Virtual Private Cloud networks.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/vpcaccess/v1/vpc_access.proto") +public final class VpcAccessServiceGrpc { + + private VpcAccessServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.vpcaccess.v1.VpcAccessService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vpcaccess.v1.CreateConnectorRequest, com.google.longrunning.Operation> + getCreateConnectorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConnector", + requestType = com.google.cloud.vpcaccess.v1.CreateConnectorRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vpcaccess.v1.CreateConnectorRequest, com.google.longrunning.Operation> + getCreateConnectorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vpcaccess.v1.CreateConnectorRequest, com.google.longrunning.Operation> + getCreateConnectorMethod; + if ((getCreateConnectorMethod = VpcAccessServiceGrpc.getCreateConnectorMethod) == null) { + synchronized (VpcAccessServiceGrpc.class) { + if ((getCreateConnectorMethod = VpcAccessServiceGrpc.getCreateConnectorMethod) == null) { + VpcAccessServiceGrpc.getCreateConnectorMethod = + getCreateConnectorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnector")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vpcaccess.v1.CreateConnectorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VpcAccessServiceMethodDescriptorSupplier("CreateConnector")) + .build(); + } + } + } + return getCreateConnectorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vpcaccess.v1.GetConnectorRequest, + com.google.cloud.vpcaccess.v1.Connector> + getGetConnectorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConnector", + requestType = com.google.cloud.vpcaccess.v1.GetConnectorRequest.class, + responseType = com.google.cloud.vpcaccess.v1.Connector.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vpcaccess.v1.GetConnectorRequest, + com.google.cloud.vpcaccess.v1.Connector> + getGetConnectorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vpcaccess.v1.GetConnectorRequest, + com.google.cloud.vpcaccess.v1.Connector> + getGetConnectorMethod; + if ((getGetConnectorMethod = VpcAccessServiceGrpc.getGetConnectorMethod) == null) { + synchronized (VpcAccessServiceGrpc.class) { + if ((getGetConnectorMethod = VpcAccessServiceGrpc.getGetConnectorMethod) == null) { + VpcAccessServiceGrpc.getGetConnectorMethod = + getGetConnectorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnector")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vpcaccess.v1.GetConnectorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vpcaccess.v1.Connector.getDefaultInstance())) + .setSchemaDescriptor( + new VpcAccessServiceMethodDescriptorSupplier("GetConnector")) + .build(); + } + } + } + return getGetConnectorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vpcaccess.v1.ListConnectorsRequest, + com.google.cloud.vpcaccess.v1.ListConnectorsResponse> + getListConnectorsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConnectors", + requestType = com.google.cloud.vpcaccess.v1.ListConnectorsRequest.class, + responseType = com.google.cloud.vpcaccess.v1.ListConnectorsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vpcaccess.v1.ListConnectorsRequest, + com.google.cloud.vpcaccess.v1.ListConnectorsResponse> + getListConnectorsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vpcaccess.v1.ListConnectorsRequest, + com.google.cloud.vpcaccess.v1.ListConnectorsResponse> + getListConnectorsMethod; + if ((getListConnectorsMethod = VpcAccessServiceGrpc.getListConnectorsMethod) == null) { + synchronized (VpcAccessServiceGrpc.class) { + if ((getListConnectorsMethod = VpcAccessServiceGrpc.getListConnectorsMethod) == null) { + VpcAccessServiceGrpc.getListConnectorsMethod = + getListConnectorsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnectors")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vpcaccess.v1.ListConnectorsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vpcaccess.v1.ListConnectorsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new VpcAccessServiceMethodDescriptorSupplier("ListConnectors")) + .build(); + } + } + } + return getListConnectorsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.vpcaccess.v1.DeleteConnectorRequest, com.google.longrunning.Operation> + getDeleteConnectorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConnector", + requestType = com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.vpcaccess.v1.DeleteConnectorRequest, com.google.longrunning.Operation> + getDeleteConnectorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.vpcaccess.v1.DeleteConnectorRequest, com.google.longrunning.Operation> + getDeleteConnectorMethod; + if ((getDeleteConnectorMethod = VpcAccessServiceGrpc.getDeleteConnectorMethod) == null) { + synchronized (VpcAccessServiceGrpc.class) { + if ((getDeleteConnectorMethod = VpcAccessServiceGrpc.getDeleteConnectorMethod) == null) { + VpcAccessServiceGrpc.getDeleteConnectorMethod = + getDeleteConnectorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnector")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.vpcaccess.v1.DeleteConnectorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VpcAccessServiceMethodDescriptorSupplier("DeleteConnector")) + .build(); + } + } + } + return getDeleteConnectorMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static VpcAccessServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VpcAccessServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VpcAccessServiceStub(channel, callOptions); + } + }; + return VpcAccessServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static VpcAccessServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VpcAccessServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VpcAccessServiceBlockingStub(channel, callOptions); + } + }; + return VpcAccessServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static VpcAccessServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VpcAccessServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VpcAccessServiceFutureStub(channel, callOptions); + } + }; + return VpcAccessServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Serverless VPC Access API allows users to create and manage connectors for
+   * App Engine, Cloud Functions and Cloud Run to have internal connections to
+   * Virtual Private Cloud networks.
+   * 
+ */ + public abstract static class VpcAccessServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a Serverless VPC Access connector, returns an operation.
+     * 
+ */ + public void createConnector( + com.google.cloud.vpcaccess.v1.CreateConnectorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateConnectorMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource
+     * does not exist.
+     * 
+ */ + public void getConnector( + com.google.cloud.vpcaccess.v1.GetConnectorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetConnectorMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Serverless VPC Access connectors.
+     * 
+ */ + public void listConnectors( + com.google.cloud.vpcaccess.v1.ListConnectorsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListConnectorsMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the
+     * resource does not exist.
+     * 
+ */ + public void deleteConnector( + com.google.cloud.vpcaccess.v1.DeleteConnectorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteConnectorMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateConnectorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vpcaccess.v1.CreateConnectorRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_CONNECTOR))) + .addMethod( + getGetConnectorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vpcaccess.v1.GetConnectorRequest, + com.google.cloud.vpcaccess.v1.Connector>(this, METHODID_GET_CONNECTOR))) + .addMethod( + getListConnectorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vpcaccess.v1.ListConnectorsRequest, + com.google.cloud.vpcaccess.v1.ListConnectorsResponse>( + this, METHODID_LIST_CONNECTORS))) + .addMethod( + getDeleteConnectorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.vpcaccess.v1.DeleteConnectorRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_CONNECTOR))) + .build(); + } + } + + /** + * + * + *
+   * Serverless VPC Access API allows users to create and manage connectors for
+   * App Engine, Cloud Functions and Cloud Run to have internal connections to
+   * Virtual Private Cloud networks.
+   * 
+ */ + public static final class VpcAccessServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private VpcAccessServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VpcAccessServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VpcAccessServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a Serverless VPC Access connector, returns an operation.
+     * 
+ */ + public void createConnector( + com.google.cloud.vpcaccess.v1.CreateConnectorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateConnectorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource
+     * does not exist.
+     * 
+ */ + public void getConnector( + com.google.cloud.vpcaccess.v1.GetConnectorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConnectorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists Serverless VPC Access connectors.
+     * 
+ */ + public void listConnectors( + com.google.cloud.vpcaccess.v1.ListConnectorsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConnectorsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the
+     * resource does not exist.
+     * 
+ */ + public void deleteConnector( + com.google.cloud.vpcaccess.v1.DeleteConnectorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConnectorMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Serverless VPC Access API allows users to create and manage connectors for
+   * App Engine, Cloud Functions and Cloud Run to have internal connections to
+   * Virtual Private Cloud networks.
+   * 
+ */ + public static final class VpcAccessServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private VpcAccessServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VpcAccessServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VpcAccessServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a Serverless VPC Access connector, returns an operation.
+     * 
+ */ + public com.google.longrunning.Operation createConnector( + com.google.cloud.vpcaccess.v1.CreateConnectorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateConnectorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource
+     * does not exist.
+     * 
+ */ + public com.google.cloud.vpcaccess.v1.Connector getConnector( + com.google.cloud.vpcaccess.v1.GetConnectorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConnectorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Serverless VPC Access connectors.
+     * 
+ */ + public com.google.cloud.vpcaccess.v1.ListConnectorsResponse listConnectors( + com.google.cloud.vpcaccess.v1.ListConnectorsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConnectorsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the
+     * resource does not exist.
+     * 
+ */ + public com.google.longrunning.Operation deleteConnector( + com.google.cloud.vpcaccess.v1.DeleteConnectorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConnectorMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Serverless VPC Access API allows users to create and manage connectors for
+   * App Engine, Cloud Functions and Cloud Run to have internal connections to
+   * Virtual Private Cloud networks.
+   * 
+ */ + public static final class VpcAccessServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private VpcAccessServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VpcAccessServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VpcAccessServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a Serverless VPC Access connector, returns an operation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createConnector(com.google.cloud.vpcaccess.v1.CreateConnectorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateConnectorMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource
+     * does not exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vpcaccess.v1.Connector> + getConnector(com.google.cloud.vpcaccess.v1.GetConnectorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConnectorMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Serverless VPC Access connectors.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.vpcaccess.v1.ListConnectorsResponse> + listConnectors(com.google.cloud.vpcaccess.v1.ListConnectorsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListConnectorsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the
+     * resource does not exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteConnector(com.google.cloud.vpcaccess.v1.DeleteConnectorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteConnectorMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_CONNECTOR = 0; + private static final int METHODID_GET_CONNECTOR = 1; + private static final int METHODID_LIST_CONNECTORS = 2; + private static final int METHODID_DELETE_CONNECTOR = 3; + + 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 VpcAccessServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(VpcAccessServiceImplBase 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_CONNECTOR: + serviceImpl.createConnector( + (com.google.cloud.vpcaccess.v1.CreateConnectorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CONNECTOR: + serviceImpl.getConnector( + (com.google.cloud.vpcaccess.v1.GetConnectorRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CONNECTORS: + serviceImpl.listConnectors( + (com.google.cloud.vpcaccess.v1.ListConnectorsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_CONNECTOR: + serviceImpl.deleteConnector( + (com.google.cloud.vpcaccess.v1.DeleteConnectorRequest) 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 VpcAccessServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + VpcAccessServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("VpcAccessService"); + } + } + + private static final class VpcAccessServiceFileDescriptorSupplier + extends VpcAccessServiceBaseDescriptorSupplier { + VpcAccessServiceFileDescriptorSupplier() {} + } + + private static final class VpcAccessServiceMethodDescriptorSupplier + extends VpcAccessServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + VpcAccessServiceMethodDescriptorSupplier(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 (VpcAccessServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new VpcAccessServiceFileDescriptorSupplier()) + .addMethod(getCreateConnectorMethod()) + .addMethod(getGetConnectorMethod()) + .addMethod(getListConnectorsMethod()) + .addMethod(getDeleteConnectorMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java deleted file mode 100644 index 90d0a72d..00000000 --- a/owl-bot-staging/v1/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java +++ /dev/null @@ -1,578 +0,0 @@ -package com.google.cloud.vpcaccess.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Serverless VPC Access API allows users to create and manage connectors for
- * App Engine, Cloud Functions and Cloud Run to have internal connections to
- * Virtual Private Cloud networks.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/vpcaccess/v1/vpc_access.proto") -public final class VpcAccessServiceGrpc { - - private VpcAccessServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.vpcaccess.v1.VpcAccessService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateConnectorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateConnector", - requestType = com.google.cloud.vpcaccess.v1.CreateConnectorRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateConnectorMethod() { - io.grpc.MethodDescriptor getCreateConnectorMethod; - if ((getCreateConnectorMethod = VpcAccessServiceGrpc.getCreateConnectorMethod) == null) { - synchronized (VpcAccessServiceGrpc.class) { - if ((getCreateConnectorMethod = VpcAccessServiceGrpc.getCreateConnectorMethod) == null) { - VpcAccessServiceGrpc.getCreateConnectorMethod = getCreateConnectorMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnector")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vpcaccess.v1.CreateConnectorRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new VpcAccessServiceMethodDescriptorSupplier("CreateConnector")) - .build(); - } - } - } - return getCreateConnectorMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetConnectorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConnector", - requestType = com.google.cloud.vpcaccess.v1.GetConnectorRequest.class, - responseType = com.google.cloud.vpcaccess.v1.Connector.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetConnectorMethod() { - io.grpc.MethodDescriptor getGetConnectorMethod; - if ((getGetConnectorMethod = VpcAccessServiceGrpc.getGetConnectorMethod) == null) { - synchronized (VpcAccessServiceGrpc.class) { - if ((getGetConnectorMethod = VpcAccessServiceGrpc.getGetConnectorMethod) == null) { - VpcAccessServiceGrpc.getGetConnectorMethod = getGetConnectorMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnector")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vpcaccess.v1.GetConnectorRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vpcaccess.v1.Connector.getDefaultInstance())) - .setSchemaDescriptor(new VpcAccessServiceMethodDescriptorSupplier("GetConnector")) - .build(); - } - } - } - return getGetConnectorMethod; - } - - private static volatile io.grpc.MethodDescriptor getListConnectorsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListConnectors", - requestType = com.google.cloud.vpcaccess.v1.ListConnectorsRequest.class, - responseType = com.google.cloud.vpcaccess.v1.ListConnectorsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListConnectorsMethod() { - io.grpc.MethodDescriptor getListConnectorsMethod; - if ((getListConnectorsMethod = VpcAccessServiceGrpc.getListConnectorsMethod) == null) { - synchronized (VpcAccessServiceGrpc.class) { - if ((getListConnectorsMethod = VpcAccessServiceGrpc.getListConnectorsMethod) == null) { - VpcAccessServiceGrpc.getListConnectorsMethod = getListConnectorsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnectors")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vpcaccess.v1.ListConnectorsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vpcaccess.v1.ListConnectorsResponse.getDefaultInstance())) - .setSchemaDescriptor(new VpcAccessServiceMethodDescriptorSupplier("ListConnectors")) - .build(); - } - } - } - return getListConnectorsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteConnectorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteConnector", - requestType = com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteConnectorMethod() { - io.grpc.MethodDescriptor getDeleteConnectorMethod; - if ((getDeleteConnectorMethod = VpcAccessServiceGrpc.getDeleteConnectorMethod) == null) { - synchronized (VpcAccessServiceGrpc.class) { - if ((getDeleteConnectorMethod = VpcAccessServiceGrpc.getDeleteConnectorMethod) == null) { - VpcAccessServiceGrpc.getDeleteConnectorMethod = getDeleteConnectorMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnector")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new VpcAccessServiceMethodDescriptorSupplier("DeleteConnector")) - .build(); - } - } - } - return getDeleteConnectorMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static VpcAccessServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public VpcAccessServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VpcAccessServiceStub(channel, callOptions); - } - }; - return VpcAccessServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static VpcAccessServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public VpcAccessServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VpcAccessServiceBlockingStub(channel, callOptions); - } - }; - return VpcAccessServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static VpcAccessServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public VpcAccessServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VpcAccessServiceFutureStub(channel, callOptions); - } - }; - return VpcAccessServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Serverless VPC Access API allows users to create and manage connectors for
-   * App Engine, Cloud Functions and Cloud Run to have internal connections to
-   * Virtual Private Cloud networks.
-   * 
- */ - public static abstract class VpcAccessServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a Serverless VPC Access connector, returns an operation.
-     * 
- */ - public void createConnector(com.google.cloud.vpcaccess.v1.CreateConnectorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateConnectorMethod(), responseObserver); - } - - /** - *
-     * Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource
-     * does not exist.
-     * 
- */ - public void getConnector(com.google.cloud.vpcaccess.v1.GetConnectorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConnectorMethod(), responseObserver); - } - - /** - *
-     * Lists Serverless VPC Access connectors.
-     * 
- */ - public void listConnectors(com.google.cloud.vpcaccess.v1.ListConnectorsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListConnectorsMethod(), responseObserver); - } - - /** - *
-     * Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the
-     * resource does not exist.
-     * 
- */ - public void deleteConnector(com.google.cloud.vpcaccess.v1.DeleteConnectorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteConnectorMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateConnectorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vpcaccess.v1.CreateConnectorRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_CONNECTOR))) - .addMethod( - getGetConnectorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vpcaccess.v1.GetConnectorRequest, - com.google.cloud.vpcaccess.v1.Connector>( - this, METHODID_GET_CONNECTOR))) - .addMethod( - getListConnectorsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vpcaccess.v1.ListConnectorsRequest, - com.google.cloud.vpcaccess.v1.ListConnectorsResponse>( - this, METHODID_LIST_CONNECTORS))) - .addMethod( - getDeleteConnectorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.vpcaccess.v1.DeleteConnectorRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_CONNECTOR))) - .build(); - } - } - - /** - *
-   * Serverless VPC Access API allows users to create and manage connectors for
-   * App Engine, Cloud Functions and Cloud Run to have internal connections to
-   * Virtual Private Cloud networks.
-   * 
- */ - public static final class VpcAccessServiceStub extends io.grpc.stub.AbstractAsyncStub { - private VpcAccessServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected VpcAccessServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VpcAccessServiceStub(channel, callOptions); - } - - /** - *
-     * Creates a Serverless VPC Access connector, returns an operation.
-     * 
- */ - public void createConnector(com.google.cloud.vpcaccess.v1.CreateConnectorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateConnectorMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource
-     * does not exist.
-     * 
- */ - public void getConnector(com.google.cloud.vpcaccess.v1.GetConnectorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConnectorMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists Serverless VPC Access connectors.
-     * 
- */ - public void listConnectors(com.google.cloud.vpcaccess.v1.ListConnectorsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListConnectorsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the
-     * resource does not exist.
-     * 
- */ - public void deleteConnector(com.google.cloud.vpcaccess.v1.DeleteConnectorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteConnectorMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Serverless VPC Access API allows users to create and manage connectors for
-   * App Engine, Cloud Functions and Cloud Run to have internal connections to
-   * Virtual Private Cloud networks.
-   * 
- */ - public static final class VpcAccessServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private VpcAccessServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected VpcAccessServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VpcAccessServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a Serverless VPC Access connector, returns an operation.
-     * 
- */ - public com.google.longrunning.Operation createConnector(com.google.cloud.vpcaccess.v1.CreateConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateConnectorMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource
-     * does not exist.
-     * 
- */ - public com.google.cloud.vpcaccess.v1.Connector getConnector(com.google.cloud.vpcaccess.v1.GetConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConnectorMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists Serverless VPC Access connectors.
-     * 
- */ - public com.google.cloud.vpcaccess.v1.ListConnectorsResponse listConnectors(com.google.cloud.vpcaccess.v1.ListConnectorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListConnectorsMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the
-     * resource does not exist.
-     * 
- */ - public com.google.longrunning.Operation deleteConnector(com.google.cloud.vpcaccess.v1.DeleteConnectorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteConnectorMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Serverless VPC Access API allows users to create and manage connectors for
-   * App Engine, Cloud Functions and Cloud Run to have internal connections to
-   * Virtual Private Cloud networks.
-   * 
- */ - public static final class VpcAccessServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private VpcAccessServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected VpcAccessServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new VpcAccessServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a Serverless VPC Access connector, returns an operation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createConnector( - com.google.cloud.vpcaccess.v1.CreateConnectorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateConnectorMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource
-     * does not exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getConnector( - com.google.cloud.vpcaccess.v1.GetConnectorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetConnectorMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists Serverless VPC Access connectors.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listConnectors( - com.google.cloud.vpcaccess.v1.ListConnectorsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListConnectorsMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the
-     * resource does not exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteConnector( - com.google.cloud.vpcaccess.v1.DeleteConnectorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteConnectorMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_CONNECTOR = 0; - private static final int METHODID_GET_CONNECTOR = 1; - private static final int METHODID_LIST_CONNECTORS = 2; - private static final int METHODID_DELETE_CONNECTOR = 3; - - 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 VpcAccessServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(VpcAccessServiceImplBase 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_CONNECTOR: - serviceImpl.createConnector((com.google.cloud.vpcaccess.v1.CreateConnectorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CONNECTOR: - serviceImpl.getConnector((com.google.cloud.vpcaccess.v1.GetConnectorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CONNECTORS: - serviceImpl.listConnectors((com.google.cloud.vpcaccess.v1.ListConnectorsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CONNECTOR: - serviceImpl.deleteConnector((com.google.cloud.vpcaccess.v1.DeleteConnectorRequest) 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 VpcAccessServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - VpcAccessServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("VpcAccessService"); - } - } - - private static final class VpcAccessServiceFileDescriptorSupplier - extends VpcAccessServiceBaseDescriptorSupplier { - VpcAccessServiceFileDescriptorSupplier() {} - } - - private static final class VpcAccessServiceMethodDescriptorSupplier - extends VpcAccessServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - VpcAccessServiceMethodDescriptorSupplier(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 (VpcAccessServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new VpcAccessServiceFileDescriptorSupplier()) - .addMethod(getCreateConnectorMethod()) - .addMethod(getGetConnectorMethod()) - .addMethod(getListConnectorsMethod()) - .addMethod(getDeleteConnectorMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequestOrBuilder.java deleted file mode 100644 index 37c0a067..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vpcaccess/v1/vpc_access.proto - -package com.google.cloud.vpcaccess.v1; - -public interface DeleteConnectorRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vpcaccess.v1.DeleteConnectorRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of a Serverless VPC Access connector to delete.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of a Serverless VPC Access connector to delete.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequestOrBuilder.java deleted file mode 100644 index 3bf08f45..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vpcaccess/v1/vpc_access.proto - -package com.google.cloud.vpcaccess.v1; - -public interface GetConnectorRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vpcaccess.v1.GetConnectorRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of a Serverless VPC Access connector to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of a Serverless VPC Access connector to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessProto.java b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessProto.java deleted file mode 100644 index 0d0d61b5..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessProto.java +++ /dev/null @@ -1,213 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vpcaccess/v1/vpc_access.proto - -package com.google.cloud.vpcaccess.v1; - -public final class VpcAccessProto { - private VpcAccessProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_Connector_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n*google/cloud/vpcaccess/v1/vpc_access.p" + - "roto\022\031google.cloud.vpcaccess.v1\032\034google/" + - "api/annotations.proto\032\027google/api/client" + - ".proto\032\037google/api/field_behavior.proto\032" + - "\031google/api/resource.proto\032#google/longr" + - "unning/operations.proto\032\037google/protobuf" + - "/timestamp.proto\"\204\004\n\tConnector\022\014\n\004name\030\001" + - " \001(\t\022\017\n\007network\030\002 \001(\t\022\025\n\rip_cidr_range\030\003" + - " \001(\t\022>\n\005state\030\004 \001(\0162*.google.cloud.vpcac" + - "cess.v1.Connector.StateB\003\340A\003\022\026\n\016min_thro" + - "ughput\030\005 \001(\005\022\026\n\016max_throughput\030\006 \001(\005\022\037\n\022" + - "connected_projects\030\007 \003(\tB\003\340A\003\022;\n\006subnet\030" + - "\010 \001(\0132+.google.cloud.vpcaccess.v1.Connec" + - "tor.Subnet\032*\n\006Subnet\022\014\n\004name\030\001 \001(\t\022\022\n\npr" + - "oject_id\030\002 \001(\t\"^\n\005State\022\025\n\021STATE_UNSPECI" + - "FIED\020\000\022\t\n\005READY\020\001\022\014\n\010CREATING\020\002\022\014\n\010DELET" + - "ING\020\003\022\t\n\005ERROR\020\004\022\014\n\010UPDATING\020\005:g\352Ad\n\"vpc" + - "access.googleapis.com/Connector\022>project" + - "s/{project}/locations/{location}/connect" + - "ors/{connector}\"\254\001\n\026CreateConnectorReque" + - "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.go" + - "ogleapis.com/Location\022\031\n\014connector_id\030\002 " + - "\001(\tB\003\340A\002\022<\n\tconnector\030\003 \001(\0132$.google.clo" + - "ud.vpcaccess.v1.ConnectorB\003\340A\002\"O\n\023GetCon" + - "nectorRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpc" + - "access.googleapis.com/Connector\"y\n\025ListC" + - "onnectorsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" + - "\n!locations.googleapis.com/Location\022\021\n\tp" + - "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\026Li" + - "stConnectorsResponse\0228\n\nconnectors\030\001 \003(\013" + - "2$.google.cloud.vpcaccess.v1.Connector\022\027" + - "\n\017next_page_token\030\002 \001(\t\"R\n\026DeleteConnect" + - "orRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpcacce" + - "ss.googleapis.com/Connector\"\315\001\n\021Operatio" + - "nMetadata\022\023\n\006method\030\001 \001(\tB\003\340A\003\0224\n\013create" + - "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + - "\003\340A\003\0221\n\010end_time\030\003 \001(\0132\032.google.protobuf" + - ".TimestampB\003\340A\003\022:\n\006target\030\005 \001(\tB*\340A\003\372A$\n" + - "\"vpcaccess.googleapis.com/Connector2\374\006\n\020" + - "VpcAccessService\022\350\001\n\017CreateConnector\0221.g" + - "oogle.cloud.vpcaccess.v1.CreateConnector" + - "Request\032\035.google.longrunning.Operation\"\202" + - "\001\202\323\344\223\002;\"./v1/{parent=projects/*/location" + - "s/*}/connectors:\tconnector\332A\035parent,conn" + - "ector_id,connector\312A\036\n\tConnector\022\021Operat" + - "ionMetadata\022\243\001\n\014GetConnector\022..google.cl" + - "oud.vpcaccess.v1.GetConnectorRequest\032$.g" + - "oogle.cloud.vpcaccess.v1.Connector\"=\202\323\344\223" + - "\0020\022./v1/{name=projects/*/locations/*/con" + - "nectors/*}\332A\004name\022\266\001\n\016ListConnectors\0220.g" + - "oogle.cloud.vpcaccess.v1.ListConnectorsR" + - "equest\0321.google.cloud.vpcaccess.v1.ListC" + - "onnectorsResponse\"?\202\323\344\223\0020\022./v1/{parent=p" + - "rojects/*/locations/*}/connectors\332A\006pare" + - "nt\022\317\001\n\017DeleteConnector\0221.google.cloud.vp" + - "caccess.v1.DeleteConnectorRequest\032\035.goog" + - "le.longrunning.Operation\"j\202\323\344\223\0020*./v1/{n" + - "ame=projects/*/locations/*/connectors/*}" + - "\332A\004name\312A*\n\025google.protobuf.Empty\022\021Opera" + - "tionMetadata\032L\312A\030vpcaccess.googleapis.co" + - "m\322A.https://www.googleapis.com/auth/clou" + - "d-platformB\314\001\n\035com.google.cloud.vpcacces" + - "s.v1B\016VpcAccessProtoP\001ZBgoogle.golang.or" + - "g/genproto/googleapis/cloud/vpcaccess/v1" + - ";vpcaccess\252\002\031Google.Cloud.VpcAccess.V1\312\002" + - "\031Google\\Cloud\\VpcAccess\\V1\352\002\034Google::Clo" + - "ud::VpcAccess::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.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_vpcaccess_v1_Connector_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_Connector_descriptor, - new java.lang.String[] { "Name", "Network", "IpCidrRange", "State", "MinThroughput", "MaxThroughput", "ConnectedProjects", "Subnet", }); - internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor = - internal_static_google_cloud_vpcaccess_v1_Connector_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor, - new java.lang.String[] { "Name", "ProjectId", }); - internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor, - new java.lang.String[] { "Parent", "ConnectorId", "Connector", }); - internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor, - new java.lang.String[] { "Connectors", "NextPageToken", }); - internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor, - new java.lang.String[] { "Method", "CreateTime", "EndTime", "Target", }); - 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); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java rename to proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java index 80e0a64c..8d8f29b2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java +++ b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java @@ -1,24 +1,42 @@ +/* + * 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/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; /** + * + * *
  * Definition of a Serverless VPC Access connector.
  * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.Connector} */ -public final class Connector extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Connector extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vpcaccess.v1.Connector) ConnectorOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Connector.newBuilder() to construct. private Connector(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Connector() { name_ = ""; network_ = ""; @@ -29,16 +47,15 @@ private Connector() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Connector(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Connector( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,76 +75,83 @@ private Connector( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - network_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - ipCidrRange_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - state_ = rawValue; - break; - } - case 40: { + network_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - minThroughput_ = input.readInt32(); - break; - } - case 48: { + ipCidrRange_ = s; + break; + } + case 32: + { + int rawValue = input.readEnum(); - maxThroughput_ = input.readInt32(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - connectedProjects_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + state_ = rawValue; + break; } - connectedProjects_.add(s); - break; - } - case 66: { - com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder subBuilder = null; - if (subnet_ != null) { - subBuilder = subnet_.toBuilder(); + case 40: + { + minThroughput_ = input.readInt32(); + break; + } + case 48: + { + maxThroughput_ = input.readInt32(); + break; } - subnet_ = input.readMessage(com.google.cloud.vpcaccess.v1.Connector.Subnet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(subnet_); - subnet_ = subBuilder.buildPartial(); + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + connectedProjects_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + connectedProjects_.add(s); + break; } + case 66: + { + com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder subBuilder = null; + if (subnet_ != null) { + subBuilder = subnet_.toBuilder(); + } + subnet_ = + input.readMessage( + com.google.cloud.vpcaccess.v1.Connector.Subnet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(subnet_); + subnet_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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)) { connectedProjects_ = connectedProjects_.getUnmodifiableView(); @@ -136,29 +160,35 @@ private Connector( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_Connector_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_Connector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.Connector.class, com.google.cloud.vpcaccess.v1.Connector.Builder.class); + com.google.cloud.vpcaccess.v1.Connector.class, + com.google.cloud.vpcaccess.v1.Connector.Builder.class); } /** + * + * *
    * State of a connector.
    * 
* * Protobuf enum {@code google.cloud.vpcaccess.v1.Connector.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Invalid state.
      * 
@@ -167,6 +197,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Connector is deployed and ready to receive traffic.
      * 
@@ -175,6 +207,8 @@ public enum State */ READY(1), /** + * + * *
      * An Insert operation is in progress. Transient condition.
      * 
@@ -183,6 +217,8 @@ public enum State */ CREATING(2), /** + * + * *
      * A Delete operation is in progress. Transient condition.
      * 
@@ -191,6 +227,8 @@ public enum State */ DELETING(3), /** + * + * *
      * Connector is in a bad state, manual deletion recommended.
      * 
@@ -199,6 +237,8 @@ public enum State */ ERROR(4), /** + * + * *
      * The connector is being updated.
      * 
@@ -210,6 +250,8 @@ public enum State ; /** + * + * *
      * Invalid state.
      * 
@@ -218,6 +260,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Connector is deployed and ready to receive traffic.
      * 
@@ -226,6 +270,8 @@ public enum State */ public static final int READY_VALUE = 1; /** + * + * *
      * An Insert operation is in progress. Transient condition.
      * 
@@ -234,6 +280,8 @@ public enum State */ public static final int CREATING_VALUE = 2; /** + * + * *
      * A Delete operation is in progress. Transient condition.
      * 
@@ -242,6 +290,8 @@ public enum State */ public static final int DELETING_VALUE = 3; /** + * + * *
      * Connector is in a bad state, manual deletion recommended.
      * 
@@ -250,6 +300,8 @@ public enum State */ public static final int ERROR_VALUE = 4; /** + * + * *
      * The connector is being updated.
      * 
@@ -258,7 +310,6 @@ public enum State */ public static final int UPDATING_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -283,52 +334,55 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return READY; - case 2: return CREATING; - case 3: return DELETING; - case 4: return ERROR; - case 5: return UPDATING; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return STATE_UNSPECIFIED; + case 1: + return READY; + case 2: + return CREATING; + case 3: + return DELETING; + case 4: + return ERROR; + case 5: + return UPDATING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.vpcaccess.v1.Connector.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -345,11 +399,14 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.vpcaccess.v1.Connector.State) } - public interface SubnetOrBuilder extends + public interface SubnetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vpcaccess.v1.Connector.Subnet) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Subnet name (relative, not fully qualified).
      * E.g. if the full subnet selfLink is
@@ -358,10 +415,13 @@ public interface SubnetOrBuilder extends
      * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * Subnet name (relative, not fully qualified).
      * E.g. if the full subnet selfLink is
@@ -370,12 +430,14 @@ public interface SubnetOrBuilder extends
      * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
      * Project in which the subnet exists.
      * If not set, this project is assumed to be the project for which
@@ -383,10 +445,13 @@ public interface SubnetOrBuilder extends
      * 
* * string project_id = 2; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
      * Project in which the subnet exists.
      * If not set, this project is assumed to be the project for which
@@ -394,27 +459,30 @@ public interface SubnetOrBuilder extends
      * 
* * string project_id = 2; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); } /** + * + * *
    * The subnet in which to house the connector
    * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.Connector.Subnet} */ - public static final class Subnet extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Subnet extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vpcaccess.v1.Connector.Subnet) SubnetOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Subnet.newBuilder() to construct. private Subnet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Subnet() { name_ = ""; projectId_ = ""; @@ -422,16 +490,15 @@ private Subnet() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Subnet(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Subnet( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -450,53 +517,59 @@ private Subnet( 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(); - projectId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + projectId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.Connector.Subnet.class, com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder.class); + com.google.cloud.vpcaccess.v1.Connector.Subnet.class, + com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
      * Subnet name (relative, not fully qualified).
      * E.g. if the full subnet selfLink is
@@ -505,6 +578,7 @@ private Subnet(
      * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -513,14 +587,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * Subnet name (relative, not fully qualified).
      * E.g. if the full subnet selfLink is
@@ -529,16 +604,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -549,6 +623,8 @@ public java.lang.String getName() { public static final int PROJECT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object projectId_; /** + * + * *
      * Project in which the subnet exists.
      * If not set, this project is assumed to be the project for which
@@ -556,6 +632,7 @@ public java.lang.String getName() {
      * 
* * string project_id = 2; + * * @return The projectId. */ @java.lang.Override @@ -564,14 +641,15 @@ public java.lang.String getProjectId() { 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(); projectId_ = s; return s; } } /** + * + * *
      * Project in which the subnet exists.
      * If not set, this project is assumed to be the project for which
@@ -579,16 +657,15 @@ public java.lang.String getProjectId() {
      * 
* * string project_id = 2; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; 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); projectId_ = b; return b; } else { @@ -597,6 +674,7 @@ public java.lang.String getProjectId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -608,8 +686,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -639,17 +716,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vpcaccess.v1.Connector.Subnet)) { return super.equals(obj); } - com.google.cloud.vpcaccess.v1.Connector.Subnet other = (com.google.cloud.vpcaccess.v1.Connector.Subnet) obj; + com.google.cloud.vpcaccess.v1.Connector.Subnet other = + (com.google.cloud.vpcaccess.v1.Connector.Subnet) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getProjectId() - .equals(other.getProjectId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -670,88 +746,94 @@ public int hashCode() { return hash; } - public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vpcaccess.v1.Connector.Subnet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vpcaccess.v1.Connector.Subnet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -761,27 +843,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The subnet in which to house the connector
      * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.Connector.Subnet} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vpcaccess.v1.Connector.Subnet) com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.Connector.Subnet.class, com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder.class); + com.google.cloud.vpcaccess.v1.Connector.Subnet.class, + com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder.class); } // Construct using com.google.cloud.vpcaccess.v1.Connector.Subnet.newBuilder() @@ -789,16 +876,15 @@ 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(); @@ -810,9 +896,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor; } @java.lang.Override @@ -831,7 +917,8 @@ public com.google.cloud.vpcaccess.v1.Connector.Subnet build() { @java.lang.Override public com.google.cloud.vpcaccess.v1.Connector.Subnet buildPartial() { - com.google.cloud.vpcaccess.v1.Connector.Subnet result = new com.google.cloud.vpcaccess.v1.Connector.Subnet(this); + com.google.cloud.vpcaccess.v1.Connector.Subnet result = + new com.google.cloud.vpcaccess.v1.Connector.Subnet(this); result.name_ = name_; result.projectId_ = projectId_; onBuilt(); @@ -842,38 +929,41 @@ public com.google.cloud.vpcaccess.v1.Connector.Subnet 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.cloud.vpcaccess.v1.Connector.Subnet) { - return mergeFrom((com.google.cloud.vpcaccess.v1.Connector.Subnet)other); + return mergeFrom((com.google.cloud.vpcaccess.v1.Connector.Subnet) other); } else { super.mergeFrom(other); return this; @@ -881,7 +971,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vpcaccess.v1.Connector.Subnet other) { - if (other == com.google.cloud.vpcaccess.v1.Connector.Subnet.getDefaultInstance()) return this; + if (other == com.google.cloud.vpcaccess.v1.Connector.Subnet.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -921,6 +1012,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -929,13 +1022,13 @@ public Builder mergeFrom(
        * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -944,6 +1037,8 @@ public java.lang.String getName() { } } /** + * + * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -952,15 +1047,14 @@ public java.lang.String getName() {
        * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -968,6 +1062,8 @@ public java.lang.String getName() { } } /** + * + * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -976,20 +1072,22 @@ public java.lang.String getName() {
        * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -998,15 +1096,18 @@ public Builder setName(
        * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -1015,16 +1116,16 @@ public Builder clearName() {
        * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + 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; @@ -1032,6 +1133,8 @@ public Builder setNameBytes( private java.lang.Object projectId_ = ""; /** + * + * *
        * Project in which the subnet exists.
        * If not set, this project is assumed to be the project for which
@@ -1039,13 +1142,13 @@ public Builder setNameBytes(
        * 
* * string project_id = 2; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; 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(); projectId_ = s; return s; @@ -1054,6 +1157,8 @@ public java.lang.String getProjectId() { } } /** + * + * *
        * Project in which the subnet exists.
        * If not set, this project is assumed to be the project for which
@@ -1061,15 +1166,14 @@ public java.lang.String getProjectId() {
        * 
* * string project_id = 2; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; 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); projectId_ = b; return b; } else { @@ -1077,6 +1181,8 @@ public java.lang.String getProjectId() { } } /** + * + * *
        * Project in which the subnet exists.
        * If not set, this project is assumed to be the project for which
@@ -1084,20 +1190,22 @@ public java.lang.String getProjectId() {
        * 
* * string project_id = 2; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
        * Project in which the subnet exists.
        * If not set, this project is assumed to be the project for which
@@ -1105,15 +1213,18 @@ public Builder setProjectId(
        * 
* * string project_id = 2; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
        * Project in which the subnet exists.
        * If not set, this project is assumed to be the project for which
@@ -1121,20 +1232,21 @@ public Builder clearProjectId() {
        * 
* * string project_id = 2; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1147,12 +1259,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vpcaccess.v1.Connector.Subnet) } // @@protoc_insertion_point(class_scope:google.cloud.vpcaccess.v1.Connector.Subnet) private static final com.google.cloud.vpcaccess.v1.Connector.Subnet DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vpcaccess.v1.Connector.Subnet(); } @@ -1161,16 +1273,16 @@ public static com.google.cloud.vpcaccess.v1.Connector.Subnet getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Subnet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Subnet(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Subnet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Subnet(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1185,17 +1297,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vpcaccess.v1.Connector.Subnet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name in the format `projects/*/locations/*/connectors/*`.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -1204,29 +1318,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 resource name in the format `projects/*/locations/*/connectors/*`.
    * 
* * 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 { @@ -1237,11 +1351,14 @@ public java.lang.String getName() { public static final int NETWORK_FIELD_NUMBER = 2; private volatile java.lang.Object network_; /** + * + * *
    * Name of a VPC network.
    * 
* * string network = 2; + * * @return The network. */ @java.lang.Override @@ -1250,29 +1367,29 @@ public java.lang.String getNetwork() { 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(); network_ = s; return s; } } /** + * + * *
    * Name of a VPC network.
    * 
* * string network = 2; + * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; 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); network_ = b; return b; } else { @@ -1283,12 +1400,15 @@ public java.lang.String getNetwork() { public static final int IP_CIDR_RANGE_FIELD_NUMBER = 3; private volatile java.lang.Object ipCidrRange_; /** + * + * *
    * The range of internal addresses that follows RFC 4632 notation.
    * Example: `10.132.0.0/28`.
    * 
* * string ip_cidr_range = 3; + * * @return The ipCidrRange. */ @java.lang.Override @@ -1297,30 +1417,30 @@ public java.lang.String getIpCidrRange() { 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(); ipCidrRange_ = s; return s; } } /** + * + * *
    * The range of internal addresses that follows RFC 4632 notation.
    * Example: `10.132.0.0/28`.
    * 
* * string ip_cidr_range = 3; + * * @return The bytes for ipCidrRange. */ @java.lang.Override - public com.google.protobuf.ByteString - getIpCidrRangeBytes() { + public com.google.protobuf.ByteString getIpCidrRangeBytes() { java.lang.Object ref = ipCidrRange_; 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); ipCidrRange_ = b; return b; } else { @@ -1331,38 +1451,54 @@ public java.lang.String getIpCidrRange() { public static final int STATE_FIELD_NUMBER = 4; private int state_; /** + * + * *
    * Output only. State of the VPC access connector.
    * 
* - * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. State of the VPC access connector.
    * 
* - * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.vpcaccess.v1.Connector.State getState() { + @java.lang.Override + public com.google.cloud.vpcaccess.v1.Connector.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vpcaccess.v1.Connector.State result = com.google.cloud.vpcaccess.v1.Connector.State.valueOf(state_); + com.google.cloud.vpcaccess.v1.Connector.State result = + com.google.cloud.vpcaccess.v1.Connector.State.valueOf(state_); return result == null ? com.google.cloud.vpcaccess.v1.Connector.State.UNRECOGNIZED : result; } public static final int MIN_THROUGHPUT_FIELD_NUMBER = 5; private int minThroughput_; /** + * + * *
    * Minimum throughput of the connector in Mbps. Default and min is 200.
    * 
* * int32 min_throughput = 5; + * * @return The minThroughput. */ @java.lang.Override @@ -1373,11 +1509,14 @@ public int getMinThroughput() { public static final int MAX_THROUGHPUT_FIELD_NUMBER = 6; private int maxThroughput_; /** + * + * *
    * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
    * 
* * int32 max_throughput = 6; + * * @return The maxThroughput. */ @java.lang.Override @@ -1388,34 +1527,45 @@ public int getMaxThroughput() { public static final int CONNECTED_PROJECTS_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList connectedProjects_; /** + * + * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the connectedProjects. */ - public com.google.protobuf.ProtocolStringList - getConnectedProjectsList() { + public com.google.protobuf.ProtocolStringList getConnectedProjectsList() { return connectedProjects_; } /** + * + * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of connectedProjects. */ public int getConnectedProjectsCount() { return connectedProjects_.size(); } /** + * + * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The connectedProjects at the given index. */ @@ -1423,27 +1573,33 @@ public java.lang.String getConnectedProjects(int index) { return connectedProjects_.get(index); } /** + * + * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The bytes of the connectedProjects at the given index. */ - public com.google.protobuf.ByteString - getConnectedProjectsBytes(int index) { + public com.google.protobuf.ByteString getConnectedProjectsBytes(int index) { return connectedProjects_.getByteString(index); } public static final int SUBNET_FIELD_NUMBER = 8; private com.google.cloud.vpcaccess.v1.Connector.Subnet subnet_; /** + * + * *
    * The subnet in which to house the VPC Access Connector.
    * 
* * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; + * * @return Whether the subnet field is set. */ @java.lang.Override @@ -1451,18 +1607,25 @@ public boolean hasSubnet() { return subnet_ != null; } /** + * + * *
    * The subnet in which to house the VPC Access Connector.
    * 
* * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; + * * @return The subnet. */ @java.lang.Override public com.google.cloud.vpcaccess.v1.Connector.Subnet getSubnet() { - return subnet_ == null ? com.google.cloud.vpcaccess.v1.Connector.Subnet.getDefaultInstance() : subnet_; + return subnet_ == null + ? com.google.cloud.vpcaccess.v1.Connector.Subnet.getDefaultInstance() + : subnet_; } /** + * + * *
    * The subnet in which to house the VPC Access Connector.
    * 
@@ -1475,6 +1638,7 @@ public com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder getSubnetOrBuilde } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1486,8 +1650,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1531,16 +1694,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ipCidrRange_); } if (state_ != com.google.cloud.vpcaccess.v1.Connector.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); } if (minThroughput_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, minThroughput_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, minThroughput_); } if (maxThroughput_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, maxThroughput_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, maxThroughput_); } { int dataSize = 0; @@ -1551,8 +1711,7 @@ public int getSerializedSize() { size += 1 * getConnectedProjectsList().size(); } if (subnet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getSubnet()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSubnet()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1562,30 +1721,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vpcaccess.v1.Connector)) { return super.equals(obj); } com.google.cloud.vpcaccess.v1.Connector other = (com.google.cloud.vpcaccess.v1.Connector) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getNetwork() - .equals(other.getNetwork())) return false; - if (!getIpCidrRange() - .equals(other.getIpCidrRange())) return false; + if (!getName().equals(other.getName())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getIpCidrRange().equals(other.getIpCidrRange())) return false; if (state_ != other.state_) return false; - if (getMinThroughput() - != other.getMinThroughput()) return false; - if (getMaxThroughput() - != other.getMaxThroughput()) return false; - if (!getConnectedProjectsList() - .equals(other.getConnectedProjectsList())) return false; + if (getMinThroughput() != other.getMinThroughput()) return false; + if (getMaxThroughput() != other.getMaxThroughput()) return false; + if (!getConnectedProjectsList().equals(other.getConnectedProjectsList())) return false; if (hasSubnet() != other.hasSubnet()) return false; if (hasSubnet()) { - if (!getSubnet() - .equals(other.getSubnet())) return false; + if (!getSubnet().equals(other.getSubnet())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1623,118 +1775,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vpcaccess.v1.Connector parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vpcaccess.v1.Connector parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vpcaccess.v1.Connector parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vpcaccess.v1.Connector parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vpcaccess.v1.Connector parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vpcaccess.v1.Connector parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vpcaccess.v1.Connector parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vpcaccess.v1.Connector parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.Connector parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vpcaccess.v1.Connector parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vpcaccess.v1.Connector parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vpcaccess.v1.Connector parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vpcaccess.v1.Connector parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vpcaccess.v1.Connector prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Definition of a Serverless VPC Access connector.
    * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.Connector} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vpcaccess.v1.Connector) com.google.cloud.vpcaccess.v1.ConnectorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_Connector_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_Connector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.Connector.class, com.google.cloud.vpcaccess.v1.Connector.Builder.class); + com.google.cloud.vpcaccess.v1.Connector.class, + com.google.cloud.vpcaccess.v1.Connector.Builder.class); } // Construct using com.google.cloud.vpcaccess.v1.Connector.newBuilder() @@ -1742,16 +1903,15 @@ 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(); @@ -1779,9 +1939,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_Connector_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_Connector_descriptor; } @java.lang.Override @@ -1800,7 +1960,8 @@ public com.google.cloud.vpcaccess.v1.Connector build() { @java.lang.Override public com.google.cloud.vpcaccess.v1.Connector buildPartial() { - com.google.cloud.vpcaccess.v1.Connector result = new com.google.cloud.vpcaccess.v1.Connector(this); + com.google.cloud.vpcaccess.v1.Connector result = + new com.google.cloud.vpcaccess.v1.Connector(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.network_ = network_; @@ -1826,38 +1987,39 @@ public com.google.cloud.vpcaccess.v1.Connector buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vpcaccess.v1.Connector) { - return mergeFrom((com.google.cloud.vpcaccess.v1.Connector)other); + return mergeFrom((com.google.cloud.vpcaccess.v1.Connector) other); } else { super.mergeFrom(other); return this; @@ -1928,22 +2090,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The resource name in the format `projects/*/locations/*/connectors/*`.
      * 
* * 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; @@ -1952,20 +2117,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name in the format `projects/*/locations/*/connectors/*`.
      * 
* * 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 { @@ -1973,54 +2139,61 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name in the format `projects/*/locations/*/connectors/*`.
      * 
* * 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 resource name in the format `projects/*/locations/*/connectors/*`.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name in the format `projects/*/locations/*/connectors/*`.
      * 
* * 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; @@ -2028,18 +2201,20 @@ public Builder setNameBytes( private java.lang.Object network_ = ""; /** + * + * *
      * Name of a VPC network.
      * 
* * string network = 2; + * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; 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(); network_ = s; return s; @@ -2048,20 +2223,21 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * Name of a VPC network.
      * 
* * string network = 2; + * * @return The bytes for network. */ - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; 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); network_ = b; return b; } else { @@ -2069,54 +2245,61 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * Name of a VPC network.
      * 
* * string network = 2; + * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork( - java.lang.String value) { + public Builder setNetwork(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** + * + * *
      * Name of a VPC network.
      * 
* * string network = 2; + * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** + * + * *
      * Name of a VPC network.
      * 
* * string network = 2; + * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; @@ -2124,19 +2307,21 @@ public Builder setNetworkBytes( private java.lang.Object ipCidrRange_ = ""; /** + * + * *
      * The range of internal addresses that follows RFC 4632 notation.
      * Example: `10.132.0.0/28`.
      * 
* * string ip_cidr_range = 3; + * * @return The ipCidrRange. */ public java.lang.String getIpCidrRange() { java.lang.Object ref = ipCidrRange_; 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(); ipCidrRange_ = s; return s; @@ -2145,21 +2330,22 @@ public java.lang.String getIpCidrRange() { } } /** + * + * *
      * The range of internal addresses that follows RFC 4632 notation.
      * Example: `10.132.0.0/28`.
      * 
* * string ip_cidr_range = 3; + * * @return The bytes for ipCidrRange. */ - public com.google.protobuf.ByteString - getIpCidrRangeBytes() { + public com.google.protobuf.ByteString getIpCidrRangeBytes() { java.lang.Object ref = ipCidrRange_; 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); ipCidrRange_ = b; return b; } else { @@ -2167,57 +2353,64 @@ public java.lang.String getIpCidrRange() { } } /** + * + * *
      * The range of internal addresses that follows RFC 4632 notation.
      * Example: `10.132.0.0/28`.
      * 
* * string ip_cidr_range = 3; + * * @param value The ipCidrRange to set. * @return This builder for chaining. */ - public Builder setIpCidrRange( - java.lang.String value) { + public Builder setIpCidrRange(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ipCidrRange_ = value; onChanged(); return this; } /** + * + * *
      * The range of internal addresses that follows RFC 4632 notation.
      * Example: `10.132.0.0/28`.
      * 
* * string ip_cidr_range = 3; + * * @return This builder for chaining. */ public Builder clearIpCidrRange() { - + ipCidrRange_ = getDefaultInstance().getIpCidrRange(); onChanged(); return this; } /** + * + * *
      * The range of internal addresses that follows RFC 4632 notation.
      * Example: `10.132.0.0/28`.
      * 
* * string ip_cidr_range = 3; + * * @param value The bytes for ipCidrRange to set. * @return This builder for chaining. */ - public Builder setIpCidrRangeBytes( - com.google.protobuf.ByteString value) { + public Builder setIpCidrRangeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipCidrRange_ = value; onChanged(); return this; @@ -2225,51 +2418,73 @@ public Builder setIpCidrRangeBytes( private int state_ = 0; /** + * + * *
      * Output only. State of the VPC access connector.
      * 
* - * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. State of the VPC access connector.
      * 
* - * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Output only. State of the VPC access connector.
      * 
* - * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.vpcaccess.v1.Connector.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.vpcaccess.v1.Connector.State result = com.google.cloud.vpcaccess.v1.Connector.State.valueOf(state_); + com.google.cloud.vpcaccess.v1.Connector.State result = + com.google.cloud.vpcaccess.v1.Connector.State.valueOf(state_); return result == null ? com.google.cloud.vpcaccess.v1.Connector.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. State of the VPC access connector.
      * 
* - * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2277,33 +2492,41 @@ public Builder setState(com.google.cloud.vpcaccess.v1.Connector.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. State of the VPC access connector.
      * 
* - * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private int minThroughput_ ; + private int minThroughput_; /** + * + * *
      * Minimum throughput of the connector in Mbps. Default and min is 200.
      * 
* * int32 min_throughput = 5; + * * @return The minThroughput. */ @java.lang.Override @@ -2311,42 +2534,51 @@ public int getMinThroughput() { return minThroughput_; } /** + * + * *
      * Minimum throughput of the connector in Mbps. Default and min is 200.
      * 
* * int32 min_throughput = 5; + * * @param value The minThroughput to set. * @return This builder for chaining. */ public Builder setMinThroughput(int value) { - + minThroughput_ = value; onChanged(); return this; } /** + * + * *
      * Minimum throughput of the connector in Mbps. Default and min is 200.
      * 
* * int32 min_throughput = 5; + * * @return This builder for chaining. */ public Builder clearMinThroughput() { - + minThroughput_ = 0; onChanged(); return this; } - private int maxThroughput_ ; + private int maxThroughput_; /** + * + * *
      * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
      * 
* * int32 max_throughput = 6; + * * @return The maxThroughput. */ @java.lang.Override @@ -2354,71 +2586,90 @@ public int getMaxThroughput() { return maxThroughput_; } /** + * + * *
      * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
      * 
* * int32 max_throughput = 6; + * * @param value The maxThroughput to set. * @return This builder for chaining. */ public Builder setMaxThroughput(int value) { - + maxThroughput_ = value; onChanged(); return this; } /** + * + * *
      * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
      * 
* * int32 max_throughput = 6; + * * @return This builder for chaining. */ public Builder clearMaxThroughput() { - + maxThroughput_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList connectedProjects_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList connectedProjects_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureConnectedProjectsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { connectedProjects_ = new com.google.protobuf.LazyStringArrayList(connectedProjects_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the connectedProjects. */ - public com.google.protobuf.ProtocolStringList - getConnectedProjectsList() { + public com.google.protobuf.ProtocolStringList getConnectedProjectsList() { return connectedProjects_.getUnmodifiableView(); } /** + * + * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of connectedProjects. */ public int getConnectedProjectsCount() { return connectedProjects_.size(); } /** + * + * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The connectedProjects at the given index. */ @@ -2426,80 +2677,95 @@ public java.lang.String getConnectedProjects(int index) { return connectedProjects_.get(index); } /** + * + * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The bytes of the connectedProjects at the given index. */ - public com.google.protobuf.ByteString - getConnectedProjectsBytes(int index) { + public com.google.protobuf.ByteString getConnectedProjectsBytes(int index) { return connectedProjects_.getByteString(index); } /** + * + * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index to set the value at. * @param value The connectedProjects to set. * @return This builder for chaining. */ - public Builder setConnectedProjects( - int index, java.lang.String value) { + public Builder setConnectedProjects(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureConnectedProjectsIsMutable(); + throw new NullPointerException(); + } + ensureConnectedProjectsIsMutable(); connectedProjects_.set(index, value); onChanged(); return this; } /** + * + * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The connectedProjects to add. * @return This builder for chaining. */ - public Builder addConnectedProjects( - java.lang.String value) { + public Builder addConnectedProjects(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureConnectedProjectsIsMutable(); + throw new NullPointerException(); + } + ensureConnectedProjectsIsMutable(); connectedProjects_.add(value); onChanged(); return this; } /** + * + * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param values The connectedProjects to add. * @return This builder for chaining. */ - public Builder addAllConnectedProjects( - java.lang.Iterable values) { + public Builder addAllConnectedProjects(java.lang.Iterable values) { ensureConnectedProjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, connectedProjects_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connectedProjects_); onChanged(); return this; } /** + * + * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearConnectedProjects() { @@ -2509,20 +2775,23 @@ public Builder clearConnectedProjects() { return this; } /** + * + * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The bytes of the connectedProjects to add. * @return This builder for chaining. */ - public Builder addConnectedProjectsBytes( - com.google.protobuf.ByteString value) { + public Builder addConnectedProjectsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureConnectedProjectsIsMutable(); connectedProjects_.add(value); onChanged(); @@ -2531,34 +2800,47 @@ public Builder addConnectedProjectsBytes( private com.google.cloud.vpcaccess.v1.Connector.Subnet subnet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vpcaccess.v1.Connector.Subnet, com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder> subnetBuilder_; + com.google.cloud.vpcaccess.v1.Connector.Subnet, + com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, + com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder> + subnetBuilder_; /** + * + * *
      * The subnet in which to house the VPC Access Connector.
      * 
* * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; + * * @return Whether the subnet field is set. */ public boolean hasSubnet() { return subnetBuilder_ != null || subnet_ != null; } /** + * + * *
      * The subnet in which to house the VPC Access Connector.
      * 
* * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; + * * @return The subnet. */ public com.google.cloud.vpcaccess.v1.Connector.Subnet getSubnet() { if (subnetBuilder_ == null) { - return subnet_ == null ? com.google.cloud.vpcaccess.v1.Connector.Subnet.getDefaultInstance() : subnet_; + return subnet_ == null + ? com.google.cloud.vpcaccess.v1.Connector.Subnet.getDefaultInstance() + : subnet_; } else { return subnetBuilder_.getMessage(); } } /** + * + * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2579,6 +2861,8 @@ public Builder setSubnet(com.google.cloud.vpcaccess.v1.Connector.Subnet value) { return this; } /** + * + * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2597,6 +2881,8 @@ public Builder setSubnet( return this; } /** + * + * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2607,7 +2893,9 @@ public Builder mergeSubnet(com.google.cloud.vpcaccess.v1.Connector.Subnet value) if (subnetBuilder_ == null) { if (subnet_ != null) { subnet_ = - com.google.cloud.vpcaccess.v1.Connector.Subnet.newBuilder(subnet_).mergeFrom(value).buildPartial(); + com.google.cloud.vpcaccess.v1.Connector.Subnet.newBuilder(subnet_) + .mergeFrom(value) + .buildPartial(); } else { subnet_ = value; } @@ -2619,6 +2907,8 @@ public Builder mergeSubnet(com.google.cloud.vpcaccess.v1.Connector.Subnet value) return this; } /** + * + * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2637,6 +2927,8 @@ public Builder clearSubnet() { return this; } /** + * + * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2644,11 +2936,13 @@ public Builder clearSubnet() { * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; */ public com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder getSubnetBuilder() { - + onChanged(); return getSubnetFieldBuilder().getBuilder(); } /** + * + * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2659,11 +2953,14 @@ public com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder getSubnetOrBuilde if (subnetBuilder_ != null) { return subnetBuilder_.getMessageOrBuilder(); } else { - return subnet_ == null ? - com.google.cloud.vpcaccess.v1.Connector.Subnet.getDefaultInstance() : subnet_; + return subnet_ == null + ? com.google.cloud.vpcaccess.v1.Connector.Subnet.getDefaultInstance() + : subnet_; } } /** + * + * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2671,21 +2968,24 @@ public com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder getSubnetOrBuilde * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vpcaccess.v1.Connector.Subnet, com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder> + com.google.cloud.vpcaccess.v1.Connector.Subnet, + com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, + com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder> getSubnetFieldBuilder() { if (subnetBuilder_ == null) { - subnetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vpcaccess.v1.Connector.Subnet, com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder>( - getSubnet(), - getParentForChildren(), - isClean()); + subnetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vpcaccess.v1.Connector.Subnet, + com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, + com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder>( + getSubnet(), getParentForChildren(), isClean()); subnet_ = null; } return subnetBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2695,12 +2995,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vpcaccess.v1.Connector) } // @@protoc_insertion_point(class_scope:google.cloud.vpcaccess.v1.Connector) private static final com.google.cloud.vpcaccess.v1.Connector DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vpcaccess.v1.Connector(); } @@ -2709,16 +3009,16 @@ public static com.google.cloud.vpcaccess.v1.Connector getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Connector parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Connector(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Connector parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Connector(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2733,6 +3033,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vpcaccess.v1.Connector getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java rename to proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java rename to proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java index b6d81c7a..5ee83598 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java +++ b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java @@ -1,173 +1,242 @@ +/* + * 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/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; -public interface ConnectorOrBuilder extends +public interface ConnectorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vpcaccess.v1.Connector) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name in the format `projects/*/locations/*/connectors/*`.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name in the format `projects/*/locations/*/connectors/*`.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Name of a VPC network.
    * 
* * string network = 2; + * * @return The network. */ java.lang.String getNetwork(); /** + * + * *
    * Name of a VPC network.
    * 
* * string network = 2; + * * @return The bytes for network. */ - com.google.protobuf.ByteString - getNetworkBytes(); + com.google.protobuf.ByteString getNetworkBytes(); /** + * + * *
    * The range of internal addresses that follows RFC 4632 notation.
    * Example: `10.132.0.0/28`.
    * 
* * string ip_cidr_range = 3; + * * @return The ipCidrRange. */ java.lang.String getIpCidrRange(); /** + * + * *
    * The range of internal addresses that follows RFC 4632 notation.
    * Example: `10.132.0.0/28`.
    * 
* * string ip_cidr_range = 3; + * * @return The bytes for ipCidrRange. */ - com.google.protobuf.ByteString - getIpCidrRangeBytes(); + com.google.protobuf.ByteString getIpCidrRangeBytes(); /** + * + * *
    * Output only. State of the VPC access connector.
    * 
* - * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. State of the VPC access connector.
    * 
* - * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.vpcaccess.v1.Connector.State getState(); /** + * + * *
    * Minimum throughput of the connector in Mbps. Default and min is 200.
    * 
* * int32 min_throughput = 5; + * * @return The minThroughput. */ int getMinThroughput(); /** + * + * *
    * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
    * 
* * int32 max_throughput = 6; + * * @return The maxThroughput. */ int getMaxThroughput(); /** + * + * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the connectedProjects. */ - java.util.List - getConnectedProjectsList(); + java.util.List getConnectedProjectsList(); /** + * + * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of connectedProjects. */ int getConnectedProjectsCount(); /** + * + * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The connectedProjects at the given index. */ java.lang.String getConnectedProjects(int index); /** + * + * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The bytes of the connectedProjects at the given index. */ - com.google.protobuf.ByteString - getConnectedProjectsBytes(int index); + com.google.protobuf.ByteString getConnectedProjectsBytes(int index); /** + * + * *
    * The subnet in which to house the VPC Access Connector.
    * 
* * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; + * * @return Whether the subnet field is set. */ boolean hasSubnet(); /** + * + * *
    * The subnet in which to house the VPC Access Connector.
    * 
* * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; + * * @return The subnet. */ com.google.cloud.vpcaccess.v1.Connector.Subnet getSubnet(); /** + * + * *
    * The subnet in which to house the VPC Access Connector.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java rename to proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java index c7f85e21..1066a47f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java +++ b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java @@ -1,24 +1,42 @@ +/* + * 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/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; /** + * + * *
  * Request for creating a Serverless VPC Access connector.
  * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.CreateConnectorRequest} */ -public final class CreateConnectorRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateConnectorRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vpcaccess.v1.CreateConnectorRequest) CreateConnectorRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateConnectorRequest.newBuilder() to construct. private CreateConnectorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateConnectorRequest() { parent_ = ""; connectorId_ = ""; @@ -26,16 +44,15 @@ private CreateConnectorRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateConnectorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateConnectorRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,72 +71,84 @@ private CreateConnectorRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - connectorId_ = s; - break; - } - case 26: { - com.google.cloud.vpcaccess.v1.Connector.Builder subBuilder = null; - if (connector_ != null) { - subBuilder = connector_.toBuilder(); + parent_ = s; + break; } - connector_ = input.readMessage(com.google.cloud.vpcaccess.v1.Connector.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(connector_); - connector_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + connectorId_ = s; + break; } + case 26: + { + com.google.cloud.vpcaccess.v1.Connector.Builder subBuilder = null; + if (connector_ != null) { + subBuilder = connector_.toBuilder(); + } + connector_ = + input.readMessage( + com.google.cloud.vpcaccess.v1.Connector.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(connector_); + connector_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.CreateConnectorRequest.class, com.google.cloud.vpcaccess.v1.CreateConnectorRequest.Builder.class); + com.google.cloud.vpcaccess.v1.CreateConnectorRequest.class, + com.google.cloud.vpcaccess.v1.CreateConnectorRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The project and location in which the configuration should be created,
    * specified in the format `projects/*/locations/*`.
    * 
* - * 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 @@ -128,30 +157,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project and location in which the configuration should be created,
    * specified in the format `projects/*/locations/*`.
    * 
* - * 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 { @@ -162,11 +193,14 @@ public java.lang.String getParent() { public static final int CONNECTOR_ID_FIELD_NUMBER = 2; private volatile java.lang.Object connectorId_; /** + * + * *
    * Required. The ID to use for this connector.
    * 
* * string connector_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The connectorId. */ @java.lang.Override @@ -175,29 +209,29 @@ public java.lang.String getConnectorId() { 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(); connectorId_ = s; return s; } } /** + * + * *
    * Required. The ID to use for this connector.
    * 
* * string connector_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for connectorId. */ @java.lang.Override - public com.google.protobuf.ByteString - getConnectorIdBytes() { + public com.google.protobuf.ByteString getConnectorIdBytes() { java.lang.Object ref = connectorId_; 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); connectorId_ = b; return b; } else { @@ -208,11 +242,16 @@ public java.lang.String getConnectorId() { public static final int CONNECTOR_FIELD_NUMBER = 3; private com.google.cloud.vpcaccess.v1.Connector connector_; /** + * + * *
    * Required. Resource to create.
    * 
* - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connector field is set. */ @java.lang.Override @@ -220,23 +259,34 @@ public boolean hasConnector() { return connector_ != null; } /** + * + * *
    * Required. Resource to create.
    * 
* - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connector. */ @java.lang.Override public com.google.cloud.vpcaccess.v1.Connector getConnector() { - return connector_ == null ? com.google.cloud.vpcaccess.v1.Connector.getDefaultInstance() : connector_; + return connector_ == null + ? com.google.cloud.vpcaccess.v1.Connector.getDefaultInstance() + : connector_; } /** + * + * *
    * Required. Resource to create.
    * 
* - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorOrBuilder() { @@ -244,6 +294,7 @@ public com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,8 +306,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -282,8 +332,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, connectorId_); } if (connector_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getConnector()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConnector()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -293,21 +342,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vpcaccess.v1.CreateConnectorRequest)) { return super.equals(obj); } - com.google.cloud.vpcaccess.v1.CreateConnectorRequest other = (com.google.cloud.vpcaccess.v1.CreateConnectorRequest) obj; + com.google.cloud.vpcaccess.v1.CreateConnectorRequest other = + (com.google.cloud.vpcaccess.v1.CreateConnectorRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getConnectorId() - .equals(other.getConnectorId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getConnectorId().equals(other.getConnectorId())) return false; if (hasConnector() != other.hasConnector()) return false; if (hasConnector()) { - if (!getConnector() - .equals(other.getConnector())) return false; + if (!getConnector().equals(other.getConnector())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -334,117 +381,126 @@ public int hashCode() { } public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vpcaccess.v1.CreateConnectorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 creating a Serverless VPC Access connector.
    * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.CreateConnectorRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vpcaccess.v1.CreateConnectorRequest) com.google.cloud.vpcaccess.v1.CreateConnectorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.CreateConnectorRequest.class, com.google.cloud.vpcaccess.v1.CreateConnectorRequest.Builder.class); + com.google.cloud.vpcaccess.v1.CreateConnectorRequest.class, + com.google.cloud.vpcaccess.v1.CreateConnectorRequest.Builder.class); } // Construct using com.google.cloud.vpcaccess.v1.CreateConnectorRequest.newBuilder() @@ -452,16 +508,15 @@ 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(); @@ -479,9 +534,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor; } @java.lang.Override @@ -500,7 +555,8 @@ public com.google.cloud.vpcaccess.v1.CreateConnectorRequest build() { @java.lang.Override public com.google.cloud.vpcaccess.v1.CreateConnectorRequest buildPartial() { - com.google.cloud.vpcaccess.v1.CreateConnectorRequest result = new com.google.cloud.vpcaccess.v1.CreateConnectorRequest(this); + com.google.cloud.vpcaccess.v1.CreateConnectorRequest result = + new com.google.cloud.vpcaccess.v1.CreateConnectorRequest(this); result.parent_ = parent_; result.connectorId_ = connectorId_; if (connectorBuilder_ == null) { @@ -516,38 +572,39 @@ public com.google.cloud.vpcaccess.v1.CreateConnectorRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vpcaccess.v1.CreateConnectorRequest) { - return mergeFrom((com.google.cloud.vpcaccess.v1.CreateConnectorRequest)other); + return mergeFrom((com.google.cloud.vpcaccess.v1.CreateConnectorRequest) other); } else { super.mergeFrom(other); return this; @@ -555,7 +612,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vpcaccess.v1.CreateConnectorRequest other) { - if (other == com.google.cloud.vpcaccess.v1.CreateConnectorRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vpcaccess.v1.CreateConnectorRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -586,7 +644,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vpcaccess.v1.CreateConnectorRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vpcaccess.v1.CreateConnectorRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -598,19 +657,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project and location in which the configuration should be created,
      * specified in the format `projects/*/locations/*`.
      * 
* - * 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; @@ -619,21 +682,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location in which the configuration should be created,
      * specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -641,57 +707,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location in which the configuration should be created,
      * specified in the format `projects/*/locations/*`.
      * 
* - * 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 project and location in which the configuration should be created,
      * specified in the format `projects/*/locations/*`.
      * 
* - * 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 project and location in which the configuration should be created,
      * specified in the format `projects/*/locations/*`.
      * 
* - * 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; @@ -699,18 +778,20 @@ public Builder setParentBytes( private java.lang.Object connectorId_ = ""; /** + * + * *
      * Required. The ID to use for this connector.
      * 
* * string connector_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The connectorId. */ public java.lang.String getConnectorId() { java.lang.Object ref = connectorId_; 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(); connectorId_ = s; return s; @@ -719,20 +800,21 @@ public java.lang.String getConnectorId() { } } /** + * + * *
      * Required. The ID to use for this connector.
      * 
* * string connector_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for connectorId. */ - public com.google.protobuf.ByteString - getConnectorIdBytes() { + public com.google.protobuf.ByteString getConnectorIdBytes() { java.lang.Object ref = connectorId_; 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); connectorId_ = b; return b; } else { @@ -740,54 +822,61 @@ public java.lang.String getConnectorId() { } } /** + * + * *
      * Required. The ID to use for this connector.
      * 
* * string connector_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The connectorId to set. * @return This builder for chaining. */ - public Builder setConnectorId( - java.lang.String value) { + public Builder setConnectorId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + connectorId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID to use for this connector.
      * 
* * string connector_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearConnectorId() { - + connectorId_ = getDefaultInstance().getConnectorId(); onChanged(); return this; } /** + * + * *
      * Required. The ID to use for this connector.
      * 
* * string connector_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for connectorId to set. * @return This builder for chaining. */ - public Builder setConnectorIdBytes( - com.google.protobuf.ByteString value) { + public Builder setConnectorIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connectorId_ = value; onChanged(); return this; @@ -795,39 +884,58 @@ public Builder setConnectorIdBytes( private com.google.cloud.vpcaccess.v1.Connector connector_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vpcaccess.v1.Connector, com.google.cloud.vpcaccess.v1.Connector.Builder, com.google.cloud.vpcaccess.v1.ConnectorOrBuilder> connectorBuilder_; + com.google.cloud.vpcaccess.v1.Connector, + com.google.cloud.vpcaccess.v1.Connector.Builder, + com.google.cloud.vpcaccess.v1.ConnectorOrBuilder> + connectorBuilder_; /** + * + * *
      * Required. Resource to create.
      * 
* - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connector field is set. */ public boolean hasConnector() { return connectorBuilder_ != null || connector_ != null; } /** + * + * *
      * Required. Resource to create.
      * 
* - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connector. */ public com.google.cloud.vpcaccess.v1.Connector getConnector() { if (connectorBuilder_ == null) { - return connector_ == null ? com.google.cloud.vpcaccess.v1.Connector.getDefaultInstance() : connector_; + return connector_ == null + ? com.google.cloud.vpcaccess.v1.Connector.getDefaultInstance() + : connector_; } else { return connectorBuilder_.getMessage(); } } /** + * + * *
      * Required. Resource to create.
      * 
* - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConnector(com.google.cloud.vpcaccess.v1.Connector value) { if (connectorBuilder_ == null) { @@ -843,14 +951,17 @@ public Builder setConnector(com.google.cloud.vpcaccess.v1.Connector value) { return this; } /** + * + * *
      * Required. Resource to create.
      * 
* - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setConnector( - com.google.cloud.vpcaccess.v1.Connector.Builder builderForValue) { + public Builder setConnector(com.google.cloud.vpcaccess.v1.Connector.Builder builderForValue) { if (connectorBuilder_ == null) { connector_ = builderForValue.build(); onChanged(); @@ -861,17 +972,23 @@ public Builder setConnector( return this; } /** + * + * *
      * Required. Resource to create.
      * 
* - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConnector(com.google.cloud.vpcaccess.v1.Connector value) { if (connectorBuilder_ == null) { if (connector_ != null) { connector_ = - com.google.cloud.vpcaccess.v1.Connector.newBuilder(connector_).mergeFrom(value).buildPartial(); + com.google.cloud.vpcaccess.v1.Connector.newBuilder(connector_) + .mergeFrom(value) + .buildPartial(); } else { connector_ = value; } @@ -883,11 +1000,15 @@ public Builder mergeConnector(com.google.cloud.vpcaccess.v1.Connector value) { return this; } /** + * + * *
      * Required. Resource to create.
      * 
* - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConnector() { if (connectorBuilder_ == null) { @@ -901,55 +1022,71 @@ public Builder clearConnector() { return this; } /** + * + * *
      * Required. Resource to create.
      * 
* - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vpcaccess.v1.Connector.Builder getConnectorBuilder() { - + onChanged(); return getConnectorFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Resource to create.
      * 
* - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorOrBuilder() { if (connectorBuilder_ != null) { return connectorBuilder_.getMessageOrBuilder(); } else { - return connector_ == null ? - com.google.cloud.vpcaccess.v1.Connector.getDefaultInstance() : connector_; + return connector_ == null + ? com.google.cloud.vpcaccess.v1.Connector.getDefaultInstance() + : connector_; } } /** + * + * *
      * Required. Resource to create.
      * 
* - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vpcaccess.v1.Connector, com.google.cloud.vpcaccess.v1.Connector.Builder, com.google.cloud.vpcaccess.v1.ConnectorOrBuilder> + com.google.cloud.vpcaccess.v1.Connector, + com.google.cloud.vpcaccess.v1.Connector.Builder, + com.google.cloud.vpcaccess.v1.ConnectorOrBuilder> getConnectorFieldBuilder() { if (connectorBuilder_ == null) { - connectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vpcaccess.v1.Connector, com.google.cloud.vpcaccess.v1.Connector.Builder, com.google.cloud.vpcaccess.v1.ConnectorOrBuilder>( - getConnector(), - getParentForChildren(), - isClean()); + connectorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vpcaccess.v1.Connector, + com.google.cloud.vpcaccess.v1.Connector.Builder, + com.google.cloud.vpcaccess.v1.ConnectorOrBuilder>( + getConnector(), getParentForChildren(), isClean()); connector_ = null; } return connectorBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -959,12 +1096,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vpcaccess.v1.CreateConnectorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vpcaccess.v1.CreateConnectorRequest) private static final com.google.cloud.vpcaccess.v1.CreateConnectorRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vpcaccess.v1.CreateConnectorRequest(); } @@ -973,16 +1110,16 @@ public static com.google.cloud.vpcaccess.v1.CreateConnectorRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateConnectorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateConnectorRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConnectorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateConnectorRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -997,6 +1134,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vpcaccess.v1.CreateConnectorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequestOrBuilder.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequestOrBuilder.java rename to proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequestOrBuilder.java index 05a8e30c..f97220bc 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequestOrBuilder.java +++ b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequestOrBuilder.java @@ -1,78 +1,122 @@ +/* + * 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/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; -public interface CreateConnectorRequestOrBuilder extends +public interface CreateConnectorRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vpcaccess.v1.CreateConnectorRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project and location in which the configuration should be created,
    * specified in the format `projects/*/locations/*`.
    * 
* - * 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 project and location in which the configuration should be created,
    * specified in the format `projects/*/locations/*`.
    * 
* - * 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 ID to use for this connector.
    * 
* * string connector_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The connectorId. */ java.lang.String getConnectorId(); /** + * + * *
    * Required. The ID to use for this connector.
    * 
* * string connector_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for connectorId. */ - com.google.protobuf.ByteString - getConnectorIdBytes(); + com.google.protobuf.ByteString getConnectorIdBytes(); /** + * + * *
    * Required. Resource to create.
    * 
* - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connector field is set. */ boolean hasConnector(); /** + * + * *
    * Required. Resource to create.
    * 
* - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connector. */ com.google.cloud.vpcaccess.v1.Connector getConnector(); /** + * + * *
    * Required. Resource to create.
    * 
* - * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.vpcaccess.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequest.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequest.java rename to proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequest.java index 096bf33a..a646780d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequest.java +++ b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequest.java @@ -1,40 +1,57 @@ +/* + * 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/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; /** + * + * *
  * Request for deleting a Serverless VPC Access connector.
  * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.DeleteConnectorRequest} */ -public final class DeleteConnectorRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteConnectorRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vpcaccess.v1.DeleteConnectorRequest) DeleteConnectorRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteConnectorRequest.newBuilder() to construct. private DeleteConnectorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteConnectorRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteConnectorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteConnectorRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,60 @@ private DeleteConnectorRequest( 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; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.class, com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.Builder.class); + com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.class, + com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of a Serverless VPC Access connector to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -107,29 +132,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of a Serverless VPC Access connector to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -174,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vpcaccess.v1.DeleteConnectorRequest)) { return super.equals(obj); } - com.google.cloud.vpcaccess.v1.DeleteConnectorRequest other = (com.google.cloud.vpcaccess.v1.DeleteConnectorRequest) obj; + com.google.cloud.vpcaccess.v1.DeleteConnectorRequest other = + (com.google.cloud.vpcaccess.v1.DeleteConnectorRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,117 +229,126 @@ public int hashCode() { } public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vpcaccess.v1.DeleteConnectorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 deleting a Serverless VPC Access connector.
    * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.DeleteConnectorRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vpcaccess.v1.DeleteConnectorRequest) com.google.cloud.vpcaccess.v1.DeleteConnectorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.class, com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.Builder.class); + com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.class, + com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.Builder.class); } // Construct using com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.newBuilder() @@ -320,16 +356,15 @@ 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(); @@ -339,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor; } @java.lang.Override @@ -360,7 +395,8 @@ public com.google.cloud.vpcaccess.v1.DeleteConnectorRequest build() { @java.lang.Override public com.google.cloud.vpcaccess.v1.DeleteConnectorRequest buildPartial() { - com.google.cloud.vpcaccess.v1.DeleteConnectorRequest result = new com.google.cloud.vpcaccess.v1.DeleteConnectorRequest(this); + com.google.cloud.vpcaccess.v1.DeleteConnectorRequest result = + new com.google.cloud.vpcaccess.v1.DeleteConnectorRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +406,39 @@ public com.google.cloud.vpcaccess.v1.DeleteConnectorRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vpcaccess.v1.DeleteConnectorRequest) { - return mergeFrom((com.google.cloud.vpcaccess.v1.DeleteConnectorRequest)other); + return mergeFrom((com.google.cloud.vpcaccess.v1.DeleteConnectorRequest) other); } else { super.mergeFrom(other); return this; @@ -409,7 +446,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vpcaccess.v1.DeleteConnectorRequest other) { - if (other == com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vpcaccess.v1.DeleteConnectorRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -433,7 +471,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vpcaccess.v1.DeleteConnectorRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vpcaccess.v1.DeleteConnectorRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -445,18 +484,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of a Serverless VPC Access connector to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -465,20 +508,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of a Serverless VPC Access connector to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -486,61 +532,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of a Serverless VPC Access connector to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of a Serverless VPC Access connector to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of a Serverless VPC Access connector to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + 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); } @@ -550,12 +609,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vpcaccess.v1.DeleteConnectorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vpcaccess.v1.DeleteConnectorRequest) private static final com.google.cloud.vpcaccess.v1.DeleteConnectorRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vpcaccess.v1.DeleteConnectorRequest(); } @@ -564,16 +623,16 @@ public static com.google.cloud.vpcaccess.v1.DeleteConnectorRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteConnectorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteConnectorRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConnectorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteConnectorRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +647,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vpcaccess.v1.DeleteConnectorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequestOrBuilder.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequestOrBuilder.java new file mode 100644 index 00000000..c7754766 --- /dev/null +++ b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequestOrBuilder.java @@ -0,0 +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/cloud/vpcaccess/v1/vpc_access.proto + +package com.google.cloud.vpcaccess.v1; + +public interface DeleteConnectorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vpcaccess.v1.DeleteConnectorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of a Serverless VPC Access connector to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of a Serverless VPC Access connector to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequest.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequest.java rename to proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequest.java index a1bb9662..a08adfda 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequest.java +++ b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequest.java @@ -1,40 +1,57 @@ +/* + * 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/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; /** + * + * *
  * Request for getting a Serverless VPC Access connector.
  * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.GetConnectorRequest} */ -public final class GetConnectorRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetConnectorRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vpcaccess.v1.GetConnectorRequest) GetConnectorRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetConnectorRequest.newBuilder() to construct. private GetConnectorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetConnectorRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetConnectorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetConnectorRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,60 @@ private GetConnectorRequest( 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; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.GetConnectorRequest.class, com.google.cloud.vpcaccess.v1.GetConnectorRequest.Builder.class); + com.google.cloud.vpcaccess.v1.GetConnectorRequest.class, + com.google.cloud.vpcaccess.v1.GetConnectorRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of a Serverless VPC Access connector to get.
    * 
* - * 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 @@ -107,29 +132,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of a Serverless VPC Access connector to get.
    * 
* - * 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 { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -174,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vpcaccess.v1.GetConnectorRequest)) { return super.equals(obj); } - com.google.cloud.vpcaccess.v1.GetConnectorRequest other = (com.google.cloud.vpcaccess.v1.GetConnectorRequest) obj; + com.google.cloud.vpcaccess.v1.GetConnectorRequest other = + (com.google.cloud.vpcaccess.v1.GetConnectorRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,117 +229,126 @@ public int hashCode() { } public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vpcaccess.v1.GetConnectorRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vpcaccess.v1.GetConnectorRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 getting a Serverless VPC Access connector.
    * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.GetConnectorRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vpcaccess.v1.GetConnectorRequest) com.google.cloud.vpcaccess.v1.GetConnectorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.GetConnectorRequest.class, com.google.cloud.vpcaccess.v1.GetConnectorRequest.Builder.class); + com.google.cloud.vpcaccess.v1.GetConnectorRequest.class, + com.google.cloud.vpcaccess.v1.GetConnectorRequest.Builder.class); } // Construct using com.google.cloud.vpcaccess.v1.GetConnectorRequest.newBuilder() @@ -320,16 +356,15 @@ 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(); @@ -339,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor; } @java.lang.Override @@ -360,7 +395,8 @@ public com.google.cloud.vpcaccess.v1.GetConnectorRequest build() { @java.lang.Override public com.google.cloud.vpcaccess.v1.GetConnectorRequest buildPartial() { - com.google.cloud.vpcaccess.v1.GetConnectorRequest result = new com.google.cloud.vpcaccess.v1.GetConnectorRequest(this); + com.google.cloud.vpcaccess.v1.GetConnectorRequest result = + new com.google.cloud.vpcaccess.v1.GetConnectorRequest(this); result.name_ = name_; onBuilt(); return result; @@ -370,38 +406,39 @@ public com.google.cloud.vpcaccess.v1.GetConnectorRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vpcaccess.v1.GetConnectorRequest) { - return mergeFrom((com.google.cloud.vpcaccess.v1.GetConnectorRequest)other); + return mergeFrom((com.google.cloud.vpcaccess.v1.GetConnectorRequest) other); } else { super.mergeFrom(other); return this; @@ -409,7 +446,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vpcaccess.v1.GetConnectorRequest other) { - if (other == com.google.cloud.vpcaccess.v1.GetConnectorRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vpcaccess.v1.GetConnectorRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -433,7 +471,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vpcaccess.v1.GetConnectorRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vpcaccess.v1.GetConnectorRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -445,18 +484,22 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of a Serverless VPC Access connector to get.
      * 
* - * 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; @@ -465,20 +508,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of a Serverless VPC Access connector to get.
      * 
* - * 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 { @@ -486,61 +532,74 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of a Serverless VPC Access connector to get.
      * 
* - * 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 a Serverless VPC Access connector to get.
      * 
* - * 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 a Serverless VPC Access connector to get.
      * 
* - * 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); } @@ -550,12 +609,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vpcaccess.v1.GetConnectorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vpcaccess.v1.GetConnectorRequest) private static final com.google.cloud.vpcaccess.v1.GetConnectorRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vpcaccess.v1.GetConnectorRequest(); } @@ -564,16 +623,16 @@ public static com.google.cloud.vpcaccess.v1.GetConnectorRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetConnectorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetConnectorRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConnectorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetConnectorRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +647,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vpcaccess.v1.GetConnectorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequestOrBuilder.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequestOrBuilder.java new file mode 100644 index 00000000..f8694e6e --- /dev/null +++ b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/GetConnectorRequestOrBuilder.java @@ -0,0 +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/cloud/vpcaccess/v1/vpc_access.proto + +package com.google.cloud.vpcaccess.v1; + +public interface GetConnectorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vpcaccess.v1.GetConnectorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of a Serverless VPC Access connector to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of a Serverless VPC Access connector to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequest.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequest.java rename to proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequest.java index e007aafd..b42f962c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequest.java +++ b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequest.java @@ -1,24 +1,42 @@ +/* + * 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/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; /** + * + * *
  * Request for listing Serverless VPC Access connectors in a location.
  * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.ListConnectorsRequest} */ -public final class ListConnectorsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListConnectorsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vpcaccess.v1.ListConnectorsRequest) ListConnectorsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListConnectorsRequest.newBuilder() to construct. private ListConnectorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListConnectorsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListConnectorsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListConnectorsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListConnectorsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,63 +71,72 @@ private ListConnectorsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.ListConnectorsRequest.class, com.google.cloud.vpcaccess.v1.ListConnectorsRequest.Builder.class); + com.google.cloud.vpcaccess.v1.ListConnectorsRequest.class, + com.google.cloud.vpcaccess.v1.ListConnectorsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The project and location from which the routes should be listed.
    * 
* - * 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 @@ -119,29 +145,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The project and location from which the routes should be listed.
    * 
* - * 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 { @@ -152,11 +180,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum number of functions to return per call.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -167,11 +198,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Continuation token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -180,29 +214,29 @@ 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; } } /** + * + * *
    * Continuation token.
    * 
* * 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 { @@ -211,6 +245,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,8 +257,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -246,8 +280,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!getPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -260,19 +293,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vpcaccess.v1.ListConnectorsRequest)) { return super.equals(obj); } - com.google.cloud.vpcaccess.v1.ListConnectorsRequest other = (com.google.cloud.vpcaccess.v1.ListConnectorsRequest) obj; + com.google.cloud.vpcaccess.v1.ListConnectorsRequest other = + (com.google.cloud.vpcaccess.v1.ListConnectorsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -296,117 +327,126 @@ public int hashCode() { } public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vpcaccess.v1.ListConnectorsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 listing Serverless VPC Access connectors in a location.
    * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.ListConnectorsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vpcaccess.v1.ListConnectorsRequest) com.google.cloud.vpcaccess.v1.ListConnectorsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.ListConnectorsRequest.class, com.google.cloud.vpcaccess.v1.ListConnectorsRequest.Builder.class); + com.google.cloud.vpcaccess.v1.ListConnectorsRequest.class, + com.google.cloud.vpcaccess.v1.ListConnectorsRequest.Builder.class); } // Construct using com.google.cloud.vpcaccess.v1.ListConnectorsRequest.newBuilder() @@ -414,16 +454,15 @@ 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(); @@ -437,9 +476,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor; } @java.lang.Override @@ -458,7 +497,8 @@ public com.google.cloud.vpcaccess.v1.ListConnectorsRequest build() { @java.lang.Override public com.google.cloud.vpcaccess.v1.ListConnectorsRequest buildPartial() { - com.google.cloud.vpcaccess.v1.ListConnectorsRequest result = new com.google.cloud.vpcaccess.v1.ListConnectorsRequest(this); + com.google.cloud.vpcaccess.v1.ListConnectorsRequest result = + new com.google.cloud.vpcaccess.v1.ListConnectorsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -470,38 +510,39 @@ public com.google.cloud.vpcaccess.v1.ListConnectorsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vpcaccess.v1.ListConnectorsRequest) { - return mergeFrom((com.google.cloud.vpcaccess.v1.ListConnectorsRequest)other); + return mergeFrom((com.google.cloud.vpcaccess.v1.ListConnectorsRequest) other); } else { super.mergeFrom(other); return this; @@ -509,7 +550,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vpcaccess.v1.ListConnectorsRequest other) { - if (other == com.google.cloud.vpcaccess.v1.ListConnectorsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.vpcaccess.v1.ListConnectorsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -540,7 +582,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vpcaccess.v1.ListConnectorsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vpcaccess.v1.ListConnectorsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -552,18 +595,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project and location from which the routes should be listed.
      * 
* - * 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; @@ -572,20 +619,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location from which the routes should be listed.
      * 
* - * 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 { @@ -593,66 +643,82 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location from which the routes should be listed.
      * 
* - * 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 project and location from which the routes should be listed.
      * 
* - * 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 project and location from which the routes should be listed.
      * 
* - * 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; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of functions to return per call.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -660,30 +726,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of functions to return per call.
      * 
* * 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 functions to return per call.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -691,18 +763,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Continuation token.
      * 
* * 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; @@ -711,20 +785,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Continuation token.
      * 
* * 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 { @@ -732,61 +807,68 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Continuation token.
      * 
* * 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; } /** + * + * *
      * Continuation token.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Continuation token.
      * 
* * 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); } @@ -796,12 +878,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vpcaccess.v1.ListConnectorsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.vpcaccess.v1.ListConnectorsRequest) private static final com.google.cloud.vpcaccess.v1.ListConnectorsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vpcaccess.v1.ListConnectorsRequest(); } @@ -810,16 +892,16 @@ public static com.google.cloud.vpcaccess.v1.ListConnectorsRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectorsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListConnectorsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectorsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListConnectorsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -834,6 +916,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vpcaccess.v1.ListConnectorsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequestOrBuilder.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequestOrBuilder.java similarity index 50% rename from owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequestOrBuilder.java rename to proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequestOrBuilder.java index 73907dc1..3a16e075 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequestOrBuilder.java +++ b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsRequestOrBuilder.java @@ -1,59 +1,92 @@ +/* + * 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/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; -public interface ListConnectorsRequestOrBuilder extends +public interface ListConnectorsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vpcaccess.v1.ListConnectorsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project and location from which the routes should be listed.
    * 
* - * 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 project and location from which the routes should be listed.
    * 
* - * 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(); /** + * + * *
    * Maximum number of functions to return per call.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Continuation token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Continuation token.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponse.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponse.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponse.java rename to proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponse.java index 090aca21..8367f97a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponse.java +++ b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponse.java @@ -1,24 +1,42 @@ +/* + * 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/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; /** + * + * *
  * Response for listing Serverless VPC Access connectors.
  * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.ListConnectorsResponse} */ -public final class ListConnectorsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListConnectorsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vpcaccess.v1.ListConnectorsResponse) ListConnectorsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListConnectorsResponse.newBuilder() to construct. private ListConnectorsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListConnectorsResponse() { connectors_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListConnectorsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListConnectorsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListConnectorsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,37 @@ private ListConnectorsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - connectors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + connectors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + connectors_.add( + input.readMessage( + com.google.cloud.vpcaccess.v1.Connector.parser(), extensionRegistry)); + break; } - connectors_.add( - input.readMessage(com.google.cloud.vpcaccess.v1.Connector.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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)) { connectors_ = java.util.Collections.unmodifiableList(connectors_); @@ -92,22 +111,27 @@ private ListConnectorsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.ListConnectorsResponse.class, com.google.cloud.vpcaccess.v1.ListConnectorsResponse.Builder.class); + com.google.cloud.vpcaccess.v1.ListConnectorsResponse.class, + com.google.cloud.vpcaccess.v1.ListConnectorsResponse.Builder.class); } public static final int CONNECTORS_FIELD_NUMBER = 1; private java.util.List connectors_; /** + * + * *
    * List of Serverless VPC Access connectors.
    * 
@@ -119,6 +143,8 @@ public java.util.List getConnectorsList return connectors_; } /** + * + * *
    * List of Serverless VPC Access connectors.
    * 
@@ -126,11 +152,13 @@ public java.util.List getConnectorsList * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ @java.lang.Override - public java.util.List + public java.util.List getConnectorsOrBuilderList() { return connectors_; } /** + * + * *
    * List of Serverless VPC Access connectors.
    * 
@@ -142,6 +170,8 @@ public int getConnectorsCount() { return connectors_.size(); } /** + * + * *
    * List of Serverless VPC Access connectors.
    * 
@@ -153,6 +183,8 @@ public com.google.cloud.vpcaccess.v1.Connector getConnectors(int index) { return connectors_.get(index); } /** + * + * *
    * List of Serverless VPC Access connectors.
    * 
@@ -160,19 +192,21 @@ public com.google.cloud.vpcaccess.v1.Connector getConnectors(int index) { * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ @java.lang.Override - public com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorsOrBuilder( - int index) { + public com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorsOrBuilder(int index) { return connectors_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Continuation token.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -181,29 +215,29 @@ 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; } } /** + * + * *
    * Continuation token.
    * 
* * 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 { @@ -212,6 +246,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -223,8 +258,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < connectors_.size(); i++) { output.writeMessage(1, connectors_.get(i)); } @@ -241,8 +275,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < connectors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, connectors_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, connectors_.get(i)); } if (!getNextPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -255,17 +288,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vpcaccess.v1.ListConnectorsResponse)) { return super.equals(obj); } - com.google.cloud.vpcaccess.v1.ListConnectorsResponse other = (com.google.cloud.vpcaccess.v1.ListConnectorsResponse) obj; + com.google.cloud.vpcaccess.v1.ListConnectorsResponse other = + (com.google.cloud.vpcaccess.v1.ListConnectorsResponse) obj; - if (!getConnectorsList() - .equals(other.getConnectorsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getConnectorsList().equals(other.getConnectorsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -289,117 +321,126 @@ public int hashCode() { } public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vpcaccess.v1.ListConnectorsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 listing Serverless VPC Access connectors.
    * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.ListConnectorsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vpcaccess.v1.ListConnectorsResponse) com.google.cloud.vpcaccess.v1.ListConnectorsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.ListConnectorsResponse.class, com.google.cloud.vpcaccess.v1.ListConnectorsResponse.Builder.class); + com.google.cloud.vpcaccess.v1.ListConnectorsResponse.class, + com.google.cloud.vpcaccess.v1.ListConnectorsResponse.Builder.class); } // Construct using com.google.cloud.vpcaccess.v1.ListConnectorsResponse.newBuilder() @@ -407,17 +448,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) { getConnectorsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -433,9 +474,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor; } @java.lang.Override @@ -454,7 +495,8 @@ public com.google.cloud.vpcaccess.v1.ListConnectorsResponse build() { @java.lang.Override public com.google.cloud.vpcaccess.v1.ListConnectorsResponse buildPartial() { - com.google.cloud.vpcaccess.v1.ListConnectorsResponse result = new com.google.cloud.vpcaccess.v1.ListConnectorsResponse(this); + com.google.cloud.vpcaccess.v1.ListConnectorsResponse result = + new com.google.cloud.vpcaccess.v1.ListConnectorsResponse(this); int from_bitField0_ = bitField0_; if (connectorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -474,38 +516,39 @@ public com.google.cloud.vpcaccess.v1.ListConnectorsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vpcaccess.v1.ListConnectorsResponse) { - return mergeFrom((com.google.cloud.vpcaccess.v1.ListConnectorsResponse)other); + return mergeFrom((com.google.cloud.vpcaccess.v1.ListConnectorsResponse) other); } else { super.mergeFrom(other); return this; @@ -513,7 +556,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vpcaccess.v1.ListConnectorsResponse other) { - if (other == com.google.cloud.vpcaccess.v1.ListConnectorsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.vpcaccess.v1.ListConnectorsResponse.getDefaultInstance()) + return this; if (connectorsBuilder_ == null) { if (!other.connectors_.isEmpty()) { if (connectors_.isEmpty()) { @@ -532,9 +576,10 @@ public Builder mergeFrom(com.google.cloud.vpcaccess.v1.ListConnectorsResponse ot connectorsBuilder_ = null; connectors_ = other.connectors_; bitField0_ = (bitField0_ & ~0x00000001); - connectorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConnectorsFieldBuilder() : null; + connectorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConnectorsFieldBuilder() + : null; } else { connectorsBuilder_.addAllMessages(other.connectors_); } @@ -563,7 +608,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.vpcaccess.v1.ListConnectorsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.vpcaccess.v1.ListConnectorsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -572,21 +618,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List connectors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureConnectorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { connectors_ = new java.util.ArrayList(connectors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vpcaccess.v1.Connector, com.google.cloud.vpcaccess.v1.Connector.Builder, com.google.cloud.vpcaccess.v1.ConnectorOrBuilder> connectorsBuilder_; + com.google.cloud.vpcaccess.v1.Connector, + com.google.cloud.vpcaccess.v1.Connector.Builder, + com.google.cloud.vpcaccess.v1.ConnectorOrBuilder> + connectorsBuilder_; /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -601,6 +654,8 @@ public java.util.List getConnectorsList } } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -615,6 +670,8 @@ public int getConnectorsCount() { } } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -629,14 +686,15 @@ public com.google.cloud.vpcaccess.v1.Connector getConnectors(int index) { } } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
* * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ - public Builder setConnectors( - int index, com.google.cloud.vpcaccess.v1.Connector value) { + public Builder setConnectors(int index, com.google.cloud.vpcaccess.v1.Connector value) { if (connectorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -650,6 +708,8 @@ public Builder setConnectors( return this; } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -668,6 +728,8 @@ public Builder setConnectors( return this; } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -688,14 +750,15 @@ public Builder addConnectors(com.google.cloud.vpcaccess.v1.Connector value) { return this; } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
* * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ - public Builder addConnectors( - int index, com.google.cloud.vpcaccess.v1.Connector value) { + public Builder addConnectors(int index, com.google.cloud.vpcaccess.v1.Connector value) { if (connectorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -709,14 +772,15 @@ public Builder addConnectors( return this; } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
* * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ - public Builder addConnectors( - com.google.cloud.vpcaccess.v1.Connector.Builder builderForValue) { + public Builder addConnectors(com.google.cloud.vpcaccess.v1.Connector.Builder builderForValue) { if (connectorsBuilder_ == null) { ensureConnectorsIsMutable(); connectors_.add(builderForValue.build()); @@ -727,6 +791,8 @@ public Builder addConnectors( return this; } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -745,6 +811,8 @@ public Builder addConnectors( return this; } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -755,8 +823,7 @@ public Builder addAllConnectors( java.lang.Iterable values) { if (connectorsBuilder_ == null) { ensureConnectorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, connectors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connectors_); onChanged(); } else { connectorsBuilder_.addAllMessages(values); @@ -764,6 +831,8 @@ public Builder addAllConnectors( return this; } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -781,6 +850,8 @@ public Builder clearConnectors() { return this; } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -798,39 +869,44 @@ public Builder removeConnectors(int index) { return this; } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
* * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ - public com.google.cloud.vpcaccess.v1.Connector.Builder getConnectorsBuilder( - int index) { + public com.google.cloud.vpcaccess.v1.Connector.Builder getConnectorsBuilder(int index) { return getConnectorsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
* * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ - public com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorsOrBuilder( - int index) { + public com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorsOrBuilder(int index) { if (connectorsBuilder_ == null) { - return connectors_.get(index); } else { + return connectors_.get(index); + } else { return connectorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
* * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ - public java.util.List - getConnectorsOrBuilderList() { + public java.util.List + getConnectorsOrBuilderList() { if (connectorsBuilder_ != null) { return connectorsBuilder_.getMessageOrBuilderList(); } else { @@ -838,6 +914,8 @@ public com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorsOrBuilder( } } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -845,42 +923,48 @@ public com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorsOrBuilder( * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ public com.google.cloud.vpcaccess.v1.Connector.Builder addConnectorsBuilder() { - return getConnectorsFieldBuilder().addBuilder( - com.google.cloud.vpcaccess.v1.Connector.getDefaultInstance()); + return getConnectorsFieldBuilder() + .addBuilder(com.google.cloud.vpcaccess.v1.Connector.getDefaultInstance()); } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
* * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ - public com.google.cloud.vpcaccess.v1.Connector.Builder addConnectorsBuilder( - int index) { - return getConnectorsFieldBuilder().addBuilder( - index, com.google.cloud.vpcaccess.v1.Connector.getDefaultInstance()); + public com.google.cloud.vpcaccess.v1.Connector.Builder addConnectorsBuilder(int index) { + return getConnectorsFieldBuilder() + .addBuilder(index, com.google.cloud.vpcaccess.v1.Connector.getDefaultInstance()); } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
* * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ - public java.util.List - getConnectorsBuilderList() { + public java.util.List + getConnectorsBuilderList() { return getConnectorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vpcaccess.v1.Connector, com.google.cloud.vpcaccess.v1.Connector.Builder, com.google.cloud.vpcaccess.v1.ConnectorOrBuilder> + com.google.cloud.vpcaccess.v1.Connector, + com.google.cloud.vpcaccess.v1.Connector.Builder, + com.google.cloud.vpcaccess.v1.ConnectorOrBuilder> getConnectorsFieldBuilder() { if (connectorsBuilder_ == null) { - connectorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vpcaccess.v1.Connector, com.google.cloud.vpcaccess.v1.Connector.Builder, com.google.cloud.vpcaccess.v1.ConnectorOrBuilder>( - connectors_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + connectorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vpcaccess.v1.Connector, + com.google.cloud.vpcaccess.v1.Connector.Builder, + com.google.cloud.vpcaccess.v1.ConnectorOrBuilder>( + connectors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); connectors_ = null; } return connectorsBuilder_; @@ -888,18 +972,20 @@ public com.google.cloud.vpcaccess.v1.Connector.Builder addConnectorsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Continuation token.
      * 
* * 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; @@ -908,20 +994,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Continuation token.
      * 
* * 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 { @@ -929,61 +1016,68 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Continuation token.
      * 
* * 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; } /** + * + * *
      * Continuation token.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Continuation token.
      * 
* * 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); } @@ -993,12 +1087,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vpcaccess.v1.ListConnectorsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.vpcaccess.v1.ListConnectorsResponse) private static final com.google.cloud.vpcaccess.v1.ListConnectorsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vpcaccess.v1.ListConnectorsResponse(); } @@ -1007,16 +1101,16 @@ public static com.google.cloud.vpcaccess.v1.ListConnectorsResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectorsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListConnectorsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectorsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListConnectorsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1031,6 +1125,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vpcaccess.v1.ListConnectorsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponseOrBuilder.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponseOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponseOrBuilder.java rename to proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponseOrBuilder.java index 3736e529..31a3a888 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponseOrBuilder.java +++ b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ListConnectorsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; -public interface ListConnectorsResponseOrBuilder extends +public interface ListConnectorsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vpcaccess.v1.ListConnectorsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of Serverless VPC Access connectors.
    * 
* * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ - java.util.List - getConnectorsList(); + java.util.List getConnectorsList(); /** + * + * *
    * List of Serverless VPC Access connectors.
    * 
@@ -25,6 +44,8 @@ public interface ListConnectorsResponseOrBuilder extends */ com.google.cloud.vpcaccess.v1.Connector getConnectors(int index); /** + * + * *
    * List of Serverless VPC Access connectors.
    * 
@@ -33,41 +54,49 @@ public interface ListConnectorsResponseOrBuilder extends */ int getConnectorsCount(); /** + * + * *
    * List of Serverless VPC Access connectors.
    * 
* * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ - java.util.List + java.util.List getConnectorsOrBuilderList(); /** + * + * *
    * List of Serverless VPC Access connectors.
    * 
* * repeated .google.cloud.vpcaccess.v1.Connector connectors = 1; */ - com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorsOrBuilder( - int index); + com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorsOrBuilder(int index); /** + * + * *
    * Continuation token.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Continuation token.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/LocationName.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/LocationName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/LocationName.java rename to proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/LocationName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadata.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadata.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadata.java rename to proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadata.java index 57a69752..1cb7b948 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadata.java +++ b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * 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/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; /** + * + * *
  * Metadata for google.longrunning.Operation.
  * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vpcaccess.v1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { method_ = ""; target_ = ""; @@ -26,16 +44,15 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,85 +71,96 @@ private OperationMetadata( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - method_ = s; - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + method_ = s; + break; } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - target_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + target_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - 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.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.OperationMetadata.class, com.google.cloud.vpcaccess.v1.OperationMetadata.Builder.class); + com.google.cloud.vpcaccess.v1.OperationMetadata.class, + com.google.cloud.vpcaccess.v1.OperationMetadata.Builder.class); } public static final int METHOD_FIELD_NUMBER = 1; private volatile java.lang.Object method_; /** + * + * *
    * Output only. Method that initiated the operation e.g.
    * google.cloud.vpcaccess.v1.Connectors.CreateConnector.
    * 
* * string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The method. */ @java.lang.Override @@ -141,30 +169,30 @@ public java.lang.String getMethod() { 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(); method_ = s; return s; } } /** + * + * *
    * Output only. Method that initiated the operation e.g.
    * google.cloud.vpcaccess.v1.Connectors.CreateConnector.
    * 
* * string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for method. */ @java.lang.Override - public com.google.protobuf.ByteString - getMethodBytes() { + public com.google.protobuf.ByteString getMethodBytes() { java.lang.Object ref = method_; 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); method_ = b; return b; } else { @@ -175,11 +203,15 @@ public java.lang.String getMethod() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -187,11 +219,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -199,11 +235,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -213,11 +252,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. Time when the operation completed.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -225,11 +268,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. Time when the operation completed.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -237,11 +284,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. Time when the operation completed.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -251,12 +301,17 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 5; private volatile java.lang.Object target_; /** + * + * *
    * Output only. Name of the resource that this operation is acting on e.g.
    * projects/my-project/locations/us-central1/connectors/v1.
    * 
* - * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The target. */ @java.lang.Override @@ -265,30 +320,32 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Output only. Name of the resource that this operation is acting on e.g.
    * projects/my-project/locations/us-central1/connectors/v1.
    * 
* - * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -297,6 +354,7 @@ public java.lang.String getTarget() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -308,8 +366,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getMethodBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, method_); } @@ -335,12 +392,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, method_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); } if (!getTargetBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, target_); @@ -353,27 +408,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vpcaccess.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.vpcaccess.v1.OperationMetadata other = (com.google.cloud.vpcaccess.v1.OperationMetadata) obj; + com.google.cloud.vpcaccess.v1.OperationMetadata other = + (com.google.cloud.vpcaccess.v1.OperationMetadata) obj; - if (!getMethod() - .equals(other.getMethod())) return false; + if (!getMethod().equals(other.getMethod())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } - if (!getTarget() - .equals(other.getTarget())) return false; + if (!getTarget().equals(other.getTarget())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -402,118 +454,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.vpcaccess.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.vpcaccess.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vpcaccess.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vpcaccess.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vpcaccess.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vpcaccess.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.vpcaccess.v1.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.vpcaccess.v1.OperationMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vpcaccess.v1.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.vpcaccess.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.vpcaccess.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.vpcaccess.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.vpcaccess.v1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.vpcaccess.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Metadata for google.longrunning.Operation.
    * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.vpcaccess.v1.OperationMetadata) com.google.cloud.vpcaccess.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.OperationMetadata.class, com.google.cloud.vpcaccess.v1.OperationMetadata.Builder.class); + com.google.cloud.vpcaccess.v1.OperationMetadata.class, + com.google.cloud.vpcaccess.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.vpcaccess.v1.OperationMetadata.newBuilder() @@ -521,16 +582,15 @@ 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(); @@ -554,9 +614,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto + .internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -575,7 +635,8 @@ public com.google.cloud.vpcaccess.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.vpcaccess.v1.OperationMetadata buildPartial() { - com.google.cloud.vpcaccess.v1.OperationMetadata result = new com.google.cloud.vpcaccess.v1.OperationMetadata(this); + com.google.cloud.vpcaccess.v1.OperationMetadata result = + new com.google.cloud.vpcaccess.v1.OperationMetadata(this); result.method_ = method_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -596,38 +657,39 @@ public com.google.cloud.vpcaccess.v1.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.vpcaccess.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.vpcaccess.v1.OperationMetadata)other); + return mergeFrom((com.google.cloud.vpcaccess.v1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -635,7 +697,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.vpcaccess.v1.OperationMetadata other) { - if (other == com.google.cloud.vpcaccess.v1.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.vpcaccess.v1.OperationMetadata.getDefaultInstance()) + return this; if (!other.getMethod().isEmpty()) { method_ = other.method_; onChanged(); @@ -681,19 +744,21 @@ public Builder mergeFrom( private java.lang.Object method_ = ""; /** + * + * *
      * Output only. Method that initiated the operation e.g.
      * google.cloud.vpcaccess.v1.Connectors.CreateConnector.
      * 
* * string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The method. */ public java.lang.String getMethod() { java.lang.Object ref = method_; 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(); method_ = s; return s; @@ -702,21 +767,22 @@ public java.lang.String getMethod() { } } /** + * + * *
      * Output only. Method that initiated the operation e.g.
      * google.cloud.vpcaccess.v1.Connectors.CreateConnector.
      * 
* * string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for method. */ - public com.google.protobuf.ByteString - getMethodBytes() { + public com.google.protobuf.ByteString getMethodBytes() { java.lang.Object ref = method_; 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); method_ = b; return b; } else { @@ -724,57 +790,64 @@ public java.lang.String getMethod() { } } /** + * + * *
      * Output only. Method that initiated the operation e.g.
      * google.cloud.vpcaccess.v1.Connectors.CreateConnector.
      * 
* * string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The method to set. * @return This builder for chaining. */ - public Builder setMethod( - java.lang.String value) { + public Builder setMethod(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + method_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Method that initiated the operation e.g.
      * google.cloud.vpcaccess.v1.Connectors.CreateConnector.
      * 
* * string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearMethod() { - + method_ = getDefaultInstance().getMethod(); onChanged(); return this; } /** + * + * *
      * Output only. Method that initiated the operation e.g.
      * google.cloud.vpcaccess.v1.Connectors.CreateConnector.
      * 
* * string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for method to set. * @return This builder for chaining. */ - public Builder setMethodBytes( - com.google.protobuf.ByteString value) { + public Builder setMethodBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + method_ = value; onChanged(); return this; @@ -782,39 +855,58 @@ public Builder setMethodBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -830,14 +922,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -848,17 +943,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -870,11 +969,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -888,48 +991,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Time when the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -937,24 +1056,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Output only. Time when the operation completed.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * Output only. Time when the operation completed.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -965,11 +1095,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. Time when the operation completed.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -985,14 +1118,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the operation completed.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1003,17 +1138,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. Time when the operation completed.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1025,11 +1163,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when the operation completed.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1043,48 +1184,59 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. Time when the operation completed.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when the operation completed.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Output only. Time when the operation completed.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1092,19 +1244,23 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Output only. Name of the resource that this operation is acting on e.g.
      * projects/my-project/locations/us-central1/connectors/v1.
      * 
* - * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1113,21 +1269,24 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Name of the resource that this operation is acting on e.g.
      * projects/my-project/locations/us-central1/connectors/v1.
      * 
* - * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1135,64 +1294,77 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Name of the resource that this operation is acting on e.g.
      * projects/my-project/locations/us-central1/connectors/v1.
      * 
* - * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Name of the resource that this operation is acting on e.g.
      * projects/my-project/locations/us-central1/connectors/v1.
      * 
* - * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
      * Output only. Name of the resource that this operation is acting on e.g.
      * projects/my-project/locations/us-central1/connectors/v1.
      * 
* - * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + 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); } @@ -1202,12 +1374,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vpcaccess.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.vpcaccess.v1.OperationMetadata) private static final com.google.cloud.vpcaccess.v1.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.vpcaccess.v1.OperationMetadata(); } @@ -1216,16 +1388,16 @@ public static com.google.cloud.vpcaccess.v1.OperationMetadata getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1240,6 +1412,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vpcaccess.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadataOrBuilder.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadataOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadataOrBuilder.java rename to proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadataOrBuilder.java index a2695af3..f1e221fd 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/OperationMetadataOrBuilder.java @@ -1,107 +1,159 @@ +/* + * 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/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vpcaccess.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Method that initiated the operation e.g.
    * google.cloud.vpcaccess.v1.Connectors.CreateConnector.
    * 
* * string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The method. */ java.lang.String getMethod(); /** + * + * *
    * Output only. Method that initiated the operation e.g.
    * google.cloud.vpcaccess.v1.Connectors.CreateConnector.
    * 
* * string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for method. */ - com.google.protobuf.ByteString - getMethodBytes(); + com.google.protobuf.ByteString getMethodBytes(); /** + * + * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Time when the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Time when the operation completed.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. Time when the operation completed.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. Time when the operation completed.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Name of the resource that this operation is acting on e.g.
    * projects/my-project/locations/us-central1/connectors/v1.
    * 
* - * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Output only. Name of the resource that this operation is acting on e.g.
    * projects/my-project/locations/us-central1/connectors/v1.
    * 
* - * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); } diff --git a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessProto.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessProto.java new file mode 100644 index 00000000..39ee2b17 --- /dev/null +++ b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessProto.java @@ -0,0 +1,242 @@ +/* + * 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/cloud/vpcaccess/v1/vpc_access.proto + +package com.google.cloud.vpcaccess.v1; + +public final class VpcAccessProto { + private VpcAccessProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_Connector_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n*google/cloud/vpcaccess/v1/vpc_access.p" + + "roto\022\031google.cloud.vpcaccess.v1\032\034google/" + + "api/annotations.proto\032\027google/api/client" + + ".proto\032\037google/api/field_behavior.proto\032" + + "\031google/api/resource.proto\032#google/longr" + + "unning/operations.proto\032\037google/protobuf" + + "/timestamp.proto\"\204\004\n\tConnector\022\014\n\004name\030\001" + + " \001(\t\022\017\n\007network\030\002 \001(\t\022\025\n\rip_cidr_range\030\003" + + " \001(\t\022>\n\005state\030\004 \001(\0162*.google.cloud.vpcac" + + "cess.v1.Connector.StateB\003\340A\003\022\026\n\016min_thro" + + "ughput\030\005 \001(\005\022\026\n\016max_throughput\030\006 \001(\005\022\037\n\022" + + "connected_projects\030\007 \003(\tB\003\340A\003\022;\n\006subnet\030" + + "\010 \001(\0132+.google.cloud.vpcaccess.v1.Connec" + + "tor.Subnet\032*\n\006Subnet\022\014\n\004name\030\001 \001(\t\022\022\n\npr" + + "oject_id\030\002 \001(\t\"^\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\t\n\005READY\020\001\022\014\n\010CREATING\020\002\022\014\n\010DELET" + + "ING\020\003\022\t\n\005ERROR\020\004\022\014\n\010UPDATING\020\005:g\352Ad\n\"vpc" + + "access.googleapis.com/Connector\022>project" + + "s/{project}/locations/{location}/connect" + + "ors/{connector}\"\254\001\n\026CreateConnectorReque" + + "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.go" + + "ogleapis.com/Location\022\031\n\014connector_id\030\002 " + + "\001(\tB\003\340A\002\022<\n\tconnector\030\003 \001(\0132$.google.clo" + + "ud.vpcaccess.v1.ConnectorB\003\340A\002\"O\n\023GetCon" + + "nectorRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpc" + + "access.googleapis.com/Connector\"y\n\025ListC" + + "onnectorsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" + + "\n!locations.googleapis.com/Location\022\021\n\tp" + + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\026Li" + + "stConnectorsResponse\0228\n\nconnectors\030\001 \003(\013" + + "2$.google.cloud.vpcaccess.v1.Connector\022\027" + + "\n\017next_page_token\030\002 \001(\t\"R\n\026DeleteConnect" + + "orRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpcacce" + + "ss.googleapis.com/Connector\"\315\001\n\021Operatio" + + "nMetadata\022\023\n\006method\030\001 \001(\tB\003\340A\003\0224\n\013create" + + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0221\n\010end_time\030\003 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\022:\n\006target\030\005 \001(\tB*\340A\003\372A$\n" + + "\"vpcaccess.googleapis.com/Connector2\374\006\n\020" + + "VpcAccessService\022\350\001\n\017CreateConnector\0221.g" + + "oogle.cloud.vpcaccess.v1.CreateConnector" + + "Request\032\035.google.longrunning.Operation\"\202" + + "\001\202\323\344\223\002;\"./v1/{parent=projects/*/location" + + "s/*}/connectors:\tconnector\332A\035parent,conn" + + "ector_id,connector\312A\036\n\tConnector\022\021Operat" + + "ionMetadata\022\243\001\n\014GetConnector\022..google.cl" + + "oud.vpcaccess.v1.GetConnectorRequest\032$.g" + + "oogle.cloud.vpcaccess.v1.Connector\"=\202\323\344\223" + + "\0020\022./v1/{name=projects/*/locations/*/con" + + "nectors/*}\332A\004name\022\266\001\n\016ListConnectors\0220.g" + + "oogle.cloud.vpcaccess.v1.ListConnectorsR" + + "equest\0321.google.cloud.vpcaccess.v1.ListC" + + "onnectorsResponse\"?\202\323\344\223\0020\022./v1/{parent=p" + + "rojects/*/locations/*}/connectors\332A\006pare" + + "nt\022\317\001\n\017DeleteConnector\0221.google.cloud.vp" + + "caccess.v1.DeleteConnectorRequest\032\035.goog" + + "le.longrunning.Operation\"j\202\323\344\223\0020*./v1/{n" + + "ame=projects/*/locations/*/connectors/*}" + + "\332A\004name\312A*\n\025google.protobuf.Empty\022\021Opera" + + "tionMetadata\032L\312A\030vpcaccess.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/clou" + + "d-platformB\314\001\n\035com.google.cloud.vpcacces" + + "s.v1B\016VpcAccessProtoP\001ZBgoogle.golang.or" + + "g/genproto/googleapis/cloud/vpcaccess/v1" + + ";vpcaccess\252\002\031Google.Cloud.VpcAccess.V1\312\002" + + "\031Google\\Cloud\\VpcAccess\\V1\352\002\034Google::Clo" + + "ud::VpcAccess::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.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_vpcaccess_v1_Connector_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_Connector_descriptor, + new java.lang.String[] { + "Name", + "Network", + "IpCidrRange", + "State", + "MinThroughput", + "MaxThroughput", + "ConnectedProjects", + "Subnet", + }); + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor = + internal_static_google_cloud_vpcaccess_v1_Connector_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor, + new java.lang.String[] { + "Name", "ProjectId", + }); + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor, + new java.lang.String[] { + "Parent", "ConnectorId", "Connector", + }); + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor, + new java.lang.String[] { + "Connectors", "NextPageToken", + }); + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "Method", "CreateTime", "EndTime", "Target", + }); + 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); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/proto/google/cloud/vpcaccess/v1/vpc_access.proto b/proto-google-cloud-vpcaccess-v1/src/main/proto/google/cloud/vpcaccess/v1/vpc_access.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/proto/google/cloud/vpcaccess/v1/vpc_access.proto rename to proto-google-cloud-vpcaccess-v1/src/main/proto/google/cloud/vpcaccess/v1/vpc_access.proto