From 052e1dfbb09456db7a60e1486758a822a1ff5c75 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 23 Aug 2022 16:49:31 +0000 Subject: [PATCH 1/6] feat: Adds support for configuring scaling settings Clients can now specify machine type and min/max instances when creating a connector. PiperOrigin-RevId: 469463049 Source-Link: https://github.com/googleapis/googleapis/commit/17b39f10ef6c8524457ee290023ab973134a7888 Source-Link: https://github.com/googleapis/googleapis-gen/commit/88b74ac69e76791a020cb543747c090655ee7144 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiODhiNzRhYzY5ZTc2NzkxYTAyMGNiNTQzNzQ3YzA5MDY1NWVlNzE0NCJ9 --- .../vpcaccess/v1/VpcAccessServiceGrpc.java | 722 ------- .../vpcaccess/v1/VpcAccessServiceClient.java | 187 +- .../v1/VpcAccessServiceSettings.java | 23 +- .../cloud/vpcaccess/v1/gapic_metadata.json | 3 + .../cloud/vpcaccess/v1/package-info.java | 4 +- .../GrpcVpcAccessServiceCallableFactory.java | 0 .../v1/stub/GrpcVpcAccessServiceStub.java | 45 + ...tpJsonVpcAccessServiceCallableFactory.java | 0 .../v1/stub/HttpJsonVpcAccessServiceStub.java | 64 + .../v1/stub/VpcAccessServiceStub.java | 12 + .../v1/stub/VpcAccessServiceStubSettings.java | 112 +- .../cloud/vpcaccess/v1/MockLocations.java | 59 + .../cloud/vpcaccess/v1/MockLocationsImpl.java | 83 + .../vpcaccess/v1/MockVpcAccessService.java | 0 .../v1/MockVpcAccessServiceImpl.java | 0 .../VpcAccessServiceClientHttpJsonTest.java | 78 + .../v1/VpcAccessServiceClientTest.java | 80 +- .../vpcaccess/v1/VpcAccessServiceGrpc.java | 579 ++++++ .../google/cloud/vpcaccess/v1/Connector.java | 1666 +++++++++-------- .../cloud/vpcaccess/v1/ConnectorName.java | 0 .../vpcaccess/v1/ConnectorOrBuilder.java | 145 +- .../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 | 215 +++ .../cloud/vpcaccess/v1/vpc_access.proto | 41 +- .../getconnector/SyncGetConnector.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createconnector/AsyncCreateConnector.java | 0 .../AsyncCreateConnectorLRO.java | 0 .../createconnector/SyncCreateConnector.java | 0 ...eConnectorLocationnameStringConnector.java | 6 +- ...cCreateConnectorStringStringConnector.java | 0 .../deleteconnector/AsyncDeleteConnector.java | 0 .../AsyncDeleteConnectorLRO.java | 0 .../deleteconnector/SyncDeleteConnector.java | 1 + .../SyncDeleteConnectorConnectorname.java | 1 + .../SyncDeleteConnectorString.java | 1 + .../getconnector/AsyncGetConnector.java | 0 .../getconnector/SyncGetConnector.java | 0 .../SyncGetConnectorConnectorname.java | 0 .../getconnector/SyncGetConnectorString.java | 0 .../listconnectors/AsyncListConnectors.java | 0 .../AsyncListConnectorsPaged.java | 0 .../listconnectors/SyncListConnectors.java | 0 .../SyncListConnectorsLocationname.java | 0 .../SyncListConnectorsString.java | 0 .../listlocations/AsyncListLocations.java | 51 + .../AsyncListLocationsPaged.java | 59 + .../listlocations/SyncListLocations.java | 47 + .../getconnector/SyncGetConnector.java | 0 .../v1/DeleteConnectorRequestOrBuilder.java | 54 - .../v1/GetConnectorRequestOrBuilder.java | 54 - .../cloud/vpcaccess/v1/VpcAccessProto.java | 242 --- 66 files changed, 3831 insertions(+), 3926 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 (82%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java (90%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/gapic_metadata.json (89%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/package-info.java (92%) 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 (84%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceCallableFactory.java (100%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java (84%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStub.java (84%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java (82%) create mode 100644 owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocations.java create mode 100644 owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocationsImpl.java 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/VpcAccessServiceClientHttpJsonTest.java (85%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientTest.java (84%) 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 (68%) 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 (70%) 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 (65%) 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 (95%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/stub/vpcaccessservicestubsettings/getconnector/SyncGetConnector.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnector.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnectorLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnector.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorLocationnameStringConnector.java (88%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorStringStringConnector.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnector.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnectorLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnector.java (98%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java (97%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java (97%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/AsyncGetConnector.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnector.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorConnectorname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectors.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectorsPaged.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectors.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsLocationname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsString.java (100%) create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocations.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocationsPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/SyncListLocations.java rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservicesettings/getconnector/SyncGetConnector.java (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 ccc23836..00000000 --- a/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java +++ /dev/null @@ -1,722 +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") -@io.grpc.stub.annotations.GrpcGenerated -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 82% 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 e2057d60..18da519b 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 @@ -28,6 +28,9 @@ import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.cloud.vpcaccess.v1.stub.VpcAccessServiceStub; import com.google.cloud.vpcaccess.v1.stub.VpcAccessServiceStubSettings; import com.google.common.util.concurrent.MoreExecutors; @@ -64,13 +67,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. *
* @@ -722,6 +725,104 @@ public final UnaryCallable deleteConnectorCal return stub.deleteConnectorCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : vpcAccessServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       vpcAccessServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         vpcAccessServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + @Override public final void close() { stub.close(); @@ -754,10 +855,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( @@ -807,10 +905,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) { @@ -827,4 +922,74 @@ protected ListConnectorsFixedSizeCollection createCollection( return new ListConnectorsFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, 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 90% 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 b0207fa7..fff6bdba 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 @@ -17,6 +17,7 @@ package com.google.cloud.vpcaccess.v1; import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListConnectorsPagedResponse; +import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListLocationsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -29,8 +30,11 @@ 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.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.vpcaccess.v1.stub.VpcAccessServiceStubSettings; import com.google.longrunning.Operation; import com.google.protobuf.Empty; @@ -45,9 +49,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 @@ -109,6 +113,12 @@ public UnaryCallSettings deleteConnectorSetti return ((VpcAccessServiceStubSettings) getStubSettings()).deleteConnectorOperationSettings(); } + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((VpcAccessServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + public static final VpcAccessServiceSettings create(VpcAccessServiceStubSettings stub) throws IOException { return new VpcAccessServiceSettings.Builder(stub.toBuilder()).build(); @@ -258,6 +268,13 @@ public UnaryCallSettings.Builder deleteConnec return getStubSettingsBuilder().deleteConnectorOperationSettings(); } + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + @Override public VpcAccessServiceSettings build() throws IOException { return new VpcAccessServiceSettings(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 89% 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 index 706c30f2..105f48a5 100644 --- 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 @@ -21,6 +21,9 @@ }, "ListConnectors": { "methods": ["listConnectors", "listConnectors", "listConnectors", "listConnectorsPagedCallable", "listConnectorsCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] } } } 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 92% 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 index ad55ba29..221caac9 100644 --- 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 @@ -15,7 +15,9 @@ */ /** - * The interfaces provided are listed below, along with usage samples. + * A client to Serverless VPC Access API + * + *

The interfaces provided are listed below, along with usage samples. * *

======================= VpcAccessServiceClient ======================= * 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 84% 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 eb7b7474..21418979 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 @@ -17,6 +17,7 @@ package com.google.cloud.vpcaccess.v1.stub; import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListConnectorsPagedResponse; +import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListLocationsPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -25,6 +26,8 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.vpcaccess.v1.Connector; import com.google.cloud.vpcaccess.v1.CreateConnectorRequest; import com.google.cloud.vpcaccess.v1.DeleteConnectorRequest; @@ -39,6 +42,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -90,6 +94,17 @@ public class GrpcVpcAccessServiceStub extends VpcAccessServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .build(); + private final UnaryCallable createConnectorCallable; private final OperationCallable createConnectorOperationCallable; @@ -100,6 +115,9 @@ public class GrpcVpcAccessServiceStub extends VpcAccessServiceStub { private final UnaryCallable deleteConnectorCallable; private final OperationCallable deleteConnectorOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -186,6 +204,16 @@ protected GrpcVpcAccessServiceStub( return params.build(); }) .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); this.createConnectorCallable = callableFactory.createUnaryCallable( @@ -214,6 +242,12 @@ protected GrpcVpcAccessServiceStub( settings.deleteConnectorOperationSettings(), clientContext, operationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -261,6 +295,17 @@ public UnaryCallable deleteConnectorCallable( return deleteConnectorOperationCallable; } + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + @Override public final void close() { try { diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceCallableFactory.java similarity index 100% rename from google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceCallableFactory.java diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java similarity index 84% rename from google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java rename to owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java index f610e4c6..37e2d7bf 100644 --- a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java +++ b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java @@ -17,6 +17,7 @@ package com.google.cloud.vpcaccess.v1.stub; import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListConnectorsPagedResponse; +import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListLocationsPagedResponse; import com.google.api.core.BetaApi; import com.google.api.core.InternalApi; @@ -30,9 +31,12 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.vpcaccess.v1.Connector; import com.google.cloud.vpcaccess.v1.CreateConnectorRequest; import com.google.cloud.vpcaccess.v1.DeleteConnectorRequest; @@ -212,6 +216,39 @@ public class HttpJsonVpcAccessServiceStub extends VpcAccessServiceStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*}/locations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable createConnectorCallable; private final OperationCallable createConnectorOperationCallable; @@ -222,6 +259,9 @@ public class HttpJsonVpcAccessServiceStub extends VpcAccessServiceStub { private final UnaryCallable deleteConnectorCallable; private final OperationCallable deleteConnectorOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; private final BackgroundResource backgroundResources; private final HttpJsonOperationsStub httpJsonOperationsStub; @@ -289,6 +329,12 @@ protected HttpJsonVpcAccessServiceStub( .setMethodDescriptor(deleteConnectorMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); this.createConnectorCallable = callableFactory.createUnaryCallable( @@ -317,6 +363,12 @@ protected HttpJsonVpcAccessServiceStub( settings.deleteConnectorOperationSettings(), clientContext, httpJsonOperationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -329,6 +381,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(getConnectorMethodDescriptor); methodDescriptors.add(listConnectorsMethodDescriptor); methodDescriptors.add(deleteConnectorMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); return methodDescriptors; } @@ -374,6 +427,17 @@ public UnaryCallable deleteConnectorCallable( return deleteConnectorOperationCallable; } + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + @Override public final void close() { try { 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 84% 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 index 18d84e28..d92d7f2f 100644 --- 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 @@ -17,10 +17,13 @@ package com.google.cloud.vpcaccess.v1.stub; import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListConnectorsPagedResponse; +import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListLocationsPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.vpcaccess.v1.Connector; import com.google.cloud.vpcaccess.v1.CreateConnectorRequest; import com.google.cloud.vpcaccess.v1.DeleteConnectorRequest; @@ -81,6 +84,15 @@ public UnaryCallable deleteConnectorCallable( throw new UnsupportedOperationException("Not implemented: deleteConnectorCallable()"); } + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + @Override public abstract void close(); } 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 82% 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 01827378..61d83549 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 @@ -17,6 +17,7 @@ package com.google.cloud.vpcaccess.v1.stub; import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListConnectorsPagedResponse; +import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListLocationsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; @@ -47,6 +48,9 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.cloud.vpcaccess.v1.Connector; import com.google.cloud.vpcaccess.v1.CreateConnectorRequest; import com.google.cloud.vpcaccess.v1.DeleteConnectorRequest; @@ -72,9 +76,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 @@ -115,6 +119,9 @@ public class VpcAccessServiceStubSettings extends StubSettings deleteConnectorSettings; private final OperationCallSettings deleteConnectorOperationSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; private static final PagedListDescriptor LIST_CONNECTORS_PAGE_STR_DESC = @@ -153,6 +160,42 @@ public Iterable extractResources(ListConnectorsResponse payload) { } }; + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList() == null + ? ImmutableList.of() + : payload.getLocationsList(); + } + }; + private static final PagedListResponseFactory< ListConnectorsRequest, ListConnectorsResponse, ListConnectorsPagedResponse> LIST_CONNECTORS_PAGE_STR_FACT = @@ -170,6 +213,23 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to createConnector. */ public UnaryCallSettings createConnectorSettings() { return createConnectorSettings; @@ -204,6 +264,12 @@ public UnaryCallSettings deleteConnectorSetti return deleteConnectorOperationSettings; } + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + public VpcAccessServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -316,6 +382,7 @@ protected VpcAccessServiceStubSettings(Builder settingsBuilder) throws IOExcepti listConnectorsSettings = settingsBuilder.listConnectorsSettings().build(); deleteConnectorSettings = settingsBuilder.deleteConnectorSettings().build(); deleteConnectorOperationSettings = settingsBuilder.deleteConnectorOperationSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); } /** Builder for VpcAccessServiceStubSettings. */ @@ -334,6 +401,9 @@ public static class Builder extends StubSettings.Builder deleteConnectorOperationSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -342,6 +412,11 @@ public static class Builder extends StubSettings.BuildernewArrayList())); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.UNAVAILABLE, StatusCode.Code.UNKNOWN))); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -358,6 +433,17 @@ public static class Builder extends StubSettings.Builder>of( createConnectorSettings, getConnectorSettings, listConnectorsSettings, - deleteConnectorSettings); + deleteConnectorSettings, + listLocationsSettings); initDefaults(this); } @@ -393,13 +481,15 @@ protected Builder(VpcAccessServiceStubSettings settings) { listConnectorsSettings = settings.listConnectorsSettings.toBuilder(); deleteConnectorSettings = settings.deleteConnectorSettings.toBuilder(); deleteConnectorOperationSettings = settings.deleteConnectorOperationSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( createConnectorSettings, getConnectorSettings, listConnectorsSettings, - deleteConnectorSettings); + deleteConnectorSettings, + listLocationsSettings); } private static Builder createDefault() { @@ -449,6 +539,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .createConnectorOperationSettings() .setInitialCallSettings( @@ -553,6 +648,13 @@ public UnaryCallSettings.Builder deleteConnec return deleteConnectorOperationSettings; } + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + @Override public VpcAccessServiceStubSettings build() throws IOException { return new VpcAccessServiceStubSettings(this); diff --git a/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocations.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocations.java new file mode 100644 index 00000000..2ea202d4 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocations.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocations implements MockGrpcService { + private final MockLocationsImpl serviceImpl; + + public MockLocations() { + serviceImpl = new MockLocationsImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocationsImpl.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocationsImpl.java new file mode 100644 index 00000000..3df7f0f7 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocationsImpl.java @@ -0,0 +1,83 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 com.google.api.core.BetaApi; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.LocationsGrpc.LocationsImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocationsImpl extends LocationsImplBase { + private List requests; + private Queue responses; + + public MockLocationsImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listLocations( + ListLocationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLocationsResponse) { + requests.add(request); + responseObserver.onNext(((ListLocationsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListLocations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLocationsResponse.class.getName(), + Exception.class.getName()))); + } + } +} 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/VpcAccessServiceClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientHttpJsonTest.java similarity index 85% rename from google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientHttpJsonTest.java rename to owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientHttpJsonTest.java index e2487409..a13348e3 100644 --- a/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientHttpJsonTest.java +++ b/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientHttpJsonTest.java @@ -17,6 +17,7 @@ package com.google.cloud.vpcaccess.v1; import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListConnectorsPagedResponse; +import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListLocationsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.httpjson.GaxHttpJsonProperties; @@ -27,6 +28,9 @@ import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.cloud.vpcaccess.v1.stub.HttpJsonVpcAccessServiceStub; import com.google.common.collect.Lists; import com.google.longrunning.Operation; @@ -91,6 +95,9 @@ public void createConnectorTest() throws Exception { .setMaxThroughput(1407819749) .addAllConnectedProjects(new ArrayList()) .setSubnet(Connector.Subnet.newBuilder().build()) + .setMachineType("machineType-218117087") + .setMinInstances(1491624145) + .setMaxInstances(-330682013) .build(); Operation resultOperation = Operation.newBuilder() @@ -150,6 +157,9 @@ public void createConnectorTest2() throws Exception { .setMaxThroughput(1407819749) .addAllConnectedProjects(new ArrayList()) .setSubnet(Connector.Subnet.newBuilder().build()) + .setMachineType("machineType-218117087") + .setMinInstances(1491624145) + .setMaxInstances(-330682013) .build(); Operation resultOperation = Operation.newBuilder() @@ -209,6 +219,9 @@ public void getConnectorTest() throws Exception { .setMaxThroughput(1407819749) .addAllConnectedProjects(new ArrayList()) .setSubnet(Connector.Subnet.newBuilder().build()) + .setMachineType("machineType-218117087") + .setMinInstances(1491624145) + .setMaxInstances(-330682013) .build(); mockService.addResponse(expectedResponse); @@ -259,6 +272,9 @@ public void getConnectorTest2() throws Exception { .setMaxThroughput(1407819749) .addAllConnectedProjects(new ArrayList()) .setSubnet(Connector.Subnet.newBuilder().build()) + .setMachineType("machineType-218117087") + .setMinInstances(1491624145) + .setMaxInstances(-330682013) .build(); mockService.addResponse(expectedResponse); @@ -487,4 +503,66 @@ public void deleteConnectorExceptionTest2() throws Exception { } catch (ExecutionException e) { } } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } 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 84% 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 index 6fbcbdcd..4a5f4098 100644 --- 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 @@ -17,6 +17,7 @@ package com.google.cloud.vpcaccess.v1; import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListConnectorsPagedResponse; +import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListLocationsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -26,6 +27,9 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.common.collect.Lists; import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; @@ -48,6 +52,7 @@ @Generated("by gapic-generator-java") public class VpcAccessServiceClientTest { + private static MockLocations mockLocations; private static MockServiceHelper mockServiceHelper; private static MockVpcAccessService mockVpcAccessService; private LocalChannelProvider channelProvider; @@ -56,9 +61,11 @@ public class VpcAccessServiceClientTest { @BeforeClass public static void startStaticServer() { mockVpcAccessService = new MockVpcAccessService(); + mockLocations = new MockLocations(); mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockVpcAccessService)); + UUID.randomUUID().toString(), + Arrays.asList(mockVpcAccessService, mockLocations)); mockServiceHelper.start(); } @@ -95,6 +102,9 @@ public void createConnectorTest() throws Exception { .setMaxThroughput(1407819749) .addAllConnectedProjects(new ArrayList()) .setSubnet(Connector.Subnet.newBuilder().build()) + .setMachineType("machineType-218117087") + .setMinInstances(1491624145) + .setMaxInstances(-330682013) .build(); Operation resultOperation = Operation.newBuilder() @@ -153,6 +163,9 @@ public void createConnectorTest2() throws Exception { .setMaxThroughput(1407819749) .addAllConnectedProjects(new ArrayList()) .setSubnet(Connector.Subnet.newBuilder().build()) + .setMachineType("machineType-218117087") + .setMinInstances(1491624145) + .setMaxInstances(-330682013) .build(); Operation resultOperation = Operation.newBuilder() @@ -211,6 +224,9 @@ public void getConnectorTest() throws Exception { .setMaxThroughput(1407819749) .addAllConnectedProjects(new ArrayList()) .setSubnet(Connector.Subnet.newBuilder().build()) + .setMachineType("machineType-218117087") + .setMinInstances(1491624145) + .setMaxInstances(-330682013) .build(); mockVpcAccessService.addResponse(expectedResponse); @@ -255,6 +271,9 @@ public void getConnectorTest2() throws Exception { .setMaxThroughput(1407819749) .addAllConnectedProjects(new ArrayList()) .setSubnet(Connector.Subnet.newBuilder().build()) + .setMachineType("machineType-218117087") + .setMinInstances(1491624145) + .setMaxInstances(-330682013) .build(); mockVpcAccessService.addResponse(expectedResponse); @@ -459,4 +478,63 @@ public void deleteConnectorExceptionTest2() throws Exception { Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } 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..818b995d --- /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,579 @@ +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") +@io.grpc.stub.annotations.GrpcGenerated +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 68% 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 f647dd8a..983a4c5b 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,61 +1,45 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/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_ = ""; ipCidrRange_ = ""; state_ = 0; connectedProjects_ = com.google.protobuf.LazyStringArrayList.EMPTY; + machineType_ = ""; } @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,77 +59,85 @@ 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; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + machineType_ = s; + break; + } + case 88: { + + minInstances_ = input.readInt32(); + break; + } + case 96: { + + maxInstances_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -153,7 +145,8 @@ private Connector( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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(); @@ -162,35 +155,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.
      * 
@@ -199,8 +186,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Connector is deployed and ready to receive traffic.
      * 
@@ -209,8 +194,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(1), /** - * - * *
      * An Insert operation is in progress. Transient condition.
      * 
@@ -219,8 +202,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(2), /** - * - * *
      * A Delete operation is in progress. Transient condition.
      * 
@@ -229,8 +210,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(3), /** - * - * *
      * Connector is in a bad state, manual deletion recommended.
      * 
@@ -239,8 +218,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ERROR(4), /** - * - * *
      * The connector is being updated.
      * 
@@ -252,8 +229,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Invalid state.
      * 
@@ -262,8 +237,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.
      * 
@@ -272,8 +245,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 1; /** - * - * *
      * An Insert operation is in progress. Transient condition.
      * 
@@ -282,8 +253,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 2; /** - * - * *
      * A Delete operation is in progress. Transient condition.
      * 
@@ -292,8 +261,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.
      * 
@@ -302,8 +269,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 4; /** - * - * *
      * The connector is being updated.
      * 
@@ -312,6 +277,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( @@ -336,55 +302,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; @@ -401,14 +364,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
@@ -417,13 +377,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
@@ -432,14 +389,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
@@ -447,13 +402,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
@@ -461,30 +413,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_ = ""; @@ -492,15 +441,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) @@ -519,27 +469,25 @@ 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) { @@ -547,33 +495,29 @@ private Subnet( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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
@@ -582,7 +526,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -591,15 +534,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
@@ -608,15 +550,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 { @@ -627,8 +570,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
@@ -636,7 +577,6 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string project_id = 2; - * * @return The projectId. */ @java.lang.Override @@ -645,15 +585,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
@@ -661,15 +600,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 { @@ -678,7 +618,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -690,7 +629,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -720,16 +660,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; } @@ -750,94 +691,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 @@ -847,32 +782,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() @@ -880,15 +810,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(); @@ -900,9 +831,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 @@ -921,8 +852,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(); @@ -933,41 +863,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; @@ -975,8 +902,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(); @@ -1016,8 +942,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -1026,13 +950,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; @@ -1041,8 +965,6 @@ public java.lang.String getName() { } } /** - * - * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -1051,14 +973,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 { @@ -1066,8 +989,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -1076,22 +997,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
@@ -1100,18 +1019,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
@@ -1120,16 +1036,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; @@ -1137,8 +1053,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
@@ -1146,13 +1060,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; @@ -1161,8 +1075,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
@@ -1170,14 +1082,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 { @@ -1185,8 +1098,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
@@ -1194,22 +1105,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
@@ -1217,18 +1126,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
@@ -1236,21 +1142,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) { @@ -1263,12 +1168,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(); } @@ -1277,16 +1182,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; @@ -1301,19 +1206,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 @@ -1322,29 +1225,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 { @@ -1355,14 +1258,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 @@ -1371,29 +1271,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 { @@ -1404,15 +1304,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 @@ -1421,30 +1318,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 { @@ -1455,54 +1352,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 @@ -1513,14 +1394,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.
+   * Maximum throughput of the connector in Mbps. Default is 300, max is 1000.
    * 
* * int32 max_throughput = 6; - * * @return The maxThroughput. */ @java.lang.Override @@ -1531,45 +1409,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. */ @@ -1577,33 +1444,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 @@ -1611,25 +1472,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.
    * 
@@ -1641,8 +1495,83 @@ public com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder getSubnetOrBuilde return getSubnet(); } - private byte memoizedIsInitialized = -1; + public static final int MACHINE_TYPE_FIELD_NUMBER = 10; + private volatile java.lang.Object machineType_; + /** + *
+   * Machine type of VM Instance underlying connector. Default is e2-micro
+   * 
+ * + * string machine_type = 10; + * @return The machineType. + */ + @java.lang.Override + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineType_ = s; + return s; + } + } + /** + *
+   * Machine type of VM Instance underlying connector. Default is e2-micro
+   * 
+ * + * string machine_type = 10; + * @return The bytes for machineType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int MIN_INSTANCES_FIELD_NUMBER = 11; + private int minInstances_; + /** + *
+   * Minimum value of instances in autoscaling group underlying the connector.
+   * 
+ * + * int32 min_instances = 11; + * @return The minInstances. + */ + @java.lang.Override + public int getMinInstances() { + return minInstances_; + } + + public static final int MAX_INSTANCES_FIELD_NUMBER = 12; + private int maxInstances_; + /** + *
+   * Maximum value of instances in autoscaling group underlying the connector.
+   * 
+ * + * int32 max_instances = 12; + * @return The maxInstances. + */ + @java.lang.Override + public int getMaxInstances() { + return maxInstances_; + } + + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1654,7 +1583,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1679,6 +1609,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (subnet_ != null) { output.writeMessage(8, getSubnet()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, machineType_); + } + if (minInstances_ != 0) { + output.writeInt32(11, minInstances_); + } + if (maxInstances_ != 0) { + output.writeInt32(12, maxInstances_); + } unknownFields.writeTo(output); } @@ -1698,13 +1637,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; @@ -1715,7 +1657,19 @@ 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()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, machineType_); + } + if (minInstances_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(11, minInstances_); + } + if (maxInstances_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(12, maxInstances_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1725,24 +1679,37 @@ 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 (!getMachineType() + .equals(other.getMachineType())) return false; + if (getMinInstances() + != other.getMinInstances()) return false; + if (getMaxInstances() + != other.getMaxInstances()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1774,132 +1741,129 @@ public int hashCode() { hash = (37 * hash) + SUBNET_FIELD_NUMBER; hash = (53 * hash) + getSubnet().hashCode(); } + hash = (37 * hash) + MACHINE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMachineType().hashCode(); + hash = (37 * hash) + MIN_INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getMinInstances(); + hash = (37 * hash) + MAX_INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getMaxInstances(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; 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() @@ -1907,15 +1871,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,13 +1904,19 @@ public Builder clear() { subnet_ = null; subnetBuilder_ = null; } + machineType_ = ""; + + minInstances_ = 0; + + maxInstances_ = 0; + return this; } @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 @@ -1964,8 +1935,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_; @@ -1983,6 +1953,9 @@ public com.google.cloud.vpcaccess.v1.Connector buildPartial() { } else { result.subnet_ = subnetBuilder_.build(); } + result.machineType_ = machineType_; + result.minInstances_ = minInstances_; + result.maxInstances_ = maxInstances_; onBuilt(); return result; } @@ -1991,39 +1964,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; @@ -2066,6 +2038,16 @@ public Builder mergeFrom(com.google.cloud.vpcaccess.v1.Connector other) { if (other.hasSubnet()) { mergeSubnet(other.getSubnet()); } + if (!other.getMachineType().isEmpty()) { + machineType_ = other.machineType_; + onChanged(); + } + if (other.getMinInstances() != 0) { + setMinInstances(other.getMinInstances()); + } + if (other.getMaxInstances() != 0) { + setMaxInstances(other.getMaxInstances()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2094,25 +2076,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; @@ -2121,21 +2100,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 { @@ -2143,61 +2121,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; @@ -2205,20 +2176,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; @@ -2227,21 +2196,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 { @@ -2249,61 +2217,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; @@ -2311,21 +2272,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; @@ -2334,22 +2293,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 { @@ -2357,64 +2315,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; @@ -2422,73 +2373,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. */ @@ -2496,41 +2425,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 @@ -2538,51 +2459,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.
+     * Maximum throughput of the connector in Mbps. Default is 300, max is 1000.
      * 
* * int32 max_throughput = 6; - * * @return The maxThroughput. */ @java.lang.Override @@ -2590,90 +2502,71 @@ public int getMaxThroughput() { return maxThroughput_; } /** - * - * *
-     * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
+     * Maximum throughput of the connector in Mbps. Default is 300, 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.
+     * Maximum throughput of the connector in Mbps. Default is 300, 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. */ @@ -2681,95 +2574,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() { @@ -2779,23 +2657,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(); @@ -2804,47 +2679,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.
      * 
@@ -2865,8 +2727,6 @@ public Builder setSubnet(com.google.cloud.vpcaccess.v1.Connector.Subnet value) { return this; } /** - * - * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2885,8 +2745,6 @@ public Builder setSubnet( return this; } /** - * - * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2897,9 +2755,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; } @@ -2911,8 +2767,6 @@ public Builder mergeSubnet(com.google.cloud.vpcaccess.v1.Connector.Subnet value) return this; } /** - * - * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2931,8 +2785,6 @@ public Builder clearSubnet() { return this; } /** - * - * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2940,13 +2792,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.
      * 
@@ -2957,14 +2807,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.
      * 
@@ -2972,24 +2819,203 @@ 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_; } + private java.lang.Object machineType_ = ""; + /** + *
+     * Machine type of VM Instance underlying connector. Default is e2-micro
+     * 
+ * + * string machine_type = 10; + * @return The machineType. + */ + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Machine type of VM Instance underlying connector. Default is e2-micro
+     * 
+ * + * string machine_type = 10; + * @return The bytes for machineType. + */ + public com.google.protobuf.ByteString + getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Machine type of VM Instance underlying connector. Default is e2-micro
+     * 
+ * + * string machine_type = 10; + * @param value The machineType to set. + * @return This builder for chaining. + */ + public Builder setMachineType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + machineType_ = value; + onChanged(); + return this; + } + /** + *
+     * Machine type of VM Instance underlying connector. Default is e2-micro
+     * 
+ * + * string machine_type = 10; + * @return This builder for chaining. + */ + public Builder clearMachineType() { + + machineType_ = getDefaultInstance().getMachineType(); + onChanged(); + return this; + } + /** + *
+     * Machine type of VM Instance underlying connector. Default is e2-micro
+     * 
+ * + * string machine_type = 10; + * @param value The bytes for machineType to set. + * @return This builder for chaining. + */ + public Builder setMachineTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + machineType_ = value; + onChanged(); + return this; + } + + private int minInstances_ ; + /** + *
+     * Minimum value of instances in autoscaling group underlying the connector.
+     * 
+ * + * int32 min_instances = 11; + * @return The minInstances. + */ + @java.lang.Override + public int getMinInstances() { + return minInstances_; + } + /** + *
+     * Minimum value of instances in autoscaling group underlying the connector.
+     * 
+ * + * int32 min_instances = 11; + * @param value The minInstances to set. + * @return This builder for chaining. + */ + public Builder setMinInstances(int value) { + + minInstances_ = value; + onChanged(); + return this; + } + /** + *
+     * Minimum value of instances in autoscaling group underlying the connector.
+     * 
+ * + * int32 min_instances = 11; + * @return This builder for chaining. + */ + public Builder clearMinInstances() { + + minInstances_ = 0; + onChanged(); + return this; + } + + private int maxInstances_ ; + /** + *
+     * Maximum value of instances in autoscaling group underlying the connector.
+     * 
+ * + * int32 max_instances = 12; + * @return The maxInstances. + */ @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public int getMaxInstances() { + return maxInstances_; + } + /** + *
+     * Maximum value of instances in autoscaling group underlying the connector.
+     * 
+ * + * int32 max_instances = 12; + * @param value The maxInstances to set. + * @return This builder for chaining. + */ + public Builder setMaxInstances(int value) { + + maxInstances_ = value; + onChanged(); + return this; + } + /** + *
+     * Maximum value of instances in autoscaling group underlying the connector.
+     * 
+ * + * int32 max_instances = 12; + * @return This builder for chaining. + */ + public Builder clearMaxInstances() { + + maxInstances_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2999,12 +3025,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(); } @@ -3013,16 +3039,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; @@ -3037,4 +3063,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 70% 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..06560236 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.
+   * Maximum throughput of the connector in Mbps. Default is 300, 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.
    * 
@@ -244,4 +175,44 @@ public interface ConnectorOrBuilder * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; */ com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder getSubnetOrBuilder(); + + /** + *
+   * Machine type of VM Instance underlying connector. Default is e2-micro
+   * 
+ * + * string machine_type = 10; + * @return The machineType. + */ + java.lang.String getMachineType(); + /** + *
+   * Machine type of VM Instance underlying connector. Default is e2-micro
+   * 
+ * + * string machine_type = 10; + * @return The bytes for machineType. + */ + com.google.protobuf.ByteString + getMachineTypeBytes(); + + /** + *
+   * Minimum value of instances in autoscaling group underlying the connector.
+   * 
+ * + * int32 min_instances = 11; + * @return The minInstances. + */ + int getMinInstances(); + + /** + *
+   * Maximum value of instances in autoscaling group underlying the connector.
+   * 
+ * + * int32 max_instances = 12; + * @return The maxInstances. + */ + int getMaxInstances(); } 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 7b720628..e37c1af0 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,43 +54,38 @@ 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) { @@ -115,42 +93,35 @@ private CreateConnectorRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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 @@ -159,32 +130,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 { @@ -195,14 +164,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 @@ -211,29 +177,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 { @@ -244,16 +210,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 @@ -261,34 +222,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() { @@ -296,7 +246,6 @@ public com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorOrBuilder() } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -308,7 +257,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -334,7 +284,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; @@ -344,19 +295,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; @@ -383,126 +336,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() @@ -510,15 +454,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(); @@ -536,9 +481,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 @@ -557,8 +502,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) { @@ -574,39 +518,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; @@ -614,8 +557,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(); @@ -646,8 +588,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) { @@ -659,23 +600,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; @@ -684,24 +621,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 { @@ -709,70 +643,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; @@ -780,20 +701,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; @@ -802,21 +721,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 { @@ -824,61 +742,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; @@ -886,58 +797,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) { @@ -953,17 +845,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(); @@ -974,23 +863,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; } @@ -1002,15 +885,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) { @@ -1024,71 +903,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); } @@ -1098,12 +961,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(); } @@ -1112,16 +975,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; @@ -1136,4 +999,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 65% 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 e56ff8aa..bb58e229 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,20 +53,19 @@ 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) { @@ -91,41 +73,34 @@ private DeleteConnectorRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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 @@ -134,31 +109,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 { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -231,126 +204,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() @@ -358,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.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 @@ -397,8 +362,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; @@ -408,39 +372,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; @@ -448,8 +411,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(); @@ -473,8 +435,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) { @@ -486,22 +447,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; @@ -510,23 +467,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 { @@ -534,74 +488,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); } @@ -611,12 +552,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(); } @@ -625,16 +566,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; @@ -649,4 +590,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 ad4cad8e..6ad32b1f 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,20 +53,19 @@ 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) { @@ -91,41 +73,34 @@ private GetConnectorRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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 @@ -134,31 +109,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 { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -231,126 +204,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() @@ -358,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.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 @@ -397,8 +362,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; @@ -408,39 +372,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; @@ -448,8 +411,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(); @@ -473,8 +435,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) { @@ -486,22 +447,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; @@ -510,23 +467,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 { @@ -534,74 +488,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); } @@ -611,12 +552,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(); } @@ -625,16 +566,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; @@ -649,4 +590,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 f4775b63..ea7b5b90 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,32 +54,30 @@ 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) { @@ -104,41 +85,34 @@ private ListConnectorsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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 @@ -147,31 +121,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 { @@ -182,14 +154,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 @@ -200,14 +169,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 @@ -216,29 +182,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 { @@ -247,7 +213,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,7 +224,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -282,7 +248,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -295,17 +262,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; } @@ -329,126 +298,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() @@ -456,15 +416,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(); @@ -478,9 +439,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 @@ -499,8 +460,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_; @@ -512,39 +472,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; @@ -552,8 +511,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(); @@ -584,8 +542,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) { @@ -597,22 +554,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; @@ -621,23 +574,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 { @@ -645,82 +595,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 @@ -728,36 +662,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; @@ -765,20 +693,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; @@ -787,21 +713,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 { @@ -809,68 +734,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); } @@ -880,12 +798,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(); } @@ -894,16 +812,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; @@ -918,4 +836,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 84b3bd38..43929e50 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,31 +55,28 @@ 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) { @@ -104,7 +84,8 @@ private ListConnectorsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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_); @@ -113,27 +94,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.
    * 
@@ -145,8 +121,6 @@ public java.util.List getConnectorsList return connectors_; } /** - * - * *
    * List of Serverless VPC Access connectors.
    * 
@@ -154,13 +128,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.
    * 
@@ -172,8 +144,6 @@ public int getConnectorsCount() { return connectors_.size(); } /** - * - * *
    * List of Serverless VPC Access connectors.
    * 
@@ -185,8 +155,6 @@ public com.google.cloud.vpcaccess.v1.Connector getConnectors(int index) { return connectors_.get(index); } /** - * - * *
    * List of Serverless VPC Access connectors.
    * 
@@ -194,21 +162,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 @@ -217,29 +183,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 { @@ -248,7 +214,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +225,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)); } @@ -277,7 +243,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -290,16 +257,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -323,126 +291,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() @@ -450,17 +409,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getConnectorsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -476,9 +435,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 @@ -497,8 +456,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)) { @@ -518,39 +476,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; @@ -558,8 +515,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()) { @@ -578,10 +534,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_); } @@ -610,8 +565,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) { @@ -620,28 +574,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.
      * 
@@ -656,8 +603,6 @@ public java.util.List getConnectorsList } } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -672,8 +617,6 @@ public int getConnectorsCount() { } } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -688,15 +631,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(); @@ -710,8 +652,6 @@ public Builder setConnectors(int index, com.google.cloud.vpcaccess.v1.Connector return this; } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -730,8 +670,6 @@ public Builder setConnectors( return this; } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -752,15 +690,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(); @@ -774,15 +711,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()); @@ -793,8 +729,6 @@ public Builder addConnectors(com.google.cloud.vpcaccess.v1.Connector.Builder bui return this; } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -813,8 +747,6 @@ public Builder addConnectors( return this; } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -825,7 +757,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); @@ -833,8 +766,6 @@ public Builder addAllConnectors( return this; } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -852,8 +783,6 @@ public Builder clearConnectors() { return this; } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -871,44 +800,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 { @@ -916,8 +840,6 @@ public com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorsOrBuilder(i } } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -925,48 +847,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_; @@ -974,20 +890,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; @@ -996,21 +910,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 { @@ -1018,68 +931,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); } @@ -1089,12 +995,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(); } @@ -1103,16 +1009,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; @@ -1127,4 +1033,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 b31c54c6..541a05ae 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,57 +54,51 @@ 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) { @@ -129,40 +106,35 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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 @@ -171,30 +143,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 { @@ -205,15 +177,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 @@ -221,15 +189,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 @@ -237,14 +201,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() { @@ -254,15 +215,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 @@ -270,15 +227,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 @@ -286,14 +239,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() { @@ -303,17 +253,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 @@ -322,32 +267,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 { @@ -356,7 +299,6 @@ public com.google.protobuf.ByteString getTargetBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -368,7 +310,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, method_); } @@ -394,10 +337,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, target_); @@ -410,24 +355,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; } @@ -456,127 +404,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() @@ -584,15 +523,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(); @@ -616,9 +556,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 @@ -637,8 +577,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_; @@ -659,39 +598,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; @@ -699,8 +637,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(); @@ -746,21 +683,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; @@ -769,22 +704,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 { @@ -792,64 +726,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; @@ -857,58 +784,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) { @@ -924,17 +832,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(); @@ -945,21 +850,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; } @@ -971,15 +872,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) { @@ -993,64 +890,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_; @@ -1058,35 +939,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() { @@ -1097,14 +967,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) { @@ -1120,16 +987,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(); @@ -1140,20 +1005,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; } @@ -1165,14 +1027,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) { @@ -1186,59 +1045,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_; @@ -1246,23 +1094,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; @@ -1271,24 +1115,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 { @@ -1296,77 +1137,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); } @@ -1376,12 +1204,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(); } @@ -1390,16 +1218,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; @@ -1414,4 +1242,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..829fffaa --- /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,215 @@ +// 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\"\310\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\022\024\n\014machine_type\030\n \001(\t\022\025\n\rmin_" + + "instances\030\013 \001(\005\022\025\n\rmax_instances\030\014 \001(\005\032*" + + "\n\006Subnet\022\014\n\004name\030\001 \001(\t\022\022\n\nproject_id\030\002 \001" + + "(\t\"^\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005RE" + + "ADY\020\001\022\014\n\010CREATING\020\002\022\014\n\010DELETING\020\003\022\t\n\005ERR" + + "OR\020\004\022\014\n\010UPDATING\020\005:g\352Ad\n\"vpcaccess.googl" + + "eapis.com/Connector\022>projects/{project}/" + + "locations/{location}/connectors/{connect" + + "or}\"\254\001\n\026CreateConnectorRequest\0229\n\006parent" + + "\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com" + + "/Location\022\031\n\014connector_id\030\002 \001(\tB\003\340A\002\022<\n\t" + + "connector\030\003 \001(\0132$.google.cloud.vpcaccess" + + ".v1.ConnectorB\003\340A\002\"O\n\023GetConnectorReques" + + "t\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpcaccess.googl" + + "eapis.com/Connector\"y\n\025ListConnectorsReq" + + "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations." + + "googleapis.com/Location\022\021\n\tpage_size\030\002 \001" + + "(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\026ListConnectors" + + "Response\0228\n\nconnectors\030\001 \003(\0132$.google.cl" + + "oud.vpcaccess.v1.Connector\022\027\n\017next_page_" + + "token\030\002 \001(\t\"R\n\026DeleteConnectorRequest\0228\n" + + "\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpcaccess.googleapi" + + "s.com/Connector\"\315\001\n\021OperationMetadata\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.g" + + "oogleapis.com/Connector2\374\006\n\020VpcAccessSer" + + "vice\022\350\001\n\017CreateConnector\0221.google.cloud." + + "vpcaccess.v1.CreateConnectorRequest\032\035.go" + + "ogle.longrunning.Operation\"\202\001\202\323\344\223\002;\"./v1" + + "/{parent=projects/*/locations/*}/connect" + + "ors:\tconnector\332A\035parent,connector_id,con" + + "nector\312A\036\n\tConnector\022\021OperationMetadata\022" + + "\243\001\n\014GetConnector\022..google.cloud.vpcacces" + + "s.v1.GetConnectorRequest\032$.google.cloud." + + "vpcaccess.v1.Connector\"=\202\323\344\223\0020\022./v1/{nam" + + "e=projects/*/locations/*/connectors/*}\332A" + + "\004name\022\266\001\n\016ListConnectors\0220.google.cloud." + + "vpcaccess.v1.ListConnectorsRequest\0321.goo" + + "gle.cloud.vpcaccess.v1.ListConnectorsRes" + + "ponse\"?\202\323\344\223\0020\022./v1/{parent=projects/*/lo" + + "cations/*}/connectors\332A\006parent\022\317\001\n\017Delet" + + "eConnector\0221.google.cloud.vpcaccess.v1.D" + + "eleteConnectorRequest\032\035.google.longrunni" + + "ng.Operation\"j\202\323\344\223\0020*./v1/{name=projects" + + "/*/locations/*/connectors/*}\332A\004name\312A*\n\025" + + "google.protobuf.Empty\022\021OperationMetadata" + + "\032L\312A\030vpcaccess.googleapis.com\322A.https://" + + "www.googleapis.com/auth/cloud-platformB\314" + + "\001\n\035com.google.cloud.vpcaccess.v1B\016VpcAcc" + + "essProtoP\001ZBgoogle.golang.org/genproto/g" + + "oogleapis/cloud/vpcaccess/v1;vpcaccess\252\002" + + "\031Google.Cloud.VpcAccess.V1\312\002\031Google\\Clou" + + "d\\VpcAccess\\V1\352\002\034Google::Cloud::VpcAcces" + + "s::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", "MachineType", "MinInstances", "MaxInstances", }); + 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 95% 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 index 24ac40dd..bf2b2fc8 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -89,20 +89,6 @@ message Connector { pattern: "projects/{project}/locations/{location}/connectors/{connector}" }; - // The subnet in which to house the connector - message Subnet { - // Subnet name (relative, not fully qualified). - // E.g. if the full subnet selfLink is - // https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} - // the correct input for this field would be {subnetName} - string name = 1; - - // Project in which the subnet exists. - // If not set, this project is assumed to be the project for which - // the connector create request was issued. - string project_id = 2; - } - // State of a connector. enum State { // Invalid state. @@ -124,6 +110,20 @@ message Connector { UPDATING = 5; } + // The subnet in which to house the connector + message Subnet { + // Subnet name (relative, not fully qualified). + // E.g. if the full subnet selfLink is + // https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} + // the correct input for this field would be {subnetName} + string name = 1; + + // Project in which the subnet exists. + // If not set, this project is assumed to be the project for which + // the connector create request was issued. + string project_id = 2; + } + // The resource name in the format `projects/*/locations/*/connectors/*`. string name = 1; @@ -140,7 +140,7 @@ message Connector { // Minimum throughput of the connector in Mbps. Default and min is 200. int32 min_throughput = 5; - // Maximum throughput of the connector in Mbps. Default is 200, max is 1000. + // Maximum throughput of the connector in Mbps. Default is 300, max is 1000. int32 max_throughput = 6; // Output only. List of projects using the connector. @@ -148,6 +148,15 @@ message Connector { // The subnet in which to house the VPC Access Connector. Subnet subnet = 8; + + // Machine type of VM Instance underlying connector. Default is e2-micro + string machine_type = 10; + + // Minimum value of instances in autoscaling group underlying the connector. + int32 min_instances = 11; + + // Maximum value of instances in autoscaling group underlying the connector. + int32 max_instances = 12; } // Request for creating a Serverless VPC Access connector. diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/stub/vpcaccessservicestubsettings/getconnector/SyncGetConnector.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/stub/vpcaccessservicestubsettings/getconnector/SyncGetConnector.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/stub/vpcaccessservicestubsettings/getconnector/SyncGetConnector.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/stub/vpcaccessservicestubsettings/getconnector/SyncGetConnector.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnector.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnector.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnector.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnector.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnectorLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnectorLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnectorLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnectorLRO.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnector.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnector.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnector.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnector.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorLocationnameStringConnector.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorLocationnameStringConnector.java similarity index 88% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorLocationnameStringConnector.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorLocationnameStringConnector.java index d559f65e..d2f0f1b5 100644 --- a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorLocationnameStringConnector.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorLocationnameStringConnector.java @@ -16,8 +16,7 @@ package com.google.cloud.vpcaccess.v1.samples; -// [START -// vpcaccess_v1_generated_vpcaccessserviceclient_createconnector_locationnamestringconnector_sync] +// [START vpcaccess_v1_generated_vpcaccessserviceclient_createconnector_locationnamestringconnector_sync] import com.google.cloud.vpcaccess.v1.Connector; import com.google.cloud.vpcaccess.v1.LocationName; import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; @@ -40,5 +39,4 @@ public static void syncCreateConnectorLocationnameStringConnector() throws Excep } } } -// [END -// vpcaccess_v1_generated_vpcaccessserviceclient_createconnector_locationnamestringconnector_sync] +// [END vpcaccess_v1_generated_vpcaccessserviceclient_createconnector_locationnamestringconnector_sync] diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorStringStringConnector.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorStringStringConnector.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorStringStringConnector.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorStringStringConnector.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnector.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnector.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnector.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnector.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnectorLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnectorLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnectorLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnectorLRO.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnector.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnector.java similarity index 98% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnector.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnector.java index b13ba891..12ff233f 100644 --- a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnector.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnector.java @@ -20,6 +20,7 @@ import com.google.cloud.vpcaccess.v1.ConnectorName; import com.google.cloud.vpcaccess.v1.DeleteConnectorRequest; import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; +import com.google.protobuf.Empty; public class SyncDeleteConnector { diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java index aaf23ca9..a04fe677 100644 --- a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java @@ -19,6 +19,7 @@ // [START vpcaccess_v1_generated_vpcaccessserviceclient_deleteconnector_connectorname_sync] import com.google.cloud.vpcaccess.v1.ConnectorName; import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; +import com.google.protobuf.Empty; public class SyncDeleteConnectorConnectorname { diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java index a3832c58..eb10e2db 100644 --- a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java @@ -19,6 +19,7 @@ // [START vpcaccess_v1_generated_vpcaccessserviceclient_deleteconnector_string_sync] import com.google.cloud.vpcaccess.v1.ConnectorName; import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; +import com.google.protobuf.Empty; public class SyncDeleteConnectorString { diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/AsyncGetConnector.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/AsyncGetConnector.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/AsyncGetConnector.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/AsyncGetConnector.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnector.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnector.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnector.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnector.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorConnectorname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorConnectorname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorConnectorname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorConnectorname.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorString.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectors.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectors.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectors.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectors.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectorsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectorsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectorsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectorsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectors.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectors.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectors.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectors.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsLocationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsLocationname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocations.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocations.java new file mode 100644 index 00000000..302e5f6f --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocations.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.samples; + +// [START vpcaccess_v1_generated_vpcaccessserviceclient_listlocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + vpcAccessServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_listlocations_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocationsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 00000000..e3b1dc1d --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.samples; + +// [START vpcaccess_v1_generated_vpcaccessserviceclient_listlocations_paged_async] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + vpcAccessServiceClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_listlocations_paged_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/SyncListLocations.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/SyncListLocations.java new file mode 100644 index 00000000..13be8957 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/SyncListLocations.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.samples; + +// [START vpcaccess_v1_generated_vpcaccessserviceclient_listlocations_sync] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : vpcAccessServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_listlocations_sync] diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservicesettings/getconnector/SyncGetConnector.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservicesettings/getconnector/SyncGetConnector.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservicesettings/getconnector/SyncGetConnector.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservicesettings/getconnector/SyncGetConnector.java 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 8d01edceacf1c58b31641131b14a631449e5f866 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 23 Aug 2022 16:51:46 +0000 Subject: [PATCH 2/6] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../vpcaccess/v1/VpcAccessServiceClient.java | 26 +- .../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 - ...tpJsonVpcAccessServiceCallableFactory.java | 0 .../v1/stub/HttpJsonVpcAccessServiceStub.java | 1 - .../v1/stub/VpcAccessServiceStub.java | 0 .../v1/stub/VpcAccessServiceStubSettings.java | 6 +- .../cloud/vpcaccess/v1/MockLocations.java | 0 .../cloud/vpcaccess/v1/MockLocationsImpl.java | 0 .../vpcaccess/v1/MockVpcAccessService.java | 0 .../v1/MockVpcAccessServiceImpl.java | 0 .../VpcAccessServiceClientHttpJsonTest.java | 0 .../v1/VpcAccessServiceClientTest.java | 0 .../vpcaccess/v1/VpcAccessServiceGrpc.java | 722 ++++++++ .../vpcaccess/v1/VpcAccessServiceGrpc.java | 579 ------- .../v1/DeleteConnectorRequestOrBuilder.java | 29 - .../v1/GetConnectorRequestOrBuilder.java | 29 - .../cloud/vpcaccess/v1/VpcAccessProto.java | 215 --- .../google/cloud/vpcaccess/v1/Connector.java | 1481 ++++++++++------- .../cloud/vpcaccess/v1/ConnectorName.java | 0 .../vpcaccess/v1/ConnectorOrBuilder.java | 118 +- .../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 | 247 +++ .../cloud/vpcaccess/v1/vpc_access.proto | 0 .../getconnector/SyncGetConnector.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createconnector/AsyncCreateConnector.java | 0 .../AsyncCreateConnectorLRO.java | 0 .../createconnector/SyncCreateConnector.java | 0 ...eConnectorLocationnameStringConnector.java | 0 ...cCreateConnectorStringStringConnector.java | 0 .../deleteconnector/AsyncDeleteConnector.java | 0 .../AsyncDeleteConnectorLRO.java | 0 .../deleteconnector/SyncDeleteConnector.java | 0 .../SyncDeleteConnectorConnectorname.java | 0 .../SyncDeleteConnectorString.java | 0 .../getconnector/AsyncGetConnector.java | 0 .../getconnector/SyncGetConnector.java | 0 .../SyncGetConnectorConnectorname.java | 0 .../getconnector/SyncGetConnectorString.java | 0 .../listconnectors/AsyncListConnectors.java | 0 .../AsyncListConnectorsPaged.java | 0 .../listconnectors/SyncListConnectors.java | 0 .../SyncListConnectorsLocationname.java | 0 .../SyncListConnectorsString.java | 0 .../listlocations/AsyncListLocations.java | 0 .../AsyncListLocationsPaged.java | 0 .../listlocations/SyncListLocations.java | 0 .../getconnector/SyncGetConnector.java | 0 66 files changed, 4014 insertions(+), 2620 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 (97%) 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/HttpJsonVpcAccessServiceCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-vpcaccess => google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.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 (99%) rename {owl-bot-staging/v1/google-cloud-vpcaccess => google-cloud-vpcaccess}/src/test/java/com/google/cloud/vpcaccess/v1/MockLocations.java (100%) rename {owl-bot-staging/v1/google-cloud-vpcaccess => google-cloud-vpcaccess}/src/test/java/com/google/cloud/vpcaccess/v1/MockLocationsImpl.java (100%) 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/VpcAccessServiceClientHttpJsonTest.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 (74%) 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 (74%) 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 (65%) 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%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/stub/vpcaccessservicestubsettings/getconnector/SyncGetConnector.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnector.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnectorLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnector.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorLocationnameStringConnector.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorStringStringConnector.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnector.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnectorLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnector.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/AsyncGetConnector.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnector.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorConnectorname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectors.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectorsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectors.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsLocationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocations.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocationsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/SyncListLocations.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservicesettings/getconnector/SyncGetConnector.java (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 18da519b..4fd00891 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 @@ -67,13 +67,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. *
* @@ -855,7 +855,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( @@ -905,7 +908,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) { @@ -925,7 +931,10 @@ protected ListConnectorsFixedSizeCollection createCollection( public static class ListLocationsPagedResponse extends AbstractPagedListResponse< - ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, ListLocationsFixedSizeCollection> { public static ApiFuture createAsync( @@ -975,7 +984,10 @@ public ApiFuture createPageAsync( public static class ListLocationsFixedSizeCollection extends AbstractFixedSizeCollection< - ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, ListLocationsFixedSizeCollection> { private ListLocationsFixedSizeCollection(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 97% 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 fff6bdba..241e6e1d 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 @@ -30,7 +30,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.location.ListLocationsRequest; @@ -49,9 +48,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 21418979..e7f52bec 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 @@ -42,7 +42,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/HttpJsonVpcAccessServiceCallableFactory.java b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceCallableFactory.java rename to google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java rename to google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java index 37e2d7bf..160e3b46 100644 --- a/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java +++ b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java @@ -31,7 +31,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; 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 99% 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 61d83549..eb6adeb2 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 @@ -76,9 +76,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/MockLocations.java b/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocations.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocations.java rename to google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocations.java diff --git a/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocationsImpl.java b/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocationsImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocationsImpl.java rename to google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocationsImpl.java 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/VpcAccessServiceClientHttpJsonTest.java b/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientHttpJsonTest.java rename to google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientHttpJsonTest.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..ccc23836 --- /dev/null +++ b/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java @@ -0,0 +1,722 @@ +/* + * 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") +@io.grpc.stub.annotations.GrpcGenerated +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 818b995d..00000000 --- a/owl-bot-staging/v1/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java +++ /dev/null @@ -1,579 +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") -@io.grpc.stub.annotations.GrpcGenerated -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 829fffaa..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessProto.java +++ /dev/null @@ -1,215 +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\"\310\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\022\024\n\014machine_type\030\n \001(\t\022\025\n\rmin_" + - "instances\030\013 \001(\005\022\025\n\rmax_instances\030\014 \001(\005\032*" + - "\n\006Subnet\022\014\n\004name\030\001 \001(\t\022\022\n\nproject_id\030\002 \001" + - "(\t\"^\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005RE" + - "ADY\020\001\022\014\n\010CREATING\020\002\022\014\n\010DELETING\020\003\022\t\n\005ERR" + - "OR\020\004\022\014\n\010UPDATING\020\005:g\352Ad\n\"vpcaccess.googl" + - "eapis.com/Connector\022>projects/{project}/" + - "locations/{location}/connectors/{connect" + - "or}\"\254\001\n\026CreateConnectorRequest\0229\n\006parent" + - "\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com" + - "/Location\022\031\n\014connector_id\030\002 \001(\tB\003\340A\002\022<\n\t" + - "connector\030\003 \001(\0132$.google.cloud.vpcaccess" + - ".v1.ConnectorB\003\340A\002\"O\n\023GetConnectorReques" + - "t\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpcaccess.googl" + - "eapis.com/Connector\"y\n\025ListConnectorsReq" + - "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations." + - "googleapis.com/Location\022\021\n\tpage_size\030\002 \001" + - "(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\026ListConnectors" + - "Response\0228\n\nconnectors\030\001 \003(\0132$.google.cl" + - "oud.vpcaccess.v1.Connector\022\027\n\017next_page_" + - "token\030\002 \001(\t\"R\n\026DeleteConnectorRequest\0228\n" + - "\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpcaccess.googleapi" + - "s.com/Connector\"\315\001\n\021OperationMetadata\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.g" + - "oogleapis.com/Connector2\374\006\n\020VpcAccessSer" + - "vice\022\350\001\n\017CreateConnector\0221.google.cloud." + - "vpcaccess.v1.CreateConnectorRequest\032\035.go" + - "ogle.longrunning.Operation\"\202\001\202\323\344\223\002;\"./v1" + - "/{parent=projects/*/locations/*}/connect" + - "ors:\tconnector\332A\035parent,connector_id,con" + - "nector\312A\036\n\tConnector\022\021OperationMetadata\022" + - "\243\001\n\014GetConnector\022..google.cloud.vpcacces" + - "s.v1.GetConnectorRequest\032$.google.cloud." + - "vpcaccess.v1.Connector\"=\202\323\344\223\0020\022./v1/{nam" + - "e=projects/*/locations/*/connectors/*}\332A" + - "\004name\022\266\001\n\016ListConnectors\0220.google.cloud." + - "vpcaccess.v1.ListConnectorsRequest\0321.goo" + - "gle.cloud.vpcaccess.v1.ListConnectorsRes" + - "ponse\"?\202\323\344\223\0020\022./v1/{parent=projects/*/lo" + - "cations/*}/connectors\332A\006parent\022\317\001\n\017Delet" + - "eConnector\0221.google.cloud.vpcaccess.v1.D" + - "eleteConnectorRequest\032\035.google.longrunni" + - "ng.Operation\"j\202\323\344\223\0020*./v1/{name=projects" + - "/*/locations/*/connectors/*}\332A\004name\312A*\n\025" + - "google.protobuf.Empty\022\021OperationMetadata" + - "\032L\312A\030vpcaccess.googleapis.com\322A.https://" + - "www.googleapis.com/auth/cloud-platformB\314" + - "\001\n\035com.google.cloud.vpcaccess.v1B\016VpcAcc" + - "essProtoP\001ZBgoogle.golang.org/genproto/g" + - "oogleapis/cloud/vpcaccess/v1;vpcaccess\252\002" + - "\031Google.Cloud.VpcAccess.V1\312\002\031Google\\Clou" + - "d\\VpcAccess\\V1\352\002\034Google::Cloud::VpcAcces" + - "s::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", "MachineType", "MinInstances", "MaxInstances", }); - 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 74% 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 983a4c5b..895112a2 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_ = ""; @@ -30,16 +48,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) @@ -59,85 +76,94 @@ 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; } - subnet_ = input.readMessage(com.google.cloud.vpcaccess.v1.Connector.Subnet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(subnet_); - subnet_ = subBuilder.buildPartial(); + 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; + } + 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; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - - machineType_ = s; - break; - } - case 88: { - - minInstances_ = input.readInt32(); - break; - } - case 96: { + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); - maxInstances_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + machineType_ = s; + break; + } + case 88: + { + minInstances_ = input.readInt32(); + break; + } + case 96: + { + maxInstances_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -145,8 +171,7 @@ private Connector( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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(); @@ -155,29 +180,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.
      * 
@@ -186,6 +217,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Connector is deployed and ready to receive traffic.
      * 
@@ -194,6 +227,8 @@ public enum State */ READY(1), /** + * + * *
      * An Insert operation is in progress. Transient condition.
      * 
@@ -202,6 +237,8 @@ public enum State */ CREATING(2), /** + * + * *
      * A Delete operation is in progress. Transient condition.
      * 
@@ -210,6 +247,8 @@ public enum State */ DELETING(3), /** + * + * *
      * Connector is in a bad state, manual deletion recommended.
      * 
@@ -218,6 +257,8 @@ public enum State */ ERROR(4), /** + * + * *
      * The connector is being updated.
      * 
@@ -229,6 +270,8 @@ public enum State ; /** + * + * *
      * Invalid state.
      * 
@@ -237,6 +280,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Connector is deployed and ready to receive traffic.
      * 
@@ -245,6 +290,8 @@ public enum State */ public static final int READY_VALUE = 1; /** + * + * *
      * An Insert operation is in progress. Transient condition.
      * 
@@ -253,6 +300,8 @@ public enum State */ public static final int CREATING_VALUE = 2; /** + * + * *
      * A Delete operation is in progress. Transient condition.
      * 
@@ -261,6 +310,8 @@ public enum State */ public static final int DELETING_VALUE = 3; /** + * + * *
      * Connector is in a bad state, manual deletion recommended.
      * 
@@ -269,6 +320,8 @@ public enum State */ public static final int ERROR_VALUE = 4; /** + * + * *
      * The connector is being updated.
      * 
@@ -277,7 +330,6 @@ public enum State */ public static final int UPDATING_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -302,52 +354,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; @@ -364,11 +419,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
@@ -377,10 +435,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
@@ -389,12 +450,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
@@ -402,10 +465,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
@@ -413,27 +479,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_ = ""; @@ -441,16 +510,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) @@ -469,25 +537,27 @@ 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) { @@ -495,29 +565,33 @@ private Subnet( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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
@@ -526,6 +600,7 @@ private Subnet(
      * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -534,14 +609,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
@@ -550,16 +626,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 { @@ -570,6 +645,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
@@ -577,6 +654,7 @@ public java.lang.String getName() {
      * 
* * string project_id = 2; + * * @return The projectId. */ @java.lang.Override @@ -585,14 +663,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
@@ -600,16 +679,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 { @@ -618,6 +696,7 @@ public java.lang.String getProjectId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -629,8 +708,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -660,17 +738,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; } @@ -691,88 +768,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 @@ -782,27 +865,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() @@ -810,16 +898,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(); @@ -831,9 +918,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 @@ -852,7 +939,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(); @@ -863,38 +951,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; @@ -902,7 +993,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(); @@ -942,6 +1034,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -950,13 +1044,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; @@ -965,6 +1059,8 @@ public java.lang.String getName() { } } /** + * + * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -973,15 +1069,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 { @@ -989,6 +1084,8 @@ public java.lang.String getName() { } } /** + * + * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -997,20 +1094,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
@@ -1019,15 +1118,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
@@ -1036,16 +1138,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; @@ -1053,6 +1155,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
@@ -1060,13 +1164,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; @@ -1075,6 +1179,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
@@ -1082,15 +1188,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 { @@ -1098,6 +1203,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
@@ -1105,20 +1212,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
@@ -1126,15 +1235,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
@@ -1142,20 +1254,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) { @@ -1168,12 +1281,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(); } @@ -1182,16 +1295,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; @@ -1206,17 +1319,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 @@ -1225,29 +1340,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 { @@ -1258,11 +1373,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 @@ -1271,29 +1389,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 { @@ -1304,12 +1422,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 @@ -1318,30 +1439,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 { @@ -1352,38 +1473,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 @@ -1394,11 +1531,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 300, max is 1000.
    * 
* * int32 max_throughput = 6; + * * @return The maxThroughput. */ @java.lang.Override @@ -1409,34 +1549,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. */ @@ -1444,27 +1595,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 @@ -1472,18 +1629,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.
    * 
@@ -1498,11 +1662,14 @@ public com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder getSubnetOrBuilde public static final int MACHINE_TYPE_FIELD_NUMBER = 10; private volatile java.lang.Object machineType_; /** + * + * *
    * Machine type of VM Instance underlying connector. Default is e2-micro
    * 
* * string machine_type = 10; + * * @return The machineType. */ @java.lang.Override @@ -1511,29 +1678,29 @@ public java.lang.String getMachineType() { 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(); machineType_ = s; return s; } } /** + * + * *
    * Machine type of VM Instance underlying connector. Default is e2-micro
    * 
* * string machine_type = 10; + * * @return The bytes for machineType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; 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); machineType_ = b; return b; } else { @@ -1544,11 +1711,14 @@ public java.lang.String getMachineType() { public static final int MIN_INSTANCES_FIELD_NUMBER = 11; private int minInstances_; /** + * + * *
    * Minimum value of instances in autoscaling group underlying the connector.
    * 
* * int32 min_instances = 11; + * * @return The minInstances. */ @java.lang.Override @@ -1559,11 +1729,14 @@ public int getMinInstances() { public static final int MAX_INSTANCES_FIELD_NUMBER = 12; private int maxInstances_; /** + * + * *
    * Maximum value of instances in autoscaling group underlying the connector.
    * 
* * int32 max_instances = 12; + * * @return The maxInstances. */ @java.lang.Override @@ -1572,6 +1745,7 @@ public int getMaxInstances() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1583,8 +1757,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1637,16 +1810,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; @@ -1657,19 +1827,16 @@ 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()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, machineType_); } if (minInstances_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(11, minInstances_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, minInstances_); } if (maxInstances_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(12, maxInstances_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, maxInstances_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1679,37 +1846,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.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 (!getMachineType() - .equals(other.getMachineType())) return false; - if (getMinInstances() - != other.getMinInstances()) return false; - if (getMaxInstances() - != other.getMaxInstances()) return false; + if (!getSubnet().equals(other.getSubnet())) return false; + } + if (!getMachineType().equals(other.getMachineType())) return false; + if (getMinInstances() != other.getMinInstances()) return false; + if (getMaxInstances() != other.getMaxInstances()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1752,118 +1909,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() @@ -1871,16 +2037,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(); @@ -1914,9 +2079,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 @@ -1935,7 +2100,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_; @@ -1964,38 +2130,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; @@ -2076,22 +2243,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; @@ -2100,20 +2270,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 { @@ -2121,54 +2292,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; @@ -2176,18 +2354,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; @@ -2196,20 +2376,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 { @@ -2217,54 +2398,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; @@ -2272,19 +2460,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; @@ -2293,21 +2483,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 { @@ -2315,57 +2506,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; @@ -2373,51 +2571,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. */ @@ -2425,33 +2645,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 @@ -2459,42 +2687,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 300, max is 1000.
      * 
* * int32 max_throughput = 6; + * * @return The maxThroughput. */ @java.lang.Override @@ -2502,71 +2739,90 @@ public int getMaxThroughput() { return maxThroughput_; } /** + * + * *
      * Maximum throughput of the connector in Mbps. Default is 300, 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 300, 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. */ @@ -2574,80 +2830,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() { @@ -2657,20 +2928,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(); @@ -2679,34 +2953,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.
      * 
@@ -2727,6 +3014,8 @@ public Builder setSubnet(com.google.cloud.vpcaccess.v1.Connector.Subnet value) { return this; } /** + * + * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2745,6 +3034,8 @@ public Builder setSubnet( return this; } /** + * + * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2755,7 +3046,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; } @@ -2767,6 +3060,8 @@ public Builder mergeSubnet(com.google.cloud.vpcaccess.v1.Connector.Subnet value) return this; } /** + * + * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2785,6 +3080,8 @@ public Builder clearSubnet() { return this; } /** + * + * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2792,11 +3089,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.
      * 
@@ -2807,11 +3106,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.
      * 
@@ -2819,14 +3121,17 @@ 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_; @@ -2834,18 +3139,20 @@ public com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder getSubnetOrBuilde private java.lang.Object machineType_ = ""; /** + * + * *
      * Machine type of VM Instance underlying connector. Default is e2-micro
      * 
* * string machine_type = 10; + * * @return The machineType. */ public java.lang.String getMachineType() { java.lang.Object ref = machineType_; 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(); machineType_ = s; return s; @@ -2854,20 +3161,21 @@ public java.lang.String getMachineType() { } } /** + * + * *
      * Machine type of VM Instance underlying connector. Default is e2-micro
      * 
* * string machine_type = 10; + * * @return The bytes for machineType. */ - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; 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); machineType_ = b; return b; } else { @@ -2875,66 +3183,76 @@ public java.lang.String getMachineType() { } } /** + * + * *
      * Machine type of VM Instance underlying connector. Default is e2-micro
      * 
* * string machine_type = 10; + * * @param value The machineType to set. * @return This builder for chaining. */ - public Builder setMachineType( - java.lang.String value) { + public Builder setMachineType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + machineType_ = value; onChanged(); return this; } /** + * + * *
      * Machine type of VM Instance underlying connector. Default is e2-micro
      * 
* * string machine_type = 10; + * * @return This builder for chaining. */ public Builder clearMachineType() { - + machineType_ = getDefaultInstance().getMachineType(); onChanged(); return this; } /** + * + * *
      * Machine type of VM Instance underlying connector. Default is e2-micro
      * 
* * string machine_type = 10; + * * @param value The bytes for machineType to set. * @return This builder for chaining. */ - public Builder setMachineTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + machineType_ = value; onChanged(); return this; } - private int minInstances_ ; + private int minInstances_; /** + * + * *
      * Minimum value of instances in autoscaling group underlying the connector.
      * 
* * int32 min_instances = 11; + * * @return The minInstances. */ @java.lang.Override @@ -2942,42 +3260,51 @@ public int getMinInstances() { return minInstances_; } /** + * + * *
      * Minimum value of instances in autoscaling group underlying the connector.
      * 
* * int32 min_instances = 11; + * * @param value The minInstances to set. * @return This builder for chaining. */ public Builder setMinInstances(int value) { - + minInstances_ = value; onChanged(); return this; } /** + * + * *
      * Minimum value of instances in autoscaling group underlying the connector.
      * 
* * int32 min_instances = 11; + * * @return This builder for chaining. */ public Builder clearMinInstances() { - + minInstances_ = 0; onChanged(); return this; } - private int maxInstances_ ; + private int maxInstances_; /** + * + * *
      * Maximum value of instances in autoscaling group underlying the connector.
      * 
* * int32 max_instances = 12; + * * @return The maxInstances. */ @java.lang.Override @@ -2985,37 +3312,43 @@ public int getMaxInstances() { return maxInstances_; } /** + * + * *
      * Maximum value of instances in autoscaling group underlying the connector.
      * 
* * int32 max_instances = 12; + * * @param value The maxInstances to set. * @return This builder for chaining. */ public Builder setMaxInstances(int value) { - + maxInstances_ = value; onChanged(); return this; } /** + * + * *
      * Maximum value of instances in autoscaling group underlying the connector.
      * 
* * int32 max_instances = 12; + * * @return This builder for chaining. */ public Builder clearMaxInstances() { - + maxInstances_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3025,12 +3358,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(); } @@ -3039,16 +3372,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; @@ -3063,6 +3396,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 74% 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 06560236..c5e4697a 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 300, 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.
    * 
@@ -177,41 +246,52 @@ public interface ConnectorOrBuilder extends com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder getSubnetOrBuilder(); /** + * + * *
    * Machine type of VM Instance underlying connector. Default is e2-micro
    * 
* * string machine_type = 10; + * * @return The machineType. */ java.lang.String getMachineType(); /** + * + * *
    * Machine type of VM Instance underlying connector. Default is e2-micro
    * 
* * string machine_type = 10; + * * @return The bytes for machineType. */ - com.google.protobuf.ByteString - getMachineTypeBytes(); + com.google.protobuf.ByteString getMachineTypeBytes(); /** + * + * *
    * Minimum value of instances in autoscaling group underlying the connector.
    * 
* * int32 min_instances = 11; + * * @return The minInstances. */ int getMinInstances(); /** + * + * *
    * Maximum value of instances in autoscaling group underlying the connector.
    * 
* * int32 max_instances = 12; + * * @return The maxInstances. */ int getMaxInstances(); 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 e37c1af0..7b720628 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,38 +71,43 @@ 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) { @@ -93,35 +115,42 @@ private CreateConnectorRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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 @@ -130,30 +159,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 { @@ -164,11 +195,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 @@ -177,29 +211,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 { @@ -210,11 +244,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 @@ -222,23 +261,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() { @@ -246,6 +296,7 @@ public com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -257,8 +308,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -284,8 +334,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; @@ -295,21 +344,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; @@ -336,117 +383,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() @@ -454,16 +510,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(); @@ -481,9 +536,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 @@ -502,7 +557,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) { @@ -518,38 +574,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; @@ -557,7 +614,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(); @@ -588,7 +646,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) { @@ -600,19 +659,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; @@ -621,21 +684,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 { @@ -643,57 +709,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; @@ -701,18 +780,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; @@ -721,20 +802,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 { @@ -742,54 +824,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; @@ -797,39 +886,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) { @@ -845,14 +953,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(); @@ -863,17 +974,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; } @@ -885,11 +1002,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) { @@ -903,55 +1024,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); } @@ -961,12 +1098,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(); } @@ -975,16 +1112,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; @@ -999,6 +1136,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 65% 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 bb58e229..e56ff8aa 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,19 +70,20 @@ 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) { @@ -73,34 +91,41 @@ private DeleteConnectorRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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 @@ -109,29 +134,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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,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; } @@ -204,117 +231,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() @@ -322,16 +358,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(); @@ -341,9 +376,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 @@ -362,7 +397,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; @@ -372,38 +408,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; @@ -411,7 +448,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(); @@ -435,7 +473,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) { @@ -447,18 +486,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; @@ -467,20 +510,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 { @@ -488,61 +534,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); } @@ -552,12 +611,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(); } @@ -566,16 +625,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; @@ -590,6 +649,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 6ad32b1f..ad4cad8e 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,19 +70,20 @@ 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) { @@ -73,34 +91,41 @@ private GetConnectorRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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 @@ -109,29 +134,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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,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; } @@ -204,117 +231,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() @@ -322,16 +358,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(); @@ -341,9 +376,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 @@ -362,7 +397,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; @@ -372,38 +408,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; @@ -411,7 +448,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(); @@ -435,7 +473,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) { @@ -447,18 +486,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; @@ -467,20 +510,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 { @@ -488,61 +534,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); } @@ -552,12 +611,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(); } @@ -566,16 +625,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; @@ -590,6 +649,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 ea7b5b90..f4775b63 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,30 +71,32 @@ 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) { @@ -85,34 +104,41 @@ private ListConnectorsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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 @@ -121,29 +147,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 { @@ -154,11 +182,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 @@ -169,11 +200,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 @@ -182,29 +216,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 { @@ -213,6 +247,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +259,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -248,8 +282,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -262,19 +295,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; } @@ -298,117 +329,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() @@ -416,16 +456,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(); @@ -439,9 +478,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 @@ -460,7 +499,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_; @@ -472,38 +512,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; @@ -511,7 +552,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(); @@ -542,7 +584,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) { @@ -554,18 +597,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; @@ -574,20 +621,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 { @@ -595,66 +645,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 @@ -662,30 +728,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; @@ -693,18 +765,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; @@ -713,20 +787,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 { @@ -734,61 +809,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); } @@ -798,12 +880,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(); } @@ -812,16 +894,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; @@ -836,6 +918,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 43929e50..84b3bd38 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,28 +72,31 @@ 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) { @@ -84,8 +104,7 @@ private ListConnectorsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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_); @@ -94,22 +113,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.
    * 
@@ -121,6 +145,8 @@ public java.util.List getConnectorsList return connectors_; } /** + * + * *
    * List of Serverless VPC Access connectors.
    * 
@@ -128,11 +154,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.
    * 
@@ -144,6 +172,8 @@ public int getConnectorsCount() { return connectors_.size(); } /** + * + * *
    * List of Serverless VPC Access connectors.
    * 
@@ -155,6 +185,8 @@ public com.google.cloud.vpcaccess.v1.Connector getConnectors(int index) { return connectors_.get(index); } /** + * + * *
    * List of Serverless VPC Access connectors.
    * 
@@ -162,19 +194,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 @@ -183,29 +217,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 { @@ -214,6 +248,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +260,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)); } @@ -243,8 +277,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -257,17 +290,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; } @@ -291,117 +323,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() @@ -409,17 +450,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(); @@ -435,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_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 @@ -456,7 +497,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)) { @@ -476,38 +518,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; @@ -515,7 +558,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()) { @@ -534,9 +578,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_); } @@ -565,7 +610,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) { @@ -574,21 +620,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.
      * 
@@ -603,6 +656,8 @@ public java.util.List getConnectorsList } } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -617,6 +672,8 @@ public int getConnectorsCount() { } } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -631,14 +688,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(); @@ -652,6 +710,8 @@ public Builder setConnectors( return this; } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -670,6 +730,8 @@ public Builder setConnectors( return this; } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -690,14 +752,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(); @@ -711,14 +774,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()); @@ -729,6 +793,8 @@ public Builder addConnectors( return this; } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -747,6 +813,8 @@ public Builder addConnectors( return this; } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -757,8 +825,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); @@ -766,6 +833,8 @@ public Builder addAllConnectors( return this; } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -783,6 +852,8 @@ public Builder clearConnectors() { return this; } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -800,39 +871,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 { @@ -840,6 +916,8 @@ public com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorsOrBuilder( } } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -847,42 +925,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_; @@ -890,18 +974,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; @@ -910,20 +996,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 { @@ -931,61 +1018,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); } @@ -995,12 +1089,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(); } @@ -1009,16 +1103,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; @@ -1033,6 +1127,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 541a05ae..b31c54c6 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,51 +71,57 @@ 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) { @@ -106,35 +129,40 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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 @@ -143,30 +171,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 { @@ -177,11 +205,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 @@ -189,11 +221,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 @@ -201,11 +237,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() { @@ -215,11 +254,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 @@ -227,11 +270,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 @@ -239,11 +286,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() { @@ -253,12 +303,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 @@ -267,30 +322,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 { @@ -299,6 +356,7 @@ public java.lang.String getTarget() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -310,8 +368,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, method_); } @@ -337,12 +394,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, target_); @@ -355,27 +410,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; } @@ -404,118 +456,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() @@ -523,16 +584,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(); @@ -556,9 +616,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 @@ -577,7 +637,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_; @@ -598,38 +659,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; @@ -637,7 +699,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(); @@ -683,19 +746,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; @@ -704,21 +769,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 { @@ -726,57 +792,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; @@ -784,39 +857,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) { @@ -832,14 +924,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(); @@ -850,17 +945,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; } @@ -872,11 +971,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) { @@ -890,48 +993,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_; @@ -939,24 +1058,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() { @@ -967,11 +1097,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) { @@ -987,14 +1120,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(); @@ -1005,17 +1140,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; } @@ -1027,11 +1165,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) { @@ -1045,48 +1186,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_; @@ -1094,19 +1246,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; @@ -1115,21 +1271,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 { @@ -1137,64 +1296,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); } @@ -1204,12 +1376,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(); } @@ -1218,16 +1390,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; @@ -1242,6 +1414,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..acc6a599 --- /dev/null +++ b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessProto.java @@ -0,0 +1,247 @@ +/* + * 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\"\310\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\022\024\n\014machine_type\030\n \001(\t\022\025\n\rmin_" + + "instances\030\013 \001(\005\022\025\n\rmax_instances\030\014 \001(\005\032*" + + "\n\006Subnet\022\014\n\004name\030\001 \001(\t\022\022\n\nproject_id\030\002 \001" + + "(\t\"^\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005RE" + + "ADY\020\001\022\014\n\010CREATING\020\002\022\014\n\010DELETING\020\003\022\t\n\005ERR" + + "OR\020\004\022\014\n\010UPDATING\020\005:g\352Ad\n\"vpcaccess.googl" + + "eapis.com/Connector\022>projects/{project}/" + + "locations/{location}/connectors/{connect" + + "or}\"\254\001\n\026CreateConnectorRequest\0229\n\006parent" + + "\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com" + + "/Location\022\031\n\014connector_id\030\002 \001(\tB\003\340A\002\022<\n\t" + + "connector\030\003 \001(\0132$.google.cloud.vpcaccess" + + ".v1.ConnectorB\003\340A\002\"O\n\023GetConnectorReques" + + "t\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpcaccess.googl" + + "eapis.com/Connector\"y\n\025ListConnectorsReq" + + "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations." + + "googleapis.com/Location\022\021\n\tpage_size\030\002 \001" + + "(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\026ListConnectors" + + "Response\0228\n\nconnectors\030\001 \003(\0132$.google.cl" + + "oud.vpcaccess.v1.Connector\022\027\n\017next_page_" + + "token\030\002 \001(\t\"R\n\026DeleteConnectorRequest\0228\n" + + "\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpcaccess.googleapi" + + "s.com/Connector\"\315\001\n\021OperationMetadata\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.g" + + "oogleapis.com/Connector2\374\006\n\020VpcAccessSer" + + "vice\022\350\001\n\017CreateConnector\0221.google.cloud." + + "vpcaccess.v1.CreateConnectorRequest\032\035.go" + + "ogle.longrunning.Operation\"\202\001\202\323\344\223\002;\"./v1" + + "/{parent=projects/*/locations/*}/connect" + + "ors:\tconnector\332A\035parent,connector_id,con" + + "nector\312A\036\n\tConnector\022\021OperationMetadata\022" + + "\243\001\n\014GetConnector\022..google.cloud.vpcacces" + + "s.v1.GetConnectorRequest\032$.google.cloud." + + "vpcaccess.v1.Connector\"=\202\323\344\223\0020\022./v1/{nam" + + "e=projects/*/locations/*/connectors/*}\332A" + + "\004name\022\266\001\n\016ListConnectors\0220.google.cloud." + + "vpcaccess.v1.ListConnectorsRequest\0321.goo" + + "gle.cloud.vpcaccess.v1.ListConnectorsRes" + + "ponse\"?\202\323\344\223\0020\022./v1/{parent=projects/*/lo" + + "cations/*}/connectors\332A\006parent\022\317\001\n\017Delet" + + "eConnector\0221.google.cloud.vpcaccess.v1.D" + + "eleteConnectorRequest\032\035.google.longrunni" + + "ng.Operation\"j\202\323\344\223\0020*./v1/{name=projects" + + "/*/locations/*/connectors/*}\332A\004name\312A*\n\025" + + "google.protobuf.Empty\022\021OperationMetadata" + + "\032L\312A\030vpcaccess.googleapis.com\322A.https://" + + "www.googleapis.com/auth/cloud-platformB\314" + + "\001\n\035com.google.cloud.vpcaccess.v1B\016VpcAcc" + + "essProtoP\001ZBgoogle.golang.org/genproto/g" + + "oogleapis/cloud/vpcaccess/v1;vpcaccess\252\002" + + "\031Google.Cloud.VpcAccess.V1\312\002\031Google\\Clou" + + "d\\VpcAccess\\V1\352\002\034Google::Cloud::VpcAcces" + + "s::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", + "MachineType", + "MinInstances", + "MaxInstances", + }); + 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 diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/stub/vpcaccessservicestubsettings/getconnector/SyncGetConnector.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/stub/vpcaccessservicestubsettings/getconnector/SyncGetConnector.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/stub/vpcaccessservicestubsettings/getconnector/SyncGetConnector.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/stub/vpcaccessservicestubsettings/getconnector/SyncGetConnector.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnector.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnector.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnector.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnector.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnectorLRO.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnectorLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnectorLRO.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnectorLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnector.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnector.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnector.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnector.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorLocationnameStringConnector.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorLocationnameStringConnector.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorLocationnameStringConnector.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorLocationnameStringConnector.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorStringStringConnector.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorStringStringConnector.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorStringStringConnector.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorStringStringConnector.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnector.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnector.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnector.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnector.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnectorLRO.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnectorLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnectorLRO.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnectorLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnector.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnector.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnector.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnector.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/AsyncGetConnector.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/AsyncGetConnector.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/AsyncGetConnector.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/AsyncGetConnector.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnector.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnector.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnector.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnector.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorConnectorname.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorConnectorname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorConnectorname.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorConnectorname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorString.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorString.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectors.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectors.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectors.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectors.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectorsPaged.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectorsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectorsPaged.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectorsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectors.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectors.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectors.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectors.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsLocationname.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsLocationname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsLocationname.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsLocationname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsString.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsString.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocations.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocations.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocations.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocations.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocationsPaged.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocationsPaged.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocationsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/SyncListLocations.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/SyncListLocations.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/SyncListLocations.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/SyncListLocations.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservicesettings/getconnector/SyncGetConnector.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservicesettings/getconnector/SyncGetConnector.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservicesettings/getconnector/SyncGetConnector.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservicesettings/getconnector/SyncGetConnector.java From 7c6e3943e7276ed936591474ef1f6d3e11abd224 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 24 Aug 2022 15:06:07 +0000 Subject: [PATCH 3/6] feat: Adds support for configuring scaling settings Clients can now specify machine type and min/max instances when creating a connector. PiperOrigin-RevId: 469463049 Source-Link: https://github.com/googleapis/googleapis/commit/17b39f10ef6c8524457ee290023ab973134a7888 Source-Link: https://github.com/googleapis/googleapis-gen/commit/88b74ac69e76791a020cb543747c090655ee7144 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiODhiNzRhYzY5ZTc2NzkxYTAyMGNiNTQzNzQ3YzA5MDY1NWVlNzE0NCJ9 --- .../vpcaccess/v1/VpcAccessServiceGrpc.java | 722 ------- .../vpcaccess/v1/VpcAccessServiceClient.java | 187 +- .../v1/VpcAccessServiceSettings.java | 23 +- .../cloud/vpcaccess/v1/gapic_metadata.json | 3 + .../cloud/vpcaccess/v1/package-info.java | 4 +- .../GrpcVpcAccessServiceCallableFactory.java | 0 .../v1/stub/GrpcVpcAccessServiceStub.java | 45 + ...tpJsonVpcAccessServiceCallableFactory.java | 0 .../v1/stub/HttpJsonVpcAccessServiceStub.java | 64 + .../v1/stub/VpcAccessServiceStub.java | 12 + .../v1/stub/VpcAccessServiceStubSettings.java | 112 +- .../cloud/vpcaccess/v1/MockLocations.java | 59 + .../cloud/vpcaccess/v1/MockLocationsImpl.java | 83 + .../vpcaccess/v1/MockVpcAccessService.java | 0 .../v1/MockVpcAccessServiceImpl.java | 0 .../VpcAccessServiceClientHttpJsonTest.java | 78 + .../v1/VpcAccessServiceClientTest.java | 80 +- .../vpcaccess/v1/VpcAccessServiceGrpc.java | 579 ++++++ .../google/cloud/vpcaccess/v1/Connector.java | 1666 +++++++++-------- .../cloud/vpcaccess/v1/ConnectorName.java | 0 .../vpcaccess/v1/ConnectorOrBuilder.java | 145 +- .../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 | 215 +++ .../cloud/vpcaccess/v1/vpc_access.proto | 41 +- .../getconnector/SyncGetConnector.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createconnector/AsyncCreateConnector.java | 0 .../AsyncCreateConnectorLRO.java | 0 .../createconnector/SyncCreateConnector.java | 0 ...eConnectorLocationnameStringConnector.java | 6 +- ...cCreateConnectorStringStringConnector.java | 0 .../deleteconnector/AsyncDeleteConnector.java | 0 .../AsyncDeleteConnectorLRO.java | 0 .../deleteconnector/SyncDeleteConnector.java | 1 + .../SyncDeleteConnectorConnectorname.java | 1 + .../SyncDeleteConnectorString.java | 1 + .../getconnector/AsyncGetConnector.java | 0 .../getconnector/SyncGetConnector.java | 0 .../SyncGetConnectorConnectorname.java | 0 .../getconnector/SyncGetConnectorString.java | 0 .../listconnectors/AsyncListConnectors.java | 0 .../AsyncListConnectorsPaged.java | 0 .../listconnectors/SyncListConnectors.java | 0 .../SyncListConnectorsLocationname.java | 0 .../SyncListConnectorsString.java | 0 .../listlocations/AsyncListLocations.java | 51 + .../AsyncListLocationsPaged.java | 59 + .../listlocations/SyncListLocations.java | 47 + .../getconnector/SyncGetConnector.java | 0 .../v1/DeleteConnectorRequestOrBuilder.java | 54 - .../v1/GetConnectorRequestOrBuilder.java | 54 - .../cloud/vpcaccess/v1/VpcAccessProto.java | 242 --- 66 files changed, 3831 insertions(+), 3926 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 (82%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java (90%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/gapic_metadata.json (89%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/package-info.java (92%) 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 (84%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceCallableFactory.java (100%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java (84%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStub.java (84%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java (82%) create mode 100644 owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocations.java create mode 100644 owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocationsImpl.java 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/VpcAccessServiceClientHttpJsonTest.java (85%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientTest.java (84%) 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 (68%) 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 (70%) 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 (65%) 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 (95%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/stub/vpcaccessservicestubsettings/getconnector/SyncGetConnector.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnector.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnectorLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnector.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorLocationnameStringConnector.java (88%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorStringStringConnector.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnector.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnectorLRO.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnector.java (98%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java (97%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java (97%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/AsyncGetConnector.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnector.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorConnectorname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorString.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectors.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectorsPaged.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectors.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsLocationname.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsString.java (100%) create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocations.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocationsPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/SyncListLocations.java rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservicesettings/getconnector/SyncGetConnector.java (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 ccc23836..00000000 --- a/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java +++ /dev/null @@ -1,722 +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") -@io.grpc.stub.annotations.GrpcGenerated -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 82% 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 e2057d60..18da519b 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 @@ -28,6 +28,9 @@ import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.cloud.vpcaccess.v1.stub.VpcAccessServiceStub; import com.google.cloud.vpcaccess.v1.stub.VpcAccessServiceStubSettings; import com.google.common.util.concurrent.MoreExecutors; @@ -64,13 +67,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. *
* @@ -722,6 +725,104 @@ public final UnaryCallable deleteConnectorCal return stub.deleteConnectorCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : vpcAccessServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       vpcAccessServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         vpcAccessServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + @Override public final void close() { stub.close(); @@ -754,10 +855,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( @@ -807,10 +905,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) { @@ -827,4 +922,74 @@ protected ListConnectorsFixedSizeCollection createCollection( return new ListConnectorsFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, 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 90% 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 b0207fa7..fff6bdba 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 @@ -17,6 +17,7 @@ package com.google.cloud.vpcaccess.v1; import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListConnectorsPagedResponse; +import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListLocationsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -29,8 +30,11 @@ 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.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.vpcaccess.v1.stub.VpcAccessServiceStubSettings; import com.google.longrunning.Operation; import com.google.protobuf.Empty; @@ -45,9 +49,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 @@ -109,6 +113,12 @@ public UnaryCallSettings deleteConnectorSetti return ((VpcAccessServiceStubSettings) getStubSettings()).deleteConnectorOperationSettings(); } + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((VpcAccessServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + public static final VpcAccessServiceSettings create(VpcAccessServiceStubSettings stub) throws IOException { return new VpcAccessServiceSettings.Builder(stub.toBuilder()).build(); @@ -258,6 +268,13 @@ public UnaryCallSettings.Builder deleteConnec return getStubSettingsBuilder().deleteConnectorOperationSettings(); } + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + @Override public VpcAccessServiceSettings build() throws IOException { return new VpcAccessServiceSettings(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 89% 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 index 706c30f2..105f48a5 100644 --- 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 @@ -21,6 +21,9 @@ }, "ListConnectors": { "methods": ["listConnectors", "listConnectors", "listConnectors", "listConnectorsPagedCallable", "listConnectorsCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] } } } 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 92% 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 index ad55ba29..221caac9 100644 --- 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 @@ -15,7 +15,9 @@ */ /** - * The interfaces provided are listed below, along with usage samples. + * A client to Serverless VPC Access API + * + *

The interfaces provided are listed below, along with usage samples. * *

======================= VpcAccessServiceClient ======================= * 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 84% 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 eb7b7474..21418979 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 @@ -17,6 +17,7 @@ package com.google.cloud.vpcaccess.v1.stub; import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListConnectorsPagedResponse; +import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListLocationsPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -25,6 +26,8 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.vpcaccess.v1.Connector; import com.google.cloud.vpcaccess.v1.CreateConnectorRequest; import com.google.cloud.vpcaccess.v1.DeleteConnectorRequest; @@ -39,6 +42,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -90,6 +94,17 @@ public class GrpcVpcAccessServiceStub extends VpcAccessServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .build(); + private final UnaryCallable createConnectorCallable; private final OperationCallable createConnectorOperationCallable; @@ -100,6 +115,9 @@ public class GrpcVpcAccessServiceStub extends VpcAccessServiceStub { private final UnaryCallable deleteConnectorCallable; private final OperationCallable deleteConnectorOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -186,6 +204,16 @@ protected GrpcVpcAccessServiceStub( return params.build(); }) .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); this.createConnectorCallable = callableFactory.createUnaryCallable( @@ -214,6 +242,12 @@ protected GrpcVpcAccessServiceStub( settings.deleteConnectorOperationSettings(), clientContext, operationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -261,6 +295,17 @@ public UnaryCallable deleteConnectorCallable( return deleteConnectorOperationCallable; } + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + @Override public final void close() { try { diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceCallableFactory.java similarity index 100% rename from google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceCallableFactory.java diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java similarity index 84% rename from google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java rename to owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java index f610e4c6..37e2d7bf 100644 --- a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java +++ b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java @@ -17,6 +17,7 @@ package com.google.cloud.vpcaccess.v1.stub; import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListConnectorsPagedResponse; +import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListLocationsPagedResponse; import com.google.api.core.BetaApi; import com.google.api.core.InternalApi; @@ -30,9 +31,12 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.vpcaccess.v1.Connector; import com.google.cloud.vpcaccess.v1.CreateConnectorRequest; import com.google.cloud.vpcaccess.v1.DeleteConnectorRequest; @@ -212,6 +216,39 @@ public class HttpJsonVpcAccessServiceStub extends VpcAccessServiceStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*}/locations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable createConnectorCallable; private final OperationCallable createConnectorOperationCallable; @@ -222,6 +259,9 @@ public class HttpJsonVpcAccessServiceStub extends VpcAccessServiceStub { private final UnaryCallable deleteConnectorCallable; private final OperationCallable deleteConnectorOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; private final BackgroundResource backgroundResources; private final HttpJsonOperationsStub httpJsonOperationsStub; @@ -289,6 +329,12 @@ protected HttpJsonVpcAccessServiceStub( .setMethodDescriptor(deleteConnectorMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); this.createConnectorCallable = callableFactory.createUnaryCallable( @@ -317,6 +363,12 @@ protected HttpJsonVpcAccessServiceStub( settings.deleteConnectorOperationSettings(), clientContext, httpJsonOperationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -329,6 +381,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(getConnectorMethodDescriptor); methodDescriptors.add(listConnectorsMethodDescriptor); methodDescriptors.add(deleteConnectorMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); return methodDescriptors; } @@ -374,6 +427,17 @@ public UnaryCallable deleteConnectorCallable( return deleteConnectorOperationCallable; } + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + @Override public final void close() { try { 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 84% 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 index 18d84e28..d92d7f2f 100644 --- 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 @@ -17,10 +17,13 @@ package com.google.cloud.vpcaccess.v1.stub; import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListConnectorsPagedResponse; +import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListLocationsPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.vpcaccess.v1.Connector; import com.google.cloud.vpcaccess.v1.CreateConnectorRequest; import com.google.cloud.vpcaccess.v1.DeleteConnectorRequest; @@ -81,6 +84,15 @@ public UnaryCallable deleteConnectorCallable( throw new UnsupportedOperationException("Not implemented: deleteConnectorCallable()"); } + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + @Override public abstract void close(); } 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 82% 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 01827378..61d83549 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 @@ -17,6 +17,7 @@ package com.google.cloud.vpcaccess.v1.stub; import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListConnectorsPagedResponse; +import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListLocationsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; @@ -47,6 +48,9 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.cloud.vpcaccess.v1.Connector; import com.google.cloud.vpcaccess.v1.CreateConnectorRequest; import com.google.cloud.vpcaccess.v1.DeleteConnectorRequest; @@ -72,9 +76,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 @@ -115,6 +119,9 @@ public class VpcAccessServiceStubSettings extends StubSettings deleteConnectorSettings; private final OperationCallSettings deleteConnectorOperationSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; private static final PagedListDescriptor LIST_CONNECTORS_PAGE_STR_DESC = @@ -153,6 +160,42 @@ public Iterable extractResources(ListConnectorsResponse payload) { } }; + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList() == null + ? ImmutableList.of() + : payload.getLocationsList(); + } + }; + private static final PagedListResponseFactory< ListConnectorsRequest, ListConnectorsResponse, ListConnectorsPagedResponse> LIST_CONNECTORS_PAGE_STR_FACT = @@ -170,6 +213,23 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to createConnector. */ public UnaryCallSettings createConnectorSettings() { return createConnectorSettings; @@ -204,6 +264,12 @@ public UnaryCallSettings deleteConnectorSetti return deleteConnectorOperationSettings; } + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + public VpcAccessServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -316,6 +382,7 @@ protected VpcAccessServiceStubSettings(Builder settingsBuilder) throws IOExcepti listConnectorsSettings = settingsBuilder.listConnectorsSettings().build(); deleteConnectorSettings = settingsBuilder.deleteConnectorSettings().build(); deleteConnectorOperationSettings = settingsBuilder.deleteConnectorOperationSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); } /** Builder for VpcAccessServiceStubSettings. */ @@ -334,6 +401,9 @@ public static class Builder extends StubSettings.Builder deleteConnectorOperationSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -342,6 +412,11 @@ public static class Builder extends StubSettings.BuildernewArrayList())); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.UNAVAILABLE, StatusCode.Code.UNKNOWN))); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -358,6 +433,17 @@ public static class Builder extends StubSettings.Builder>of( createConnectorSettings, getConnectorSettings, listConnectorsSettings, - deleteConnectorSettings); + deleteConnectorSettings, + listLocationsSettings); initDefaults(this); } @@ -393,13 +481,15 @@ protected Builder(VpcAccessServiceStubSettings settings) { listConnectorsSettings = settings.listConnectorsSettings.toBuilder(); deleteConnectorSettings = settings.deleteConnectorSettings.toBuilder(); deleteConnectorOperationSettings = settings.deleteConnectorOperationSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( createConnectorSettings, getConnectorSettings, listConnectorsSettings, - deleteConnectorSettings); + deleteConnectorSettings, + listLocationsSettings); } private static Builder createDefault() { @@ -449,6 +539,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .createConnectorOperationSettings() .setInitialCallSettings( @@ -553,6 +648,13 @@ public UnaryCallSettings.Builder deleteConnec return deleteConnectorOperationSettings; } + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + @Override public VpcAccessServiceStubSettings build() throws IOException { return new VpcAccessServiceStubSettings(this); diff --git a/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocations.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocations.java new file mode 100644 index 00000000..2ea202d4 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocations.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocations implements MockGrpcService { + private final MockLocationsImpl serviceImpl; + + public MockLocations() { + serviceImpl = new MockLocationsImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocationsImpl.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocationsImpl.java new file mode 100644 index 00000000..3df7f0f7 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocationsImpl.java @@ -0,0 +1,83 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 com.google.api.core.BetaApi; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.LocationsGrpc.LocationsImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocationsImpl extends LocationsImplBase { + private List requests; + private Queue responses; + + public MockLocationsImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listLocations( + ListLocationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLocationsResponse) { + requests.add(request); + responseObserver.onNext(((ListLocationsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListLocations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLocationsResponse.class.getName(), + Exception.class.getName()))); + } + } +} 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/VpcAccessServiceClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientHttpJsonTest.java similarity index 85% rename from google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientHttpJsonTest.java rename to owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientHttpJsonTest.java index e2487409..a13348e3 100644 --- a/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientHttpJsonTest.java +++ b/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientHttpJsonTest.java @@ -17,6 +17,7 @@ package com.google.cloud.vpcaccess.v1; import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListConnectorsPagedResponse; +import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListLocationsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.httpjson.GaxHttpJsonProperties; @@ -27,6 +28,9 @@ import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.cloud.vpcaccess.v1.stub.HttpJsonVpcAccessServiceStub; import com.google.common.collect.Lists; import com.google.longrunning.Operation; @@ -91,6 +95,9 @@ public void createConnectorTest() throws Exception { .setMaxThroughput(1407819749) .addAllConnectedProjects(new ArrayList()) .setSubnet(Connector.Subnet.newBuilder().build()) + .setMachineType("machineType-218117087") + .setMinInstances(1491624145) + .setMaxInstances(-330682013) .build(); Operation resultOperation = Operation.newBuilder() @@ -150,6 +157,9 @@ public void createConnectorTest2() throws Exception { .setMaxThroughput(1407819749) .addAllConnectedProjects(new ArrayList()) .setSubnet(Connector.Subnet.newBuilder().build()) + .setMachineType("machineType-218117087") + .setMinInstances(1491624145) + .setMaxInstances(-330682013) .build(); Operation resultOperation = Operation.newBuilder() @@ -209,6 +219,9 @@ public void getConnectorTest() throws Exception { .setMaxThroughput(1407819749) .addAllConnectedProjects(new ArrayList()) .setSubnet(Connector.Subnet.newBuilder().build()) + .setMachineType("machineType-218117087") + .setMinInstances(1491624145) + .setMaxInstances(-330682013) .build(); mockService.addResponse(expectedResponse); @@ -259,6 +272,9 @@ public void getConnectorTest2() throws Exception { .setMaxThroughput(1407819749) .addAllConnectedProjects(new ArrayList()) .setSubnet(Connector.Subnet.newBuilder().build()) + .setMachineType("machineType-218117087") + .setMinInstances(1491624145) + .setMaxInstances(-330682013) .build(); mockService.addResponse(expectedResponse); @@ -487,4 +503,66 @@ public void deleteConnectorExceptionTest2() throws Exception { } catch (ExecutionException e) { } } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } 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 84% 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 index 6fbcbdcd..4a5f4098 100644 --- 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 @@ -17,6 +17,7 @@ package com.google.cloud.vpcaccess.v1; import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListConnectorsPagedResponse; +import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListLocationsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -26,6 +27,9 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.common.collect.Lists; import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; @@ -48,6 +52,7 @@ @Generated("by gapic-generator-java") public class VpcAccessServiceClientTest { + private static MockLocations mockLocations; private static MockServiceHelper mockServiceHelper; private static MockVpcAccessService mockVpcAccessService; private LocalChannelProvider channelProvider; @@ -56,9 +61,11 @@ public class VpcAccessServiceClientTest { @BeforeClass public static void startStaticServer() { mockVpcAccessService = new MockVpcAccessService(); + mockLocations = new MockLocations(); mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockVpcAccessService)); + UUID.randomUUID().toString(), + Arrays.asList(mockVpcAccessService, mockLocations)); mockServiceHelper.start(); } @@ -95,6 +102,9 @@ public void createConnectorTest() throws Exception { .setMaxThroughput(1407819749) .addAllConnectedProjects(new ArrayList()) .setSubnet(Connector.Subnet.newBuilder().build()) + .setMachineType("machineType-218117087") + .setMinInstances(1491624145) + .setMaxInstances(-330682013) .build(); Operation resultOperation = Operation.newBuilder() @@ -153,6 +163,9 @@ public void createConnectorTest2() throws Exception { .setMaxThroughput(1407819749) .addAllConnectedProjects(new ArrayList()) .setSubnet(Connector.Subnet.newBuilder().build()) + .setMachineType("machineType-218117087") + .setMinInstances(1491624145) + .setMaxInstances(-330682013) .build(); Operation resultOperation = Operation.newBuilder() @@ -211,6 +224,9 @@ public void getConnectorTest() throws Exception { .setMaxThroughput(1407819749) .addAllConnectedProjects(new ArrayList()) .setSubnet(Connector.Subnet.newBuilder().build()) + .setMachineType("machineType-218117087") + .setMinInstances(1491624145) + .setMaxInstances(-330682013) .build(); mockVpcAccessService.addResponse(expectedResponse); @@ -255,6 +271,9 @@ public void getConnectorTest2() throws Exception { .setMaxThroughput(1407819749) .addAllConnectedProjects(new ArrayList()) .setSubnet(Connector.Subnet.newBuilder().build()) + .setMachineType("machineType-218117087") + .setMinInstances(1491624145) + .setMaxInstances(-330682013) .build(); mockVpcAccessService.addResponse(expectedResponse); @@ -459,4 +478,63 @@ public void deleteConnectorExceptionTest2() throws Exception { Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } 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..818b995d --- /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,579 @@ +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") +@io.grpc.stub.annotations.GrpcGenerated +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 68% 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 f647dd8a..983a4c5b 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,61 +1,45 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/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_ = ""; ipCidrRange_ = ""; state_ = 0; connectedProjects_ = com.google.protobuf.LazyStringArrayList.EMPTY; + machineType_ = ""; } @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,77 +59,85 @@ 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; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + machineType_ = s; + break; + } + case 88: { + + minInstances_ = input.readInt32(); + break; + } + case 96: { + + maxInstances_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -153,7 +145,8 @@ private Connector( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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(); @@ -162,35 +155,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.
      * 
@@ -199,8 +186,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Connector is deployed and ready to receive traffic.
      * 
@@ -209,8 +194,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(1), /** - * - * *
      * An Insert operation is in progress. Transient condition.
      * 
@@ -219,8 +202,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(2), /** - * - * *
      * A Delete operation is in progress. Transient condition.
      * 
@@ -229,8 +210,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(3), /** - * - * *
      * Connector is in a bad state, manual deletion recommended.
      * 
@@ -239,8 +218,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ERROR(4), /** - * - * *
      * The connector is being updated.
      * 
@@ -252,8 +229,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Invalid state.
      * 
@@ -262,8 +237,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.
      * 
@@ -272,8 +245,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 1; /** - * - * *
      * An Insert operation is in progress. Transient condition.
      * 
@@ -282,8 +253,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 2; /** - * - * *
      * A Delete operation is in progress. Transient condition.
      * 
@@ -292,8 +261,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.
      * 
@@ -302,8 +269,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 4; /** - * - * *
      * The connector is being updated.
      * 
@@ -312,6 +277,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( @@ -336,55 +302,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; @@ -401,14 +364,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
@@ -417,13 +377,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
@@ -432,14 +389,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
@@ -447,13 +402,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
@@ -461,30 +413,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_ = ""; @@ -492,15 +441,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) @@ -519,27 +469,25 @@ 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) { @@ -547,33 +495,29 @@ private Subnet( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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
@@ -582,7 +526,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -591,15 +534,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
@@ -608,15 +550,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 { @@ -627,8 +570,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
@@ -636,7 +577,6 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string project_id = 2; - * * @return The projectId. */ @java.lang.Override @@ -645,15 +585,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
@@ -661,15 +600,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 { @@ -678,7 +618,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -690,7 +629,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -720,16 +660,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; } @@ -750,94 +691,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 @@ -847,32 +782,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() @@ -880,15 +810,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(); @@ -900,9 +831,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 @@ -921,8 +852,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(); @@ -933,41 +863,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; @@ -975,8 +902,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(); @@ -1016,8 +942,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -1026,13 +950,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; @@ -1041,8 +965,6 @@ public java.lang.String getName() { } } /** - * - * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -1051,14 +973,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 { @@ -1066,8 +989,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -1076,22 +997,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
@@ -1100,18 +1019,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
@@ -1120,16 +1036,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; @@ -1137,8 +1053,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
@@ -1146,13 +1060,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; @@ -1161,8 +1075,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
@@ -1170,14 +1082,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 { @@ -1185,8 +1098,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
@@ -1194,22 +1105,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
@@ -1217,18 +1126,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
@@ -1236,21 +1142,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) { @@ -1263,12 +1168,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(); } @@ -1277,16 +1182,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; @@ -1301,19 +1206,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 @@ -1322,29 +1225,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 { @@ -1355,14 +1258,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 @@ -1371,29 +1271,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 { @@ -1404,15 +1304,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 @@ -1421,30 +1318,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 { @@ -1455,54 +1352,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 @@ -1513,14 +1394,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.
+   * Maximum throughput of the connector in Mbps. Default is 300, max is 1000.
    * 
* * int32 max_throughput = 6; - * * @return The maxThroughput. */ @java.lang.Override @@ -1531,45 +1409,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. */ @@ -1577,33 +1444,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 @@ -1611,25 +1472,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.
    * 
@@ -1641,8 +1495,83 @@ public com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder getSubnetOrBuilde return getSubnet(); } - private byte memoizedIsInitialized = -1; + public static final int MACHINE_TYPE_FIELD_NUMBER = 10; + private volatile java.lang.Object machineType_; + /** + *
+   * Machine type of VM Instance underlying connector. Default is e2-micro
+   * 
+ * + * string machine_type = 10; + * @return The machineType. + */ + @java.lang.Override + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineType_ = s; + return s; + } + } + /** + *
+   * Machine type of VM Instance underlying connector. Default is e2-micro
+   * 
+ * + * string machine_type = 10; + * @return The bytes for machineType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int MIN_INSTANCES_FIELD_NUMBER = 11; + private int minInstances_; + /** + *
+   * Minimum value of instances in autoscaling group underlying the connector.
+   * 
+ * + * int32 min_instances = 11; + * @return The minInstances. + */ + @java.lang.Override + public int getMinInstances() { + return minInstances_; + } + + public static final int MAX_INSTANCES_FIELD_NUMBER = 12; + private int maxInstances_; + /** + *
+   * Maximum value of instances in autoscaling group underlying the connector.
+   * 
+ * + * int32 max_instances = 12; + * @return The maxInstances. + */ + @java.lang.Override + public int getMaxInstances() { + return maxInstances_; + } + + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1654,7 +1583,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1679,6 +1609,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (subnet_ != null) { output.writeMessage(8, getSubnet()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, machineType_); + } + if (minInstances_ != 0) { + output.writeInt32(11, minInstances_); + } + if (maxInstances_ != 0) { + output.writeInt32(12, maxInstances_); + } unknownFields.writeTo(output); } @@ -1698,13 +1637,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; @@ -1715,7 +1657,19 @@ 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()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, machineType_); + } + if (minInstances_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(11, minInstances_); + } + if (maxInstances_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(12, maxInstances_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1725,24 +1679,37 @@ 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 (!getMachineType() + .equals(other.getMachineType())) return false; + if (getMinInstances() + != other.getMinInstances()) return false; + if (getMaxInstances() + != other.getMaxInstances()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1774,132 +1741,129 @@ public int hashCode() { hash = (37 * hash) + SUBNET_FIELD_NUMBER; hash = (53 * hash) + getSubnet().hashCode(); } + hash = (37 * hash) + MACHINE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMachineType().hashCode(); + hash = (37 * hash) + MIN_INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getMinInstances(); + hash = (37 * hash) + MAX_INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getMaxInstances(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; 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() @@ -1907,15 +1871,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,13 +1904,19 @@ public Builder clear() { subnet_ = null; subnetBuilder_ = null; } + machineType_ = ""; + + minInstances_ = 0; + + maxInstances_ = 0; + return this; } @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 @@ -1964,8 +1935,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_; @@ -1983,6 +1953,9 @@ public com.google.cloud.vpcaccess.v1.Connector buildPartial() { } else { result.subnet_ = subnetBuilder_.build(); } + result.machineType_ = machineType_; + result.minInstances_ = minInstances_; + result.maxInstances_ = maxInstances_; onBuilt(); return result; } @@ -1991,39 +1964,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; @@ -2066,6 +2038,16 @@ public Builder mergeFrom(com.google.cloud.vpcaccess.v1.Connector other) { if (other.hasSubnet()) { mergeSubnet(other.getSubnet()); } + if (!other.getMachineType().isEmpty()) { + machineType_ = other.machineType_; + onChanged(); + } + if (other.getMinInstances() != 0) { + setMinInstances(other.getMinInstances()); + } + if (other.getMaxInstances() != 0) { + setMaxInstances(other.getMaxInstances()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2094,25 +2076,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; @@ -2121,21 +2100,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 { @@ -2143,61 +2121,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; @@ -2205,20 +2176,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; @@ -2227,21 +2196,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 { @@ -2249,61 +2217,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; @@ -2311,21 +2272,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; @@ -2334,22 +2293,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 { @@ -2357,64 +2315,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; @@ -2422,73 +2373,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. */ @@ -2496,41 +2425,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 @@ -2538,51 +2459,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.
+     * Maximum throughput of the connector in Mbps. Default is 300, max is 1000.
      * 
* * int32 max_throughput = 6; - * * @return The maxThroughput. */ @java.lang.Override @@ -2590,90 +2502,71 @@ public int getMaxThroughput() { return maxThroughput_; } /** - * - * *
-     * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
+     * Maximum throughput of the connector in Mbps. Default is 300, 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.
+     * Maximum throughput of the connector in Mbps. Default is 300, 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. */ @@ -2681,95 +2574,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() { @@ -2779,23 +2657,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(); @@ -2804,47 +2679,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.
      * 
@@ -2865,8 +2727,6 @@ public Builder setSubnet(com.google.cloud.vpcaccess.v1.Connector.Subnet value) { return this; } /** - * - * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2885,8 +2745,6 @@ public Builder setSubnet( return this; } /** - * - * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2897,9 +2755,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; } @@ -2911,8 +2767,6 @@ public Builder mergeSubnet(com.google.cloud.vpcaccess.v1.Connector.Subnet value) return this; } /** - * - * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2931,8 +2785,6 @@ public Builder clearSubnet() { return this; } /** - * - * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2940,13 +2792,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.
      * 
@@ -2957,14 +2807,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.
      * 
@@ -2972,24 +2819,203 @@ 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_; } + private java.lang.Object machineType_ = ""; + /** + *
+     * Machine type of VM Instance underlying connector. Default is e2-micro
+     * 
+ * + * string machine_type = 10; + * @return The machineType. + */ + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Machine type of VM Instance underlying connector. Default is e2-micro
+     * 
+ * + * string machine_type = 10; + * @return The bytes for machineType. + */ + public com.google.protobuf.ByteString + getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Machine type of VM Instance underlying connector. Default is e2-micro
+     * 
+ * + * string machine_type = 10; + * @param value The machineType to set. + * @return This builder for chaining. + */ + public Builder setMachineType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + machineType_ = value; + onChanged(); + return this; + } + /** + *
+     * Machine type of VM Instance underlying connector. Default is e2-micro
+     * 
+ * + * string machine_type = 10; + * @return This builder for chaining. + */ + public Builder clearMachineType() { + + machineType_ = getDefaultInstance().getMachineType(); + onChanged(); + return this; + } + /** + *
+     * Machine type of VM Instance underlying connector. Default is e2-micro
+     * 
+ * + * string machine_type = 10; + * @param value The bytes for machineType to set. + * @return This builder for chaining. + */ + public Builder setMachineTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + machineType_ = value; + onChanged(); + return this; + } + + private int minInstances_ ; + /** + *
+     * Minimum value of instances in autoscaling group underlying the connector.
+     * 
+ * + * int32 min_instances = 11; + * @return The minInstances. + */ + @java.lang.Override + public int getMinInstances() { + return minInstances_; + } + /** + *
+     * Minimum value of instances in autoscaling group underlying the connector.
+     * 
+ * + * int32 min_instances = 11; + * @param value The minInstances to set. + * @return This builder for chaining. + */ + public Builder setMinInstances(int value) { + + minInstances_ = value; + onChanged(); + return this; + } + /** + *
+     * Minimum value of instances in autoscaling group underlying the connector.
+     * 
+ * + * int32 min_instances = 11; + * @return This builder for chaining. + */ + public Builder clearMinInstances() { + + minInstances_ = 0; + onChanged(); + return this; + } + + private int maxInstances_ ; + /** + *
+     * Maximum value of instances in autoscaling group underlying the connector.
+     * 
+ * + * int32 max_instances = 12; + * @return The maxInstances. + */ @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public int getMaxInstances() { + return maxInstances_; + } + /** + *
+     * Maximum value of instances in autoscaling group underlying the connector.
+     * 
+ * + * int32 max_instances = 12; + * @param value The maxInstances to set. + * @return This builder for chaining. + */ + public Builder setMaxInstances(int value) { + + maxInstances_ = value; + onChanged(); + return this; + } + /** + *
+     * Maximum value of instances in autoscaling group underlying the connector.
+     * 
+ * + * int32 max_instances = 12; + * @return This builder for chaining. + */ + public Builder clearMaxInstances() { + + maxInstances_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2999,12 +3025,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(); } @@ -3013,16 +3039,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; @@ -3037,4 +3063,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 70% 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..06560236 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.
+   * Maximum throughput of the connector in Mbps. Default is 300, 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.
    * 
@@ -244,4 +175,44 @@ public interface ConnectorOrBuilder * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; */ com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder getSubnetOrBuilder(); + + /** + *
+   * Machine type of VM Instance underlying connector. Default is e2-micro
+   * 
+ * + * string machine_type = 10; + * @return The machineType. + */ + java.lang.String getMachineType(); + /** + *
+   * Machine type of VM Instance underlying connector. Default is e2-micro
+   * 
+ * + * string machine_type = 10; + * @return The bytes for machineType. + */ + com.google.protobuf.ByteString + getMachineTypeBytes(); + + /** + *
+   * Minimum value of instances in autoscaling group underlying the connector.
+   * 
+ * + * int32 min_instances = 11; + * @return The minInstances. + */ + int getMinInstances(); + + /** + *
+   * Maximum value of instances in autoscaling group underlying the connector.
+   * 
+ * + * int32 max_instances = 12; + * @return The maxInstances. + */ + int getMaxInstances(); } 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 7b720628..e37c1af0 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,43 +54,38 @@ 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) { @@ -115,42 +93,35 @@ private CreateConnectorRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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 @@ -159,32 +130,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 { @@ -195,14 +164,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 @@ -211,29 +177,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 { @@ -244,16 +210,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 @@ -261,34 +222,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() { @@ -296,7 +246,6 @@ public com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorOrBuilder() } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -308,7 +257,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -334,7 +284,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; @@ -344,19 +295,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; @@ -383,126 +336,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() @@ -510,15 +454,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(); @@ -536,9 +481,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 @@ -557,8 +502,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) { @@ -574,39 +518,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; @@ -614,8 +557,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(); @@ -646,8 +588,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) { @@ -659,23 +600,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; @@ -684,24 +621,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 { @@ -709,70 +643,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; @@ -780,20 +701,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; @@ -802,21 +721,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 { @@ -824,61 +742,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; @@ -886,58 +797,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) { @@ -953,17 +845,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(); @@ -974,23 +863,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; } @@ -1002,15 +885,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) { @@ -1024,71 +903,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); } @@ -1098,12 +961,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(); } @@ -1112,16 +975,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; @@ -1136,4 +999,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 65% 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 e56ff8aa..bb58e229 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,20 +53,19 @@ 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) { @@ -91,41 +73,34 @@ private DeleteConnectorRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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 @@ -134,31 +109,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 { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -231,126 +204,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() @@ -358,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.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 @@ -397,8 +362,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; @@ -408,39 +372,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; @@ -448,8 +411,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(); @@ -473,8 +435,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) { @@ -486,22 +447,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; @@ -510,23 +467,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 { @@ -534,74 +488,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); } @@ -611,12 +552,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(); } @@ -625,16 +566,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; @@ -649,4 +590,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 ad4cad8e..6ad32b1f 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,20 +53,19 @@ 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) { @@ -91,41 +73,34 @@ private GetConnectorRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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 @@ -134,31 +109,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 { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -231,126 +204,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() @@ -358,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.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 @@ -397,8 +362,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; @@ -408,39 +372,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; @@ -448,8 +411,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(); @@ -473,8 +435,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) { @@ -486,22 +447,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; @@ -510,23 +467,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 { @@ -534,74 +488,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); } @@ -611,12 +552,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(); } @@ -625,16 +566,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; @@ -649,4 +590,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 f4775b63..ea7b5b90 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,32 +54,30 @@ 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) { @@ -104,41 +85,34 @@ private ListConnectorsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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 @@ -147,31 +121,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 { @@ -182,14 +154,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 @@ -200,14 +169,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 @@ -216,29 +182,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 { @@ -247,7 +213,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,7 +224,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -282,7 +248,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -295,17 +262,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; } @@ -329,126 +298,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() @@ -456,15 +416,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(); @@ -478,9 +439,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 @@ -499,8 +460,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_; @@ -512,39 +472,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; @@ -552,8 +511,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(); @@ -584,8 +542,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) { @@ -597,22 +554,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; @@ -621,23 +574,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 { @@ -645,82 +595,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 @@ -728,36 +662,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; @@ -765,20 +693,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; @@ -787,21 +713,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 { @@ -809,68 +734,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); } @@ -880,12 +798,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(); } @@ -894,16 +812,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; @@ -918,4 +836,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 84b3bd38..43929e50 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,31 +55,28 @@ 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) { @@ -104,7 +84,8 @@ private ListConnectorsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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_); @@ -113,27 +94,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.
    * 
@@ -145,8 +121,6 @@ public java.util.List getConnectorsList return connectors_; } /** - * - * *
    * List of Serverless VPC Access connectors.
    * 
@@ -154,13 +128,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.
    * 
@@ -172,8 +144,6 @@ public int getConnectorsCount() { return connectors_.size(); } /** - * - * *
    * List of Serverless VPC Access connectors.
    * 
@@ -185,8 +155,6 @@ public com.google.cloud.vpcaccess.v1.Connector getConnectors(int index) { return connectors_.get(index); } /** - * - * *
    * List of Serverless VPC Access connectors.
    * 
@@ -194,21 +162,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 @@ -217,29 +183,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 { @@ -248,7 +214,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +225,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)); } @@ -277,7 +243,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -290,16 +257,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -323,126 +291,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() @@ -450,17 +409,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getConnectorsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -476,9 +435,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 @@ -497,8 +456,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)) { @@ -518,39 +476,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; @@ -558,8 +515,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()) { @@ -578,10 +534,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_); } @@ -610,8 +565,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) { @@ -620,28 +574,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.
      * 
@@ -656,8 +603,6 @@ public java.util.List getConnectorsList } } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -672,8 +617,6 @@ public int getConnectorsCount() { } } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -688,15 +631,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(); @@ -710,8 +652,6 @@ public Builder setConnectors(int index, com.google.cloud.vpcaccess.v1.Connector return this; } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -730,8 +670,6 @@ public Builder setConnectors( return this; } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -752,15 +690,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(); @@ -774,15 +711,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()); @@ -793,8 +729,6 @@ public Builder addConnectors(com.google.cloud.vpcaccess.v1.Connector.Builder bui return this; } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -813,8 +747,6 @@ public Builder addConnectors( return this; } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -825,7 +757,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); @@ -833,8 +766,6 @@ public Builder addAllConnectors( return this; } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -852,8 +783,6 @@ public Builder clearConnectors() { return this; } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -871,44 +800,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 { @@ -916,8 +840,6 @@ public com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorsOrBuilder(i } } /** - * - * *
      * List of Serverless VPC Access connectors.
      * 
@@ -925,48 +847,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_; @@ -974,20 +890,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; @@ -996,21 +910,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 { @@ -1018,68 +931,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); } @@ -1089,12 +995,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(); } @@ -1103,16 +1009,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; @@ -1127,4 +1033,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 b31c54c6..541a05ae 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,57 +54,51 @@ 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) { @@ -129,40 +106,35 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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 @@ -171,30 +143,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 { @@ -205,15 +177,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 @@ -221,15 +189,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 @@ -237,14 +201,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() { @@ -254,15 +215,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 @@ -270,15 +227,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 @@ -286,14 +239,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() { @@ -303,17 +253,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 @@ -322,32 +267,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 { @@ -356,7 +299,6 @@ public com.google.protobuf.ByteString getTargetBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -368,7 +310,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, method_); } @@ -394,10 +337,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, target_); @@ -410,24 +355,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; } @@ -456,127 +404,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() @@ -584,15 +523,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(); @@ -616,9 +556,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 @@ -637,8 +577,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_; @@ -659,39 +598,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; @@ -699,8 +637,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(); @@ -746,21 +683,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; @@ -769,22 +704,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 { @@ -792,64 +726,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; @@ -857,58 +784,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) { @@ -924,17 +832,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(); @@ -945,21 +850,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; } @@ -971,15 +872,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) { @@ -993,64 +890,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_; @@ -1058,35 +939,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() { @@ -1097,14 +967,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) { @@ -1120,16 +987,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(); @@ -1140,20 +1005,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; } @@ -1165,14 +1027,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) { @@ -1186,59 +1045,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_; @@ -1246,23 +1094,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; @@ -1271,24 +1115,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 { @@ -1296,77 +1137,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); } @@ -1376,12 +1204,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(); } @@ -1390,16 +1218,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; @@ -1414,4 +1242,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..829fffaa --- /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,215 @@ +// 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\"\310\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\022\024\n\014machine_type\030\n \001(\t\022\025\n\rmin_" + + "instances\030\013 \001(\005\022\025\n\rmax_instances\030\014 \001(\005\032*" + + "\n\006Subnet\022\014\n\004name\030\001 \001(\t\022\022\n\nproject_id\030\002 \001" + + "(\t\"^\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005RE" + + "ADY\020\001\022\014\n\010CREATING\020\002\022\014\n\010DELETING\020\003\022\t\n\005ERR" + + "OR\020\004\022\014\n\010UPDATING\020\005:g\352Ad\n\"vpcaccess.googl" + + "eapis.com/Connector\022>projects/{project}/" + + "locations/{location}/connectors/{connect" + + "or}\"\254\001\n\026CreateConnectorRequest\0229\n\006parent" + + "\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com" + + "/Location\022\031\n\014connector_id\030\002 \001(\tB\003\340A\002\022<\n\t" + + "connector\030\003 \001(\0132$.google.cloud.vpcaccess" + + ".v1.ConnectorB\003\340A\002\"O\n\023GetConnectorReques" + + "t\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpcaccess.googl" + + "eapis.com/Connector\"y\n\025ListConnectorsReq" + + "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations." + + "googleapis.com/Location\022\021\n\tpage_size\030\002 \001" + + "(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\026ListConnectors" + + "Response\0228\n\nconnectors\030\001 \003(\0132$.google.cl" + + "oud.vpcaccess.v1.Connector\022\027\n\017next_page_" + + "token\030\002 \001(\t\"R\n\026DeleteConnectorRequest\0228\n" + + "\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpcaccess.googleapi" + + "s.com/Connector\"\315\001\n\021OperationMetadata\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.g" + + "oogleapis.com/Connector2\374\006\n\020VpcAccessSer" + + "vice\022\350\001\n\017CreateConnector\0221.google.cloud." + + "vpcaccess.v1.CreateConnectorRequest\032\035.go" + + "ogle.longrunning.Operation\"\202\001\202\323\344\223\002;\"./v1" + + "/{parent=projects/*/locations/*}/connect" + + "ors:\tconnector\332A\035parent,connector_id,con" + + "nector\312A\036\n\tConnector\022\021OperationMetadata\022" + + "\243\001\n\014GetConnector\022..google.cloud.vpcacces" + + "s.v1.GetConnectorRequest\032$.google.cloud." + + "vpcaccess.v1.Connector\"=\202\323\344\223\0020\022./v1/{nam" + + "e=projects/*/locations/*/connectors/*}\332A" + + "\004name\022\266\001\n\016ListConnectors\0220.google.cloud." + + "vpcaccess.v1.ListConnectorsRequest\0321.goo" + + "gle.cloud.vpcaccess.v1.ListConnectorsRes" + + "ponse\"?\202\323\344\223\0020\022./v1/{parent=projects/*/lo" + + "cations/*}/connectors\332A\006parent\022\317\001\n\017Delet" + + "eConnector\0221.google.cloud.vpcaccess.v1.D" + + "eleteConnectorRequest\032\035.google.longrunni" + + "ng.Operation\"j\202\323\344\223\0020*./v1/{name=projects" + + "/*/locations/*/connectors/*}\332A\004name\312A*\n\025" + + "google.protobuf.Empty\022\021OperationMetadata" + + "\032L\312A\030vpcaccess.googleapis.com\322A.https://" + + "www.googleapis.com/auth/cloud-platformB\314" + + "\001\n\035com.google.cloud.vpcaccess.v1B\016VpcAcc" + + "essProtoP\001ZBgoogle.golang.org/genproto/g" + + "oogleapis/cloud/vpcaccess/v1;vpcaccess\252\002" + + "\031Google.Cloud.VpcAccess.V1\312\002\031Google\\Clou" + + "d\\VpcAccess\\V1\352\002\034Google::Cloud::VpcAcces" + + "s::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", "MachineType", "MinInstances", "MaxInstances", }); + 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 95% 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 index 24ac40dd..bf2b2fc8 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -89,20 +89,6 @@ message Connector { pattern: "projects/{project}/locations/{location}/connectors/{connector}" }; - // The subnet in which to house the connector - message Subnet { - // Subnet name (relative, not fully qualified). - // E.g. if the full subnet selfLink is - // https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} - // the correct input for this field would be {subnetName} - string name = 1; - - // Project in which the subnet exists. - // If not set, this project is assumed to be the project for which - // the connector create request was issued. - string project_id = 2; - } - // State of a connector. enum State { // Invalid state. @@ -124,6 +110,20 @@ message Connector { UPDATING = 5; } + // The subnet in which to house the connector + message Subnet { + // Subnet name (relative, not fully qualified). + // E.g. if the full subnet selfLink is + // https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} + // the correct input for this field would be {subnetName} + string name = 1; + + // Project in which the subnet exists. + // If not set, this project is assumed to be the project for which + // the connector create request was issued. + string project_id = 2; + } + // The resource name in the format `projects/*/locations/*/connectors/*`. string name = 1; @@ -140,7 +140,7 @@ message Connector { // Minimum throughput of the connector in Mbps. Default and min is 200. int32 min_throughput = 5; - // Maximum throughput of the connector in Mbps. Default is 200, max is 1000. + // Maximum throughput of the connector in Mbps. Default is 300, max is 1000. int32 max_throughput = 6; // Output only. List of projects using the connector. @@ -148,6 +148,15 @@ message Connector { // The subnet in which to house the VPC Access Connector. Subnet subnet = 8; + + // Machine type of VM Instance underlying connector. Default is e2-micro + string machine_type = 10; + + // Minimum value of instances in autoscaling group underlying the connector. + int32 min_instances = 11; + + // Maximum value of instances in autoscaling group underlying the connector. + int32 max_instances = 12; } // Request for creating a Serverless VPC Access connector. diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/stub/vpcaccessservicestubsettings/getconnector/SyncGetConnector.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/stub/vpcaccessservicestubsettings/getconnector/SyncGetConnector.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/stub/vpcaccessservicestubsettings/getconnector/SyncGetConnector.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/stub/vpcaccessservicestubsettings/getconnector/SyncGetConnector.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnector.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnector.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnector.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnector.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnectorLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnectorLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnectorLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnectorLRO.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnector.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnector.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnector.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnector.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorLocationnameStringConnector.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorLocationnameStringConnector.java similarity index 88% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorLocationnameStringConnector.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorLocationnameStringConnector.java index d559f65e..d2f0f1b5 100644 --- a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorLocationnameStringConnector.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorLocationnameStringConnector.java @@ -16,8 +16,7 @@ package com.google.cloud.vpcaccess.v1.samples; -// [START -// vpcaccess_v1_generated_vpcaccessserviceclient_createconnector_locationnamestringconnector_sync] +// [START vpcaccess_v1_generated_vpcaccessserviceclient_createconnector_locationnamestringconnector_sync] import com.google.cloud.vpcaccess.v1.Connector; import com.google.cloud.vpcaccess.v1.LocationName; import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; @@ -40,5 +39,4 @@ public static void syncCreateConnectorLocationnameStringConnector() throws Excep } } } -// [END -// vpcaccess_v1_generated_vpcaccessserviceclient_createconnector_locationnamestringconnector_sync] +// [END vpcaccess_v1_generated_vpcaccessserviceclient_createconnector_locationnamestringconnector_sync] diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorStringStringConnector.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorStringStringConnector.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorStringStringConnector.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorStringStringConnector.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnector.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnector.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnector.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnector.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnectorLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnectorLRO.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnectorLRO.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnectorLRO.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnector.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnector.java similarity index 98% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnector.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnector.java index b13ba891..12ff233f 100644 --- a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnector.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnector.java @@ -20,6 +20,7 @@ import com.google.cloud.vpcaccess.v1.ConnectorName; import com.google.cloud.vpcaccess.v1.DeleteConnectorRequest; import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; +import com.google.protobuf.Empty; public class SyncDeleteConnector { diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java index aaf23ca9..a04fe677 100644 --- a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java @@ -19,6 +19,7 @@ // [START vpcaccess_v1_generated_vpcaccessserviceclient_deleteconnector_connectorname_sync] import com.google.cloud.vpcaccess.v1.ConnectorName; import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; +import com.google.protobuf.Empty; public class SyncDeleteConnectorConnectorname { diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java similarity index 97% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java index a3832c58..eb10e2db 100644 --- a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java @@ -19,6 +19,7 @@ // [START vpcaccess_v1_generated_vpcaccessserviceclient_deleteconnector_string_sync] import com.google.cloud.vpcaccess.v1.ConnectorName; import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; +import com.google.protobuf.Empty; public class SyncDeleteConnectorString { diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/AsyncGetConnector.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/AsyncGetConnector.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/AsyncGetConnector.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/AsyncGetConnector.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnector.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnector.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnector.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnector.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorConnectorname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorConnectorname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorConnectorname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorConnectorname.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorString.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectors.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectors.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectors.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectors.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectorsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectorsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectorsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectorsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectors.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectors.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectors.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectors.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsLocationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsLocationname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsLocationname.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsLocationname.java diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsString.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocations.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocations.java new file mode 100644 index 00000000..302e5f6f --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocations.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.samples; + +// [START vpcaccess_v1_generated_vpcaccessserviceclient_listlocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + vpcAccessServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_listlocations_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocationsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 00000000..e3b1dc1d --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.samples; + +// [START vpcaccess_v1_generated_vpcaccessserviceclient_listlocations_paged_async] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + vpcAccessServiceClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_listlocations_paged_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/SyncListLocations.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/SyncListLocations.java new file mode 100644 index 00000000..13be8957 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/SyncListLocations.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.samples; + +// [START vpcaccess_v1_generated_vpcaccessserviceclient_listlocations_sync] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : vpcAccessServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_listlocations_sync] diff --git a/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservicesettings/getconnector/SyncGetConnector.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservicesettings/getconnector/SyncGetConnector.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservicesettings/getconnector/SyncGetConnector.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservicesettings/getconnector/SyncGetConnector.java 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 4d5e33975322d8dc0fc736c351cc875eaae94ee6 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 24 Aug 2022 15:08:23 +0000 Subject: [PATCH 4/6] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../vpcaccess/v1/VpcAccessServiceClient.java | 26 +- .../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 - ...tpJsonVpcAccessServiceCallableFactory.java | 0 .../v1/stub/HttpJsonVpcAccessServiceStub.java | 1 - .../v1/stub/VpcAccessServiceStub.java | 0 .../v1/stub/VpcAccessServiceStubSettings.java | 6 +- .../cloud/vpcaccess/v1/MockLocations.java | 0 .../cloud/vpcaccess/v1/MockLocationsImpl.java | 0 .../vpcaccess/v1/MockVpcAccessService.java | 0 .../v1/MockVpcAccessServiceImpl.java | 0 .../VpcAccessServiceClientHttpJsonTest.java | 0 .../v1/VpcAccessServiceClientTest.java | 0 .../vpcaccess/v1/VpcAccessServiceGrpc.java | 722 ++++++++ .../vpcaccess/v1/VpcAccessServiceGrpc.java | 579 ------- .../v1/DeleteConnectorRequestOrBuilder.java | 29 - .../v1/GetConnectorRequestOrBuilder.java | 29 - .../cloud/vpcaccess/v1/VpcAccessProto.java | 215 --- .../google/cloud/vpcaccess/v1/Connector.java | 1481 ++++++++++------- .../cloud/vpcaccess/v1/ConnectorName.java | 0 .../vpcaccess/v1/ConnectorOrBuilder.java | 118 +- .../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 | 247 +++ .../cloud/vpcaccess/v1/vpc_access.proto | 0 .../getconnector/SyncGetConnector.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createconnector/AsyncCreateConnector.java | 0 .../AsyncCreateConnectorLRO.java | 0 .../createconnector/SyncCreateConnector.java | 0 ...eConnectorLocationnameStringConnector.java | 0 ...cCreateConnectorStringStringConnector.java | 0 .../deleteconnector/AsyncDeleteConnector.java | 0 .../AsyncDeleteConnectorLRO.java | 0 .../deleteconnector/SyncDeleteConnector.java | 0 .../SyncDeleteConnectorConnectorname.java | 0 .../SyncDeleteConnectorString.java | 0 .../getconnector/AsyncGetConnector.java | 0 .../getconnector/SyncGetConnector.java | 0 .../SyncGetConnectorConnectorname.java | 0 .../getconnector/SyncGetConnectorString.java | 0 .../listconnectors/AsyncListConnectors.java | 0 .../AsyncListConnectorsPaged.java | 0 .../listconnectors/SyncListConnectors.java | 0 .../SyncListConnectorsLocationname.java | 0 .../SyncListConnectorsString.java | 0 .../listlocations/AsyncListLocations.java | 0 .../AsyncListLocationsPaged.java | 0 .../listlocations/SyncListLocations.java | 0 .../getconnector/SyncGetConnector.java | 0 66 files changed, 4014 insertions(+), 2620 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 (97%) 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/HttpJsonVpcAccessServiceCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-vpcaccess => google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.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 (99%) rename {owl-bot-staging/v1/google-cloud-vpcaccess => google-cloud-vpcaccess}/src/test/java/com/google/cloud/vpcaccess/v1/MockLocations.java (100%) rename {owl-bot-staging/v1/google-cloud-vpcaccess => google-cloud-vpcaccess}/src/test/java/com/google/cloud/vpcaccess/v1/MockLocationsImpl.java (100%) 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/VpcAccessServiceClientHttpJsonTest.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 (74%) 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 (74%) 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 (65%) 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%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/stub/vpcaccessservicestubsettings/getconnector/SyncGetConnector.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnector.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnectorLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnector.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorLocationnameStringConnector.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorStringStringConnector.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnector.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnectorLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnector.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/AsyncGetConnector.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnector.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorConnectorname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectors.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectorsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectors.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsLocationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocations.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocationsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/SyncListLocations.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservicesettings/getconnector/SyncGetConnector.java (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 18da519b..4fd00891 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 @@ -67,13 +67,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. *
* @@ -855,7 +855,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( @@ -905,7 +908,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) { @@ -925,7 +931,10 @@ protected ListConnectorsFixedSizeCollection createCollection( public static class ListLocationsPagedResponse extends AbstractPagedListResponse< - ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, ListLocationsFixedSizeCollection> { public static ApiFuture createAsync( @@ -975,7 +984,10 @@ public ApiFuture createPageAsync( public static class ListLocationsFixedSizeCollection extends AbstractFixedSizeCollection< - ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, ListLocationsFixedSizeCollection> { private ListLocationsFixedSizeCollection(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 97% 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 fff6bdba..241e6e1d 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 @@ -30,7 +30,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.location.ListLocationsRequest; @@ -49,9 +48,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 21418979..e7f52bec 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 @@ -42,7 +42,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/HttpJsonVpcAccessServiceCallableFactory.java b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceCallableFactory.java rename to google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java rename to google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java index 37e2d7bf..160e3b46 100644 --- a/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java +++ b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java @@ -31,7 +31,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; 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 99% 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 61d83549..eb6adeb2 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 @@ -76,9 +76,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/MockLocations.java b/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocations.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocations.java rename to google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocations.java diff --git a/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocationsImpl.java b/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocationsImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocationsImpl.java rename to google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockLocationsImpl.java 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/VpcAccessServiceClientHttpJsonTest.java b/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientHttpJsonTest.java rename to google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientHttpJsonTest.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..ccc23836 --- /dev/null +++ b/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java @@ -0,0 +1,722 @@ +/* + * 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") +@io.grpc.stub.annotations.GrpcGenerated +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 818b995d..00000000 --- a/owl-bot-staging/v1/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java +++ /dev/null @@ -1,579 +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") -@io.grpc.stub.annotations.GrpcGenerated -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 829fffaa..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessProto.java +++ /dev/null @@ -1,215 +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\"\310\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\022\024\n\014machine_type\030\n \001(\t\022\025\n\rmin_" + - "instances\030\013 \001(\005\022\025\n\rmax_instances\030\014 \001(\005\032*" + - "\n\006Subnet\022\014\n\004name\030\001 \001(\t\022\022\n\nproject_id\030\002 \001" + - "(\t\"^\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005RE" + - "ADY\020\001\022\014\n\010CREATING\020\002\022\014\n\010DELETING\020\003\022\t\n\005ERR" + - "OR\020\004\022\014\n\010UPDATING\020\005:g\352Ad\n\"vpcaccess.googl" + - "eapis.com/Connector\022>projects/{project}/" + - "locations/{location}/connectors/{connect" + - "or}\"\254\001\n\026CreateConnectorRequest\0229\n\006parent" + - "\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com" + - "/Location\022\031\n\014connector_id\030\002 \001(\tB\003\340A\002\022<\n\t" + - "connector\030\003 \001(\0132$.google.cloud.vpcaccess" + - ".v1.ConnectorB\003\340A\002\"O\n\023GetConnectorReques" + - "t\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpcaccess.googl" + - "eapis.com/Connector\"y\n\025ListConnectorsReq" + - "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations." + - "googleapis.com/Location\022\021\n\tpage_size\030\002 \001" + - "(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\026ListConnectors" + - "Response\0228\n\nconnectors\030\001 \003(\0132$.google.cl" + - "oud.vpcaccess.v1.Connector\022\027\n\017next_page_" + - "token\030\002 \001(\t\"R\n\026DeleteConnectorRequest\0228\n" + - "\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpcaccess.googleapi" + - "s.com/Connector\"\315\001\n\021OperationMetadata\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.g" + - "oogleapis.com/Connector2\374\006\n\020VpcAccessSer" + - "vice\022\350\001\n\017CreateConnector\0221.google.cloud." + - "vpcaccess.v1.CreateConnectorRequest\032\035.go" + - "ogle.longrunning.Operation\"\202\001\202\323\344\223\002;\"./v1" + - "/{parent=projects/*/locations/*}/connect" + - "ors:\tconnector\332A\035parent,connector_id,con" + - "nector\312A\036\n\tConnector\022\021OperationMetadata\022" + - "\243\001\n\014GetConnector\022..google.cloud.vpcacces" + - "s.v1.GetConnectorRequest\032$.google.cloud." + - "vpcaccess.v1.Connector\"=\202\323\344\223\0020\022./v1/{nam" + - "e=projects/*/locations/*/connectors/*}\332A" + - "\004name\022\266\001\n\016ListConnectors\0220.google.cloud." + - "vpcaccess.v1.ListConnectorsRequest\0321.goo" + - "gle.cloud.vpcaccess.v1.ListConnectorsRes" + - "ponse\"?\202\323\344\223\0020\022./v1/{parent=projects/*/lo" + - "cations/*}/connectors\332A\006parent\022\317\001\n\017Delet" + - "eConnector\0221.google.cloud.vpcaccess.v1.D" + - "eleteConnectorRequest\032\035.google.longrunni" + - "ng.Operation\"j\202\323\344\223\0020*./v1/{name=projects" + - "/*/locations/*/connectors/*}\332A\004name\312A*\n\025" + - "google.protobuf.Empty\022\021OperationMetadata" + - "\032L\312A\030vpcaccess.googleapis.com\322A.https://" + - "www.googleapis.com/auth/cloud-platformB\314" + - "\001\n\035com.google.cloud.vpcaccess.v1B\016VpcAcc" + - "essProtoP\001ZBgoogle.golang.org/genproto/g" + - "oogleapis/cloud/vpcaccess/v1;vpcaccess\252\002" + - "\031Google.Cloud.VpcAccess.V1\312\002\031Google\\Clou" + - "d\\VpcAccess\\V1\352\002\034Google::Cloud::VpcAcces" + - "s::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", "MachineType", "MinInstances", "MaxInstances", }); - 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 74% 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 983a4c5b..895112a2 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_ = ""; @@ -30,16 +48,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) @@ -59,85 +76,94 @@ 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; } - subnet_ = input.readMessage(com.google.cloud.vpcaccess.v1.Connector.Subnet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(subnet_); - subnet_ = subBuilder.buildPartial(); + 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; + } + 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; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - - machineType_ = s; - break; - } - case 88: { - - minInstances_ = input.readInt32(); - break; - } - case 96: { + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); - maxInstances_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + machineType_ = s; + break; + } + case 88: + { + minInstances_ = input.readInt32(); + break; + } + case 96: + { + maxInstances_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -145,8 +171,7 @@ private Connector( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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(); @@ -155,29 +180,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.
      * 
@@ -186,6 +217,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Connector is deployed and ready to receive traffic.
      * 
@@ -194,6 +227,8 @@ public enum State */ READY(1), /** + * + * *
      * An Insert operation is in progress. Transient condition.
      * 
@@ -202,6 +237,8 @@ public enum State */ CREATING(2), /** + * + * *
      * A Delete operation is in progress. Transient condition.
      * 
@@ -210,6 +247,8 @@ public enum State */ DELETING(3), /** + * + * *
      * Connector is in a bad state, manual deletion recommended.
      * 
@@ -218,6 +257,8 @@ public enum State */ ERROR(4), /** + * + * *
      * The connector is being updated.
      * 
@@ -229,6 +270,8 @@ public enum State ; /** + * + * *
      * Invalid state.
      * 
@@ -237,6 +280,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Connector is deployed and ready to receive traffic.
      * 
@@ -245,6 +290,8 @@ public enum State */ public static final int READY_VALUE = 1; /** + * + * *
      * An Insert operation is in progress. Transient condition.
      * 
@@ -253,6 +300,8 @@ public enum State */ public static final int CREATING_VALUE = 2; /** + * + * *
      * A Delete operation is in progress. Transient condition.
      * 
@@ -261,6 +310,8 @@ public enum State */ public static final int DELETING_VALUE = 3; /** + * + * *
      * Connector is in a bad state, manual deletion recommended.
      * 
@@ -269,6 +320,8 @@ public enum State */ public static final int ERROR_VALUE = 4; /** + * + * *
      * The connector is being updated.
      * 
@@ -277,7 +330,6 @@ public enum State */ public static final int UPDATING_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -302,52 +354,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; @@ -364,11 +419,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
@@ -377,10 +435,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
@@ -389,12 +450,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
@@ -402,10 +465,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
@@ -413,27 +479,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_ = ""; @@ -441,16 +510,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) @@ -469,25 +537,27 @@ 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) { @@ -495,29 +565,33 @@ private Subnet( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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
@@ -526,6 +600,7 @@ private Subnet(
      * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -534,14 +609,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
@@ -550,16 +626,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 { @@ -570,6 +645,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
@@ -577,6 +654,7 @@ public java.lang.String getName() {
      * 
* * string project_id = 2; + * * @return The projectId. */ @java.lang.Override @@ -585,14 +663,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
@@ -600,16 +679,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 { @@ -618,6 +696,7 @@ public java.lang.String getProjectId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -629,8 +708,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -660,17 +738,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; } @@ -691,88 +768,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 @@ -782,27 +865,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() @@ -810,16 +898,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(); @@ -831,9 +918,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 @@ -852,7 +939,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(); @@ -863,38 +951,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; @@ -902,7 +993,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(); @@ -942,6 +1034,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -950,13 +1044,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; @@ -965,6 +1059,8 @@ public java.lang.String getName() { } } /** + * + * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -973,15 +1069,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 { @@ -989,6 +1084,8 @@ public java.lang.String getName() { } } /** + * + * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -997,20 +1094,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
@@ -1019,15 +1118,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
@@ -1036,16 +1138,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; @@ -1053,6 +1155,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
@@ -1060,13 +1164,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; @@ -1075,6 +1179,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
@@ -1082,15 +1188,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 { @@ -1098,6 +1203,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
@@ -1105,20 +1212,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
@@ -1126,15 +1235,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
@@ -1142,20 +1254,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) { @@ -1168,12 +1281,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(); } @@ -1182,16 +1295,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; @@ -1206,17 +1319,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 @@ -1225,29 +1340,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 { @@ -1258,11 +1373,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 @@ -1271,29 +1389,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 { @@ -1304,12 +1422,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 @@ -1318,30 +1439,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 { @@ -1352,38 +1473,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 @@ -1394,11 +1531,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 300, max is 1000.
    * 
* * int32 max_throughput = 6; + * * @return The maxThroughput. */ @java.lang.Override @@ -1409,34 +1549,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. */ @@ -1444,27 +1595,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 @@ -1472,18 +1629,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.
    * 
@@ -1498,11 +1662,14 @@ public com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder getSubnetOrBuilde public static final int MACHINE_TYPE_FIELD_NUMBER = 10; private volatile java.lang.Object machineType_; /** + * + * *
    * Machine type of VM Instance underlying connector. Default is e2-micro
    * 
* * string machine_type = 10; + * * @return The machineType. */ @java.lang.Override @@ -1511,29 +1678,29 @@ public java.lang.String getMachineType() { 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(); machineType_ = s; return s; } } /** + * + * *
    * Machine type of VM Instance underlying connector. Default is e2-micro
    * 
* * string machine_type = 10; + * * @return The bytes for machineType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; 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); machineType_ = b; return b; } else { @@ -1544,11 +1711,14 @@ public java.lang.String getMachineType() { public static final int MIN_INSTANCES_FIELD_NUMBER = 11; private int minInstances_; /** + * + * *
    * Minimum value of instances in autoscaling group underlying the connector.
    * 
* * int32 min_instances = 11; + * * @return The minInstances. */ @java.lang.Override @@ -1559,11 +1729,14 @@ public int getMinInstances() { public static final int MAX_INSTANCES_FIELD_NUMBER = 12; private int maxInstances_; /** + * + * *
    * Maximum value of instances in autoscaling group underlying the connector.
    * 
* * int32 max_instances = 12; + * * @return The maxInstances. */ @java.lang.Override @@ -1572,6 +1745,7 @@ public int getMaxInstances() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1583,8 +1757,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1637,16 +1810,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; @@ -1657,19 +1827,16 @@ 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()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, machineType_); } if (minInstances_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(11, minInstances_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, minInstances_); } if (maxInstances_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(12, maxInstances_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, maxInstances_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1679,37 +1846,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.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 (!getMachineType() - .equals(other.getMachineType())) return false; - if (getMinInstances() - != other.getMinInstances()) return false; - if (getMaxInstances() - != other.getMaxInstances()) return false; + if (!getSubnet().equals(other.getSubnet())) return false; + } + if (!getMachineType().equals(other.getMachineType())) return false; + if (getMinInstances() != other.getMinInstances()) return false; + if (getMaxInstances() != other.getMaxInstances()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1752,118 +1909,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() @@ -1871,16 +2037,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(); @@ -1914,9 +2079,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 @@ -1935,7 +2100,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_; @@ -1964,38 +2130,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; @@ -2076,22 +2243,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; @@ -2100,20 +2270,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 { @@ -2121,54 +2292,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; @@ -2176,18 +2354,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; @@ -2196,20 +2376,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 { @@ -2217,54 +2398,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; @@ -2272,19 +2460,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; @@ -2293,21 +2483,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 { @@ -2315,57 +2506,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; @@ -2373,51 +2571,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. */ @@ -2425,33 +2645,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 @@ -2459,42 +2687,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 300, max is 1000.
      * 
* * int32 max_throughput = 6; + * * @return The maxThroughput. */ @java.lang.Override @@ -2502,71 +2739,90 @@ public int getMaxThroughput() { return maxThroughput_; } /** + * + * *
      * Maximum throughput of the connector in Mbps. Default is 300, 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 300, 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. */ @@ -2574,80 +2830,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() { @@ -2657,20 +2928,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(); @@ -2679,34 +2953,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.
      * 
@@ -2727,6 +3014,8 @@ public Builder setSubnet(com.google.cloud.vpcaccess.v1.Connector.Subnet value) { return this; } /** + * + * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2745,6 +3034,8 @@ public Builder setSubnet( return this; } /** + * + * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2755,7 +3046,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; } @@ -2767,6 +3060,8 @@ public Builder mergeSubnet(com.google.cloud.vpcaccess.v1.Connector.Subnet value) return this; } /** + * + * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2785,6 +3080,8 @@ public Builder clearSubnet() { return this; } /** + * + * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2792,11 +3089,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.
      * 
@@ -2807,11 +3106,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.
      * 
@@ -2819,14 +3121,17 @@ 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_; @@ -2834,18 +3139,20 @@ public com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder getSubnetOrBuilde private java.lang.Object machineType_ = ""; /** + * + * *
      * Machine type of VM Instance underlying connector. Default is e2-micro
      * 
* * string machine_type = 10; + * * @return The machineType. */ public java.lang.String getMachineType() { java.lang.Object ref = machineType_; 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(); machineType_ = s; return s; @@ -2854,20 +3161,21 @@ public java.lang.String getMachineType() { } } /** + * + * *
      * Machine type of VM Instance underlying connector. Default is e2-micro
      * 
* * string machine_type = 10; + * * @return The bytes for machineType. */ - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; 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); machineType_ = b; return b; } else { @@ -2875,66 +3183,76 @@ public java.lang.String getMachineType() { } } /** + * + * *
      * Machine type of VM Instance underlying connector. Default is e2-micro
      * 
* * string machine_type = 10; + * * @param value The machineType to set. * @return This builder for chaining. */ - public Builder setMachineType( - java.lang.String value) { + public Builder setMachineType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + machineType_ = value; onChanged(); return this; } /** + * + * *
      * Machine type of VM Instance underlying connector. Default is e2-micro
      * 
* * string machine_type = 10; + * * @return This builder for chaining. */ public Builder clearMachineType() { - + machineType_ = getDefaultInstance().getMachineType(); onChanged(); return this; } /** + * + * *
      * Machine type of VM Instance underlying connector. Default is e2-micro
      * 
* * string machine_type = 10; + * * @param value The bytes for machineType to set. * @return This builder for chaining. */ - public Builder setMachineTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + machineType_ = value; onChanged(); return this; } - private int minInstances_ ; + private int minInstances_; /** + * + * *
      * Minimum value of instances in autoscaling group underlying the connector.
      * 
* * int32 min_instances = 11; + * * @return The minInstances. */ @java.lang.Override @@ -2942,42 +3260,51 @@ public int getMinInstances() { return minInstances_; } /** + * + * *
      * Minimum value of instances in autoscaling group underlying the connector.
      * 
* * int32 min_instances = 11; + * * @param value The minInstances to set. * @return This builder for chaining. */ public Builder setMinInstances(int value) { - + minInstances_ = value; onChanged(); return this; } /** + * + * *
      * Minimum value of instances in autoscaling group underlying the connector.
      * 
* * int32 min_instances = 11; + * * @return This builder for chaining. */ public Builder clearMinInstances() { - + minInstances_ = 0; onChanged(); return this; } - private int maxInstances_ ; + private int maxInstances_; /** + * + * *
      * Maximum value of instances in autoscaling group underlying the connector.
      * 
* * int32 max_instances = 12; + * * @return The maxInstances. */ @java.lang.Override @@ -2985,37 +3312,43 @@ public int getMaxInstances() { return maxInstances_; } /** + * + * *
      * Maximum value of instances in autoscaling group underlying the connector.
      * 
* * int32 max_instances = 12; + * * @param value The maxInstances to set. * @return This builder for chaining. */ public Builder setMaxInstances(int value) { - + maxInstances_ = value; onChanged(); return this; } /** + * + * *
      * Maximum value of instances in autoscaling group underlying the connector.
      * 
* * int32 max_instances = 12; + * * @return This builder for chaining. */ public Builder clearMaxInstances() { - + maxInstances_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3025,12 +3358,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(); } @@ -3039,16 +3372,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; @@ -3063,6 +3396,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 74% 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 06560236..c5e4697a 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 300, 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.
    * 
@@ -177,41 +246,52 @@ public interface ConnectorOrBuilder extends com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder getSubnetOrBuilder(); /** + * + * *
    * Machine type of VM Instance underlying connector. Default is e2-micro
    * 
* * string machine_type = 10; + * * @return The machineType. */ java.lang.String getMachineType(); /** + * + * *
    * Machine type of VM Instance underlying connector. Default is e2-micro
    * 
* * string machine_type = 10; + * * @return The bytes for machineType. */ - com.google.protobuf.ByteString - getMachineTypeBytes(); + com.google.protobuf.ByteString getMachineTypeBytes(); /** + * + * *
    * Minimum value of instances in autoscaling group underlying the connector.
    * 
* * int32 min_instances = 11; + * * @return The minInstances. */ int getMinInstances(); /** + * + * *
    * Maximum value of instances in autoscaling group underlying the connector.
    * 
* * int32 max_instances = 12; + * * @return The maxInstances. */ int getMaxInstances(); 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 e37c1af0..7b720628 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,38 +71,43 @@ 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) { @@ -93,35 +115,42 @@ private CreateConnectorRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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 @@ -130,30 +159,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 { @@ -164,11 +195,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 @@ -177,29 +211,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 { @@ -210,11 +244,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 @@ -222,23 +261,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() { @@ -246,6 +296,7 @@ public com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -257,8 +308,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -284,8 +334,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; @@ -295,21 +344,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; @@ -336,117 +383,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() @@ -454,16 +510,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(); @@ -481,9 +536,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 @@ -502,7 +557,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) { @@ -518,38 +574,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; @@ -557,7 +614,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(); @@ -588,7 +646,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) { @@ -600,19 +659,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; @@ -621,21 +684,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 { @@ -643,57 +709,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; @@ -701,18 +780,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; @@ -721,20 +802,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 { @@ -742,54 +824,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; @@ -797,39 +886,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) { @@ -845,14 +953,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(); @@ -863,17 +974,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; } @@ -885,11 +1002,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) { @@ -903,55 +1024,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); } @@ -961,12 +1098,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(); } @@ -975,16 +1112,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; @@ -999,6 +1136,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 65% 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 bb58e229..e56ff8aa 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,19 +70,20 @@ 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) { @@ -73,34 +91,41 @@ private DeleteConnectorRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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 @@ -109,29 +134,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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,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; } @@ -204,117 +231,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() @@ -322,16 +358,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(); @@ -341,9 +376,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 @@ -362,7 +397,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; @@ -372,38 +408,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; @@ -411,7 +448,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(); @@ -435,7 +473,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) { @@ -447,18 +486,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; @@ -467,20 +510,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 { @@ -488,61 +534,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); } @@ -552,12 +611,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(); } @@ -566,16 +625,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; @@ -590,6 +649,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 6ad32b1f..ad4cad8e 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,19 +70,20 @@ 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) { @@ -73,34 +91,41 @@ private GetConnectorRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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 @@ -109,29 +134,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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,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; } @@ -204,117 +231,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() @@ -322,16 +358,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(); @@ -341,9 +376,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 @@ -362,7 +397,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; @@ -372,38 +408,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; @@ -411,7 +448,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(); @@ -435,7 +473,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) { @@ -447,18 +486,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; @@ -467,20 +510,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 { @@ -488,61 +534,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); } @@ -552,12 +611,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(); } @@ -566,16 +625,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; @@ -590,6 +649,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 ea7b5b90..f4775b63 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,30 +71,32 @@ 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) { @@ -85,34 +104,41 @@ private ListConnectorsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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 @@ -121,29 +147,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 { @@ -154,11 +182,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 @@ -169,11 +200,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 @@ -182,29 +216,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 { @@ -213,6 +247,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +259,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -248,8 +282,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -262,19 +295,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; } @@ -298,117 +329,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() @@ -416,16 +456,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(); @@ -439,9 +478,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 @@ -460,7 +499,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_; @@ -472,38 +512,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; @@ -511,7 +552,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(); @@ -542,7 +584,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) { @@ -554,18 +597,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; @@ -574,20 +621,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 { @@ -595,66 +645,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 @@ -662,30 +728,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; @@ -693,18 +765,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; @@ -713,20 +787,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 { @@ -734,61 +809,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); } @@ -798,12 +880,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(); } @@ -812,16 +894,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; @@ -836,6 +918,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 43929e50..84b3bd38 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,28 +72,31 @@ 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) { @@ -84,8 +104,7 @@ private ListConnectorsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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_); @@ -94,22 +113,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.
    * 
@@ -121,6 +145,8 @@ public java.util.List getConnectorsList return connectors_; } /** + * + * *
    * List of Serverless VPC Access connectors.
    * 
@@ -128,11 +154,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.
    * 
@@ -144,6 +172,8 @@ public int getConnectorsCount() { return connectors_.size(); } /** + * + * *
    * List of Serverless VPC Access connectors.
    * 
@@ -155,6 +185,8 @@ public com.google.cloud.vpcaccess.v1.Connector getConnectors(int index) { return connectors_.get(index); } /** + * + * *
    * List of Serverless VPC Access connectors.
    * 
@@ -162,19 +194,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 @@ -183,29 +217,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 { @@ -214,6 +248,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +260,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)); } @@ -243,8 +277,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -257,17 +290,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; } @@ -291,117 +323,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() @@ -409,17 +450,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(); @@ -435,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_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 @@ -456,7 +497,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)) { @@ -476,38 +518,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; @@ -515,7 +558,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()) { @@ -534,9 +578,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_); } @@ -565,7 +610,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) { @@ -574,21 +620,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.
      * 
@@ -603,6 +656,8 @@ public java.util.List getConnectorsList } } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -617,6 +672,8 @@ public int getConnectorsCount() { } } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -631,14 +688,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(); @@ -652,6 +710,8 @@ public Builder setConnectors( return this; } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -670,6 +730,8 @@ public Builder setConnectors( return this; } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -690,14 +752,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(); @@ -711,14 +774,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()); @@ -729,6 +793,8 @@ public Builder addConnectors( return this; } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -747,6 +813,8 @@ public Builder addConnectors( return this; } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -757,8 +825,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); @@ -766,6 +833,8 @@ public Builder addAllConnectors( return this; } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -783,6 +852,8 @@ public Builder clearConnectors() { return this; } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -800,39 +871,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 { @@ -840,6 +916,8 @@ public com.google.cloud.vpcaccess.v1.ConnectorOrBuilder getConnectorsOrBuilder( } } /** + * + * *
      * List of Serverless VPC Access connectors.
      * 
@@ -847,42 +925,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_; @@ -890,18 +974,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; @@ -910,20 +996,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 { @@ -931,61 +1018,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); } @@ -995,12 +1089,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(); } @@ -1009,16 +1103,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; @@ -1033,6 +1127,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 541a05ae..b31c54c6 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,51 +71,57 @@ 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) { @@ -106,35 +129,40 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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 @@ -143,30 +171,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 { @@ -177,11 +205,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 @@ -189,11 +221,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 @@ -201,11 +237,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() { @@ -215,11 +254,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 @@ -227,11 +270,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 @@ -239,11 +286,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() { @@ -253,12 +303,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 @@ -267,30 +322,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 { @@ -299,6 +356,7 @@ public java.lang.String getTarget() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -310,8 +368,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, method_); } @@ -337,12 +394,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, target_); @@ -355,27 +410,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; } @@ -404,118 +456,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() @@ -523,16 +584,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(); @@ -556,9 +616,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 @@ -577,7 +637,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_; @@ -598,38 +659,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; @@ -637,7 +699,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(); @@ -683,19 +746,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; @@ -704,21 +769,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 { @@ -726,57 +792,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; @@ -784,39 +857,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) { @@ -832,14 +924,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(); @@ -850,17 +945,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; } @@ -872,11 +971,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) { @@ -890,48 +993,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_; @@ -939,24 +1058,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() { @@ -967,11 +1097,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) { @@ -987,14 +1120,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(); @@ -1005,17 +1140,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; } @@ -1027,11 +1165,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) { @@ -1045,48 +1186,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_; @@ -1094,19 +1246,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; @@ -1115,21 +1271,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 { @@ -1137,64 +1296,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); } @@ -1204,12 +1376,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(); } @@ -1218,16 +1390,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; @@ -1242,6 +1414,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..acc6a599 --- /dev/null +++ b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessProto.java @@ -0,0 +1,247 @@ +/* + * 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\"\310\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\022\024\n\014machine_type\030\n \001(\t\022\025\n\rmin_" + + "instances\030\013 \001(\005\022\025\n\rmax_instances\030\014 \001(\005\032*" + + "\n\006Subnet\022\014\n\004name\030\001 \001(\t\022\022\n\nproject_id\030\002 \001" + + "(\t\"^\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005RE" + + "ADY\020\001\022\014\n\010CREATING\020\002\022\014\n\010DELETING\020\003\022\t\n\005ERR" + + "OR\020\004\022\014\n\010UPDATING\020\005:g\352Ad\n\"vpcaccess.googl" + + "eapis.com/Connector\022>projects/{project}/" + + "locations/{location}/connectors/{connect" + + "or}\"\254\001\n\026CreateConnectorRequest\0229\n\006parent" + + "\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com" + + "/Location\022\031\n\014connector_id\030\002 \001(\tB\003\340A\002\022<\n\t" + + "connector\030\003 \001(\0132$.google.cloud.vpcaccess" + + ".v1.ConnectorB\003\340A\002\"O\n\023GetConnectorReques" + + "t\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpcaccess.googl" + + "eapis.com/Connector\"y\n\025ListConnectorsReq" + + "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations." + + "googleapis.com/Location\022\021\n\tpage_size\030\002 \001" + + "(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\026ListConnectors" + + "Response\0228\n\nconnectors\030\001 \003(\0132$.google.cl" + + "oud.vpcaccess.v1.Connector\022\027\n\017next_page_" + + "token\030\002 \001(\t\"R\n\026DeleteConnectorRequest\0228\n" + + "\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpcaccess.googleapi" + + "s.com/Connector\"\315\001\n\021OperationMetadata\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.g" + + "oogleapis.com/Connector2\374\006\n\020VpcAccessSer" + + "vice\022\350\001\n\017CreateConnector\0221.google.cloud." + + "vpcaccess.v1.CreateConnectorRequest\032\035.go" + + "ogle.longrunning.Operation\"\202\001\202\323\344\223\002;\"./v1" + + "/{parent=projects/*/locations/*}/connect" + + "ors:\tconnector\332A\035parent,connector_id,con" + + "nector\312A\036\n\tConnector\022\021OperationMetadata\022" + + "\243\001\n\014GetConnector\022..google.cloud.vpcacces" + + "s.v1.GetConnectorRequest\032$.google.cloud." + + "vpcaccess.v1.Connector\"=\202\323\344\223\0020\022./v1/{nam" + + "e=projects/*/locations/*/connectors/*}\332A" + + "\004name\022\266\001\n\016ListConnectors\0220.google.cloud." + + "vpcaccess.v1.ListConnectorsRequest\0321.goo" + + "gle.cloud.vpcaccess.v1.ListConnectorsRes" + + "ponse\"?\202\323\344\223\0020\022./v1/{parent=projects/*/lo" + + "cations/*}/connectors\332A\006parent\022\317\001\n\017Delet" + + "eConnector\0221.google.cloud.vpcaccess.v1.D" + + "eleteConnectorRequest\032\035.google.longrunni" + + "ng.Operation\"j\202\323\344\223\0020*./v1/{name=projects" + + "/*/locations/*/connectors/*}\332A\004name\312A*\n\025" + + "google.protobuf.Empty\022\021OperationMetadata" + + "\032L\312A\030vpcaccess.googleapis.com\322A.https://" + + "www.googleapis.com/auth/cloud-platformB\314" + + "\001\n\035com.google.cloud.vpcaccess.v1B\016VpcAcc" + + "essProtoP\001ZBgoogle.golang.org/genproto/g" + + "oogleapis/cloud/vpcaccess/v1;vpcaccess\252\002" + + "\031Google.Cloud.VpcAccess.V1\312\002\031Google\\Clou" + + "d\\VpcAccess\\V1\352\002\034Google::Cloud::VpcAcces" + + "s::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", + "MachineType", + "MinInstances", + "MaxInstances", + }); + 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 diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/stub/vpcaccessservicestubsettings/getconnector/SyncGetConnector.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/stub/vpcaccessservicestubsettings/getconnector/SyncGetConnector.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/stub/vpcaccessservicestubsettings/getconnector/SyncGetConnector.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/stub/vpcaccessservicestubsettings/getconnector/SyncGetConnector.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnector.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnector.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnector.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnector.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnectorLRO.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnectorLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnectorLRO.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnectorLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnector.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnector.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnector.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnector.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorLocationnameStringConnector.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorLocationnameStringConnector.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorLocationnameStringConnector.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorLocationnameStringConnector.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorStringStringConnector.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorStringStringConnector.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorStringStringConnector.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorStringStringConnector.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnector.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnector.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnector.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnector.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnectorLRO.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnectorLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnectorLRO.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnectorLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnector.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnector.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnector.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnector.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/AsyncGetConnector.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/AsyncGetConnector.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/AsyncGetConnector.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/AsyncGetConnector.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnector.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnector.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnector.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnector.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorConnectorname.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorConnectorname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorConnectorname.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorConnectorname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorString.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorString.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectors.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectors.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectors.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectors.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectorsPaged.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectorsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectorsPaged.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectorsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectors.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectors.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectors.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectors.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsLocationname.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsLocationname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsLocationname.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsLocationname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsString.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsString.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocations.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocations.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocations.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocations.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocationsPaged.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocationsPaged.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/AsyncListLocationsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/SyncListLocations.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/SyncListLocations.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/SyncListLocations.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listlocations/SyncListLocations.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservicesettings/getconnector/SyncGetConnector.java b/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservicesettings/getconnector/SyncGetConnector.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservicesettings/getconnector/SyncGetConnector.java rename to samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservicesettings/getconnector/SyncGetConnector.java From 6b53c073ecb08b26f3f2260232bba15fe38cf307 Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Thu, 25 Aug 2022 19:33:39 +0000 Subject: [PATCH 5/6] chore: Add missing grpc-proto --- google-cloud-vpcaccess/pom.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/google-cloud-vpcaccess/pom.xml b/google-cloud-vpcaccess/pom.xml index b6c4475a..dc4c6b79 100644 --- a/google-cloud-vpcaccess/pom.xml +++ b/google-cloud-vpcaccess/pom.xml @@ -41,6 +41,10 @@ com.google.api.grpc proto-google-common-protos + + com.google.api.grpc + grpc-google-common-protos + com.google.api.grpc From a0839e852bacf9c4392876388a15c68aeef00ad3 Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Thu, 25 Aug 2022 20:34:32 +0000 Subject: [PATCH 6/6] chore: Update grpc-common-protos to test scope --- google-cloud-vpcaccess/pom.xml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/google-cloud-vpcaccess/pom.xml b/google-cloud-vpcaccess/pom.xml index dc4c6b79..e9910e70 100644 --- a/google-cloud-vpcaccess/pom.xml +++ b/google-cloud-vpcaccess/pom.xml @@ -41,10 +41,6 @@ com.google.api.grpc proto-google-common-protos - - com.google.api.grpc - grpc-google-common-protos - com.google.api.grpc @@ -84,6 +80,11 @@ grpc-google-cloud-vpcaccess-v1 test + + com.google.api.grpc + grpc-google-common-protos + test + com.google.api